Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007885opensim[GRID] Asset Servicepublic2016-04-20 01:492018-03-10 14:20
Assigned Todjphil 
PlatformPCOperating SystemWindowsOperating System VersionSeven
Product Version 
Target VersionFixed in Versionmaster (dev code) 
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
Script Engine
Environment.NET / Windows32
Mono VersionNone
Attached Filesjpg file icon 2016-04-20_10-27-52.jpg [^] (67,529 bytes) 2016-04-20 01:49

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

- Relationships

-  Notes
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)
djphil (reporter)
2016-06-27 11:35
edited on: 2016-06-27 12:09

Here is the OpenSim Wiki Get_Texture Ref: [^]

This service is still maintained in OS v0.8.2.1 ?

Another Ref here : [^]

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

After i try to get a texture like this<texture_uuid>&format=png [^]

and try to get texture data (blob) like this<texture_uuid>/data [^]

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

ref : [^]

It seems that some information provided here are a little obselet because it no longer reflects the current configuration of opensim [^]

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

Today i install a new grid with master code
from [^]
Commit 07c39624ef01b1f4cab463ecf86dfcf3dfc790f2

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

- Here is the request i made<texture_uuid>&format=png [^]

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

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

- Here is Opensim.ini config
Cap_GetTexture = "" [^]

- Here is show http-handlers
Registered HTTP Handlers for server at
* StreamHandlers (7):

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
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 ?

BillBlight (developer)
2017-03-18 09:03

Are you using fsassets by chance?
BillBlight (developer)
2017-03-18 09:06

if using fsassets

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

And my Caps in the opensim.ini is

Cap_GetTexture = "localhost"

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

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

Ok then just try this ..

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 ..

BillBlight (developer)
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
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.

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 ...

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

BillBlight (developer)
2017-03-18 12:10

I know gettexture works .. [^]

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

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

Ahh Ha that could be the difference .. I am on linux ...
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.
And there the texture service works perfecly !!!
With 8.2.1 and 0.9.x it's broken.
BillBlight (developer)
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 ..
djphil (reporter)
2017-10-13 06:32
edited on: 2017-11-07 02:43

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: [^]

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

djphil (reporter)
2018-03-10 04:46

@Ubit: In relation to what we said on IRC yesterday, today I tested a request with jpeg format on Unfortunately the result is identical, I see the picture once. If I refresh url, I have the same error as with the format jpg or png.
UbitUmarov (administrator)
2018-03-10 12:59

made a fix on master.
Keep in mind this is very heavy, each request does a image convertion, unless you do ask for j2k format.
also if the port is public, all textures are exposed
Avoid using this.
Correct support of ths feature will require diferent code
djphil (reporter)
2018-03-10 14:20

After 2 years windows users will be happy to find this operational service.
It work "perfectly" now!
Tested with formats: jpeg, png, tif (or tiff for Mac), bmp, gif
djphil (reporter)
2018-03-10 14:20

Thank you Ubit for your work! :)

- 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:
2017-03-18 09:02 djphil Note Edited: 0031626 View Revisions
2017-03-18 09:03 BillBlight Note Added: 0031627
2017-03-18 09:06 BillBlight Note Added: 0031628
2017-03-18 09:09 djphil Note Added: 0031629
2017-03-18 09:10 BillBlight Note Added: 0031630
2017-03-18 09:12 BillBlight Note Edited: 0031630 View Revisions
2017-03-18 09:17 BillBlight 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 BillBlight Note Added: 0031636
2017-03-18 12:37 djphil Note Added: 0031637
2017-03-18 12:52 BillBlight Note Added: 0031638
2017-03-18 13:22 djphil Note Added: 0031639
2017-03-18 13:29 BillBlight Note Added: 0031640
2017-10-13 06:32 djphil Note Added: 0032327
2017-11-07 02:43 djphil Note Edited: 0032327 View Revisions
2018-03-10 04:46 djphil Note Added: 0032582
2018-03-10 12:59 UbitUmarov Note Added: 0032583
2018-03-10 14:20 djphil Note Added: 0032584
2018-03-10 14:20 djphil Status new => resolved
2018-03-10 14:20 djphil Fixed in Version => master (dev code)
2018-03-10 14:20 djphil Resolution open => fixed
2018-03-10 14:20 djphil Assigned To => djphil
2018-03-10 14:20 djphil Note Added: 0032585
2018-03-10 14:20 djphil Status resolved => closed

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker