Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007885opensim[GRID] Asset Servicepublic2016-04-20 01:492017-10-13 06:32
Reporterdjphil 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformPCOSWindowsOS VersionSeven
Product Version 
Target VersionFixed in Version 
Summary0007885: [ASSET_SERVICE] Get_Texture service corrupted assets texture
DescriptionI see a problem with the simulator v0.8.2.1 i just installed and with which i want to use the Get_Texture service.

It works well when the first query, i see my picture to be displayed in the browser but i have an alert console (Could not parse requested asset-id d0cbb4c6-792f 43ae-8581-a33436ecc179-jpeg).

Now I refreshed the browser page and now i can not see my image and i have a red alert (Decoded picture with unhandled number of components: 0)

From now on, i never seem to get the image in the browser. So i tried to upload once again my image and test Get_Texture obtained with the new UUID and there, same problem, i see my image the first time and then never again ... and always the same message in console.

Then i empty the viewer cash and i see all the images used by the application Get_texture now gray and unusable (see screenshot).

Do you have an idea to solve this problem ?
Additional Information10:12:53 - [ASSET SERVICE]: Could not parse requested asset id d0cbb4c6-792f-43ae-8581-a33436ecc179-jpeg
10:12:53 - [GETTEXTURE]: Converting texture d0cbb4c6-792f-43ae-8581-a33436ecc179 to jpeg
10:13:06 - [ASSET SERVICE]: Could not parse requested asset id d0cbb4c6-792f-43ae-8581-a33436ecc179-jpeg
10:13:06 - [GETTEXTURE]: Converting texture d0cbb4c6-792f-43ae-8581-a33436ecc179 to jpeg
10:13:06 - R.O.B.U.S.T.#
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Environment.NET / Windows32
Mono VersionNone
ViewerFireStorm
Attached Filesjpg file icon 2016-04-20_10-27-52.jpg [^] (67,529 bytes) 2016-04-20 01:49


zip file icon data.zip [^] (1,099,606 bytes) 2017-03-18 08:56

- Relationships

-  Notes
(0030757)
djphil (reporter)
2016-06-24 20:24

Additional Informations:

Fresh OpenSim install (mode grid hypergrid)
+ 1 simulator attached with 3 regions

Web Intefrace : jOpenSim
(jOpenSim use Get_Texture to display picture on profil page)
(0030799)
djphil (reporter)
2016-06-27 11:35
edited on: 2016-06-27 12:09

Here is the OpenSim Wiki Get_Texture Ref:
http://opensimulator.org/wiki/Direct_Service_Requests [^]

This service is still maintained in OS v0.8.2.1 ?

Another Ref here :
https://github.com/justinccdev/opensimulator-tools/blob/master/test/texture-load-test/TextureLoadTest/GetTextures.cs [^]

(0030837)
djphil (reporter)
2016-06-29 14:30
edited on: 2016-06-29 14:36

After i try to get a texture like this
http://domain.com:8002/CAPS/GetTexture/?texture_id=<texture_uuid>&format=png [^]

and try to get texture data (blob) like this
http://domain.com:8003/assets/<texture_uuid>/data [^]

I see now the image format in the db is PNG
The asset was converted and crushed in the db

ref : https://github.com/opensim/opensim/blob/master/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs#L178 [^]

It seems that some information provided here are a little obselet because it no longer reflects the current configuration of opensim
http://opensimulator.org/wiki/Direct_Service_Requests [^]

(0031626)
djphil (reporter)
2017-03-18 08:24
edited on: 2017-03-18 09:02

Today i install a new grid with master code
from http://opensimulator.org/viewgit/?a=shortlog&p=opensim [^]
Commit 07c39624ef01b1f4cab463ecf86dfcf3dfc790f2
(opensim-0.9.0-1199-g07c3962.zip)

to test again Get_Texture service ... and is broken !!!
I can see the texture only one time !!!

- Here is the request i made
http://domain.com:8002/CAPS/GetTexture/?texture_id=<texture_uuid>&format=png [^]

- Here is Robust.ini config
[CapsService]
AssetService = "OpenSim.Services.AssetService.dll:AssetService"

[ServiceList]
GetTextureConnector = "${Const|PublicPort}/OpenSim.Capabilities.Handlers.dll:GetTextureServerConnector"

- Here is Opensim.ini config
[ClientStack.LindenCaps]
Cap_GetTexture = "http://192.168.1.2:8002/CAPS/GetTexture/" [^]

- Here is show http-handlers
Registered HTTP Handlers for server at 0.0.0.0:8002
* StreamHandlers (7):
        GET:/CAPS/GetTexture/

Here is show stats httpserver.8002.HTTPRequestsServed
- httpserver.8002.HTTPRequestsServed : 7 requests, 0 requests/s, 0 requests/s

- Here is the first alert (when i see the picture for the first time)
15:59:28 - [ASSET SERVICE]: Could not parse requested asset id 680406ec-455e-4044-b99a-b4bf9b32c043-png
15:59:28 - [GETTEXTURE]: Converting texture 680406ec-455e-4044-b99a-b4bf9b32c043 to png

- Here is the second alert (when i try to see the picture for a second time and i can't)
15:59:31 - [ASSET SERVICE]: Could not parse requested asset id 680406ec-455e-4044-b99a-b4bf9b32c043-png
15:59:31 - [GETTEXTURE]: Converting texture 680406ec-455e-4044-b99a-b4bf9b32c043 to png
15:59:31 - Decoded image with unhandled number of components: 0

- Here is the new file just added to this mantis
data.zip
This zip contains
file "data_0" : is the picture data just uploaded with Singularity
file "data_1" : is the picture data just after i try Get_Texture service for the FIRST time (and i see the pic).
file "data_1.png" : is the picture i see the first time
file "data_2" : is the picture data just after i try Get_Texture service for the SECOND time (and i don't see the pic).

There is obviously a problem !!!

Can you reproduce it ?
Can you solve it ?
Can you help me ?

(0031627)
watcher64 (reporter)
2017-03-18 09:03

Are you using fsassets by chance?
(0031628)
watcher64 (reporter)
2017-03-18 09:06

if using fsassets
[CapsService]

    AssetService = "OpenSim.Services.FSAssetService.dll:FSAssetConnector"

And my Caps in the opensim.ini is

[ClientStack.LindenCaps]
Cap_GetTexture = "localhost"

Seems to work fine .. (at least on my test machine, I don't have this setup on my live grid)
(0031629)
djphil (reporter)
2017-03-18 09:09

Currently i have not tested with fassets.
I only installed a basic grid.
(0031630)
watcher64 (reporter)
2017-03-18 09:10
edited on: 2017-03-18 09:12

Ok then just try this ..

[ClientStack.LindenCaps]
Cap_GetTexture = "localhost"

That causes it to make the request to the local instance which in turn makes the request to the asset server.


I am/was using jopensim on both 8.2.1 and now .9 without issues ..

(0031631)
watcher64 (reporter)
2017-03-18 09:17

I mean the opensim.ini config should make no difference to the robust request, just throwing out ideas ... Let me look closer at mine see if I tweaked anything
(0031632)
djphil (reporter)
2017-03-18 09:26
edited on: 2017-03-18 09:30

First i try with fsassets and it work perfecty !!!
Secondly, i try without fsassets and with Cap_GetTexture = "localhost" ... don't work, same alerts.
Thirdly, this basic test grid don't use jOpenSim.

(0031635)
djphil (reporter)
2017-03-18 11:32
edited on: 2017-03-18 11:51

Hmmm i think of something, it could possibly come from an error when compiling OpenSim.
The dll of the service would be corrupted during the compilation, it could explain FINALLY the problem and consider a fix for this ...

edit:
I just tested with osgrid version OSgrid OpenSimulator 0.9.1.dev.056ccae - [zip] [32.1mb] 01-27-2017 and the problem is exactly the same.
So this is not a compilation error.

(0031636)
watcher64 (reporter)
2017-03-18 12:10

I know gettexture works ..

http://grid.opensim.life:8002/CAPS/GetTexture/?texture_id=c1ba5d95-f0ed-4f49-b43f-652392423f6d&format=png [^]

Not sure what the issue for you is ..
(0031637)
djphil (reporter)
2017-03-18 12:37

You are on Linux or Windows ?
I'm on Windows.
(0031638)
watcher64 (reporter)
2017-03-18 12:52

Ahh Ha that could be the difference .. I am on linux ...
(0031639)
djphil (reporter)
2017-03-18 13:22

Perhaps we are making progress ...

I also have an old grid on this same PC with Service configured identically.
osgrid-opensim-07222015.v0.8.2.43c8e23.zip
And there the texture service works perfecly !!!
With 8.2.1 and 0.9.x it's broken.
(0031640)
watcher64 (reporter)
2017-03-18 13:29

I am running the latest .9.x so to say it is broken might be wrong .. To say it might be broken on windows would be more accurate ..
(0032327)
djphil (reporter)
2017-10-13 06:32

Currently this embarrassing problem continues for me.
I can not get the getTexture service to work properly.

I recently updated my jOpenSim grid and the problem is the same.
I also gave a detailed report on the Mantis jOpenSim at this address:
https://mantis.jopensim.com/view.php?id=18 [^]

Any help to solve would be appreciated.
Thank you for avanace!

- Issue History
Date Modified Username Field Change
2016-04-20 01:49 djphil New Issue
2016-04-20 01:49 djphil File Added: 2016-04-20_10-27-52.jpg
2016-06-24 20:24 djphil Note Added: 0030757
2016-06-27 11:35 djphil Note Added: 0030799
2016-06-27 11:51 djphil Note Edited: 0030799 View Revisions
2016-06-27 12:09 djphil Note Edited: 0030799 View Revisions
2016-06-29 14:30 djphil Note Added: 0030837
2016-06-29 14:36 djphil Note Edited: 0030837 View Revisions
2017-03-18 08:24 djphil Note Added: 0031626
2017-03-18 08:56 djphil File Added: data.zip
2017-03-18 09:02 djphil Note Edited: 0031626 View Revisions
2017-03-18 09:03 watcher64 Note Added: 0031627
2017-03-18 09:06 watcher64 Note Added: 0031628
2017-03-18 09:09 djphil Note Added: 0031629
2017-03-18 09:10 watcher64 Note Added: 0031630
2017-03-18 09:12 watcher64 Note Edited: 0031630 View Revisions
2017-03-18 09:17 watcher64 Note Added: 0031631
2017-03-18 09:26 djphil Note Added: 0031632
2017-03-18 09:30 djphil Note Edited: 0031632 View Revisions
2017-03-18 11:32 djphil Note Added: 0031635
2017-03-18 11:50 djphil Note Edited: 0031635 View Revisions
2017-03-18 11:51 djphil Note Edited: 0031635 View Revisions
2017-03-18 12:10 watcher64 Note Added: 0031636
2017-03-18 12:37 djphil Note Added: 0031637
2017-03-18 12:52 watcher64 Note Added: 0031638
2017-03-18 13:22 djphil Note Added: 0031639
2017-03-18 13:29 watcher64 Note Added: 0031640
2017-10-13 06:32 djphil Note Added: 0032327


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker