[osg-users] Problem in loading VPB database from server by libcurl

Donald Peckham 254841023 at qq.com
Sun Dec 23 05:25:28 PST 2018


Hi,
   I can successfully load a single model file from a server by calling osgDB::readNodeFile() with its URL as the input parameter in my application. However, for a VPB database with a topmost file, a crash is obtained in EasyCurl::StreamMemoryCallback() of ReaderWriterCURL.cpp where the pointer "sp" is NULL. And the error message listed in the console are something like
"
Error: libcurl read error, file=http ://localhost:8080/test1_root_L0_X0_Y0/../test1_subtile_L1_X0_Y0/test1_L2_X0_Y1_subtile.osgb error = Failed initialization
Error: libcurl read error, file=http ://localhost:8080/test1_root_L0_X0_Y0/../test1_subtile_L1_X0_Y0/test1_L2_X0_Y1_subtile.osgb error = Failed initialization
Error in reading file http ://localhost:8080/test1_root_L0_X0_Y0/../test1_subtile_L1_X0_Y0/test1_L2_X0_Y1_subtile.osgb : file not handled
......
"
   So, I have made some test to track the problem and find that: 
1. The topmost model can be loaded and viewed always, but not to some of its subtiles.
2. Any of the unhandled files in the error list can be downloaded in web browser with its URL(http ://localhost:8080/test1_root_L0_X0_Y0/../test1_subtile_L1_X0_Y0/test1_L2_X0_Y1_subtile.osgb, for example).
3. Any of the unhandled files in the error list can be requested only using libcurl with its URL.
4. The contents of the error list could be different with the application running each time, that's to say some one file can be handled in one run but not to another run.
   Any ideas on why is this happening? 
   BTW, I'm using OSG 3.5.6 in Win7.

Thank you, in advance!

Cheers,
peckham

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75340#75340







More information about the osg-users mailing list