OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Problem in loading VPB database from server by libcurl


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
peckham0927
Newbie


Joined: 22 Dec 2018
Posts: 2

PostPosted: Sun Dec 23, 2018 1:25 pm    Post subject:
Problem in loading VPB database from server by libcurl
Reply with quote

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
Back to top
View user's profile Send private message
peckham0927
Newbie


Joined: 22 Dec 2018
Posts: 2

PostPosted: Thu Dec 27, 2018 8:47 am    Post subject:
Reply with quote

Hi,
Maybe I have solved it by updating OSG to the latest version 3.6.3, but I don't know why.

Thank you!

Cheers,
Donald
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts problem about reconstructing world co... swaggydong General 0 Sun Jun 23, 2019 8:26 am View latest post
No new posts Loading .fbx files causes triangulati... neonerd Plugins [osgPlugins] 0 Tue Jun 18, 2019 3:14 am View latest post
No new posts Transparency problem beingbad@163.com General 5 Thu Jun 13, 2019 9:28 am View latest post
No new posts Loading osgt from string / Compile re... mmaurus General 2 Mon Jan 21, 2019 11:02 am View latest post
No new posts [Help] OSG + ArKit: Problem convertin... Brayner General 4 Mon Oct 08, 2018 7:07 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP