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 

get some "std::bad_alloc" exception in DatabasePager::DatabaseThread::run---readNodeFile function


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


Joined: 02 Apr 2018
Posts: 3

PostPosted: Tue Apr 24, 2018 10:56 am    Post subject:
get some "std::bad_alloc" exception in DatabasePager::DatabaseThread::run---readNodeFile function
Reply with quote

Hi,
In my application i add smart3d osgb tiles data. When i view this scene after a while, my application get some "std::bad_alloc" exception in DatabasePager::DatabaseThread::run---readNodeFile function,which cause the DatabaseThead crash. How can I resolve this problem?


Thank you!

Cheers,
Guojiang
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12024

PostPosted: Tue Apr 24, 2018 11:26 am    Post subject:
get some "std::bad_alloc" exception in DatabasePager::DatabaseThread::run---readNodeFile function
Reply with quote

Hi Guojiang,

On 24 April 2018 at 11:57, Guojiang Zheng <> wrote:
Quote:
In my application i add smart3d osgb tiles data. When i view this scene after a while, my application get some "std::bad_alloc" exception in DatabasePager::DatabaseThread::run---readNodeFile function,which cause the DatabaseThead crash. How can I resolve this problem?

My best guess is that your application is running out of memory.
That's all I can say at this stage as you've provided so little
detail.

I know nothing about your application, your data, your hardware. OS,
what version of the OSG, how much memory is being used. basically none
of the information that is necessary to set providing advice of what
is possible to do next.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
surveyors
Newbie


Joined: 02 Apr 2018
Posts: 3

PostPosted: Thu Apr 26, 2018 1:27 am    Post subject:
get std::bad_alloc exception in DatabasePager::DatabaseThread::run()
Reply with quote

Hi robertosfield
Thank you for your reply! I develop my activex control using osg3.5.10 and osgearth2.9,compiling with x86.I use the activex in web application or C# Winform application. I use a smarth3d oblique osgb mesh data,20GB.My computer is Alienware,32GB RAM,win10 os.My application use less than 1GB RAM when accessing the mesh data.
...

Thank you!

Cheers,
Guojiang
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12024

PostPosted: Thu Apr 26, 2018 7:51 am    Post subject:
get some "std::bad_alloc" exception in DatabasePager::DatabaseThread::run---readNodeFile function
Reply with quote

Hi Guojiang,

On 26 April 2018 at 02:27, Guojiang Zheng <> wrote:
Quote:
Thank you for your reply! I develop my activex control using osg3.5.10 and osgearth2.9,compiling with x86.I use the activex in web application or C# Winform application. I use a smarth3d oblique osgb mesh data,20GB.My computer is Alienware,32GB RAM.My application use less than 1GB RAM when accessing the mesh data.


There are too many application specific things in the mix for others
to be able to help you much. The best we can do is provide general
programming advice on how to hunt down bugs.

My first suggestion would be to create a small C++ application that
creates a osgViewer with it's native windowing and then load your data
with it. If this crashes still then it should be much easier to home
in on the crash, and if it looks like a bug in osgEarth or the OSG
then you will be able to share the data and the small application so
that others can reproduce the problem and help fix it.

If you don' get the crash with the C++ application then at least you
know that problem is coming from the ActiveX/C# stuff you are
embedding things within. You are on your own with debugging this
stuff as this has has nothing to do with the OSG, the OSG doesn't not
officially or unofficial support ActiveX or C#.

Another thing worth doing is moving to the stable version of the OSG
as now the OSG-3.6.0 stable release is out the 3.5.x developer
releases are no longer supported.

Robert.


------------------
Post generated by Mail2Forum
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 EXTERNAL: Re: LookAt() function param... Rowley, Marlin R General 0 Mon Aug 13, 2018 2:59 pm View latest post
No new posts LookAt() function parameter meanings.. Rowley, Marlin R General 2 Mon Aug 13, 2018 2:08 pm View latest post
No new posts [Crash issue] no error info even set ... pwang General 1 Sun Jul 29, 2018 1:20 pm View latest post
No new posts Load OSG trimesh to ODE: Read Vertice... TKoller General 2 Fri Jul 20, 2018 3:06 pm View latest post
No new posts OSG vec3array size() function working... ak477 General 0 Fri Jul 06, 2018 5:57 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