Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[forum] Segmentation fault (core dumped), difference lies bewteen using a function or not....
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Fan ZHANG  
View profile  
 More options Sep 14 2012, 5:48 am
From: "Fan ZHANG" <osgfo...@tevs.eu>
Date: Fri, 14 Sep 2012 11:47:06 +0200
Local: Fri, Sep 14 2012 5:47 am
Subject: [osg-users] [forum] Segmentation fault (core dumped), difference lies bewteen using a function or not....
Hi all,

I have a problem that if I put the contents of the function 'findVertices' directly here, it runs perfectly. But if I separate it out and just call it here, it compiles well but when it runs, it gets the error of Segmentation fault (core dumped)....

strange?

int main( int argc, char** argv)

{

std::string file;
file = "..............citygml";

findVertices(file);

osgViewer::Viewer viewer;
viewer.setSceneData(osgDB::readNodeFile(file));
viewer.run();

return 1;

}

Thank you!

Cheers,
Fan

------------------------
ohhhhhhhhhhhhhh newbie to OSG......................

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

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Osfield  
View profile  
 More options Sep 14 2012, 5:59 am
From: Robert Osfield <robert.osfi...@gmail.com>
Date: Fri, 14 Sep 2012 10:59:34 +0100
Local: Fri, Sep 14 2012 5:59 am
Subject: Re: [osg-users] [forum] Segmentation fault (core dumped), difference lies bewteen using a function or not....
Hi Fan,

You seem to be newbie at understanding what level of information is
required to debug stuff locally, let alone remotely as you are
expecting the community to do here.  We aren't clairvoyant.

If you get a seg fault the first thing you do is use a debugger to get
a stack trace.  This stack trace will give you your first clue as to
what the problem might be.  Without this information you or anybody
else will be able to divine what might be amiss.

Also if you want help you'll need to provide more info, like OSG
version, OS version, compiler used.

The OSG also doesn't negatively have a citygml support, so you'd need
to tell us about where you are getting this from, and whether it's
know at all whether you readNodeFile is generating a valid file or
not.

Robert.

On 14 September 2012 10:47, Fan ZHANG <osgfo...@tevs.eu> wrote:

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »