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 

DXF file with text crashes on Intersect


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


Joined: 21 Dec 2017
Posts: 6

PostPosted: Tue May 29, 2018 3:15 pm    Post subject:
DXF file with text crashes on Intersect
Reply with quote

Hi,

We are using osg version 3.5.6 from VCPKG.

When we load a DXF which includes text it loads and displays fine. However if we then call GUIActionAdapter::computeIntersections on the scene whilst the mouse is over a piece of text within the loaded DXF it crashes here:

Code:

void Text::accept(osg::Drawable::ConstAttributeFunctor& af) const
{
  if (_coords.valid() )
  {
    af.apply(osg::Drawable::VERTICES, _coords->size(), &(_coords->front()));
    af.apply(osg::Drawable::TEXTURE_COORDS_0, _texcoords->size(), &(_texcoords->front())); <<<<<<<<<<<<<
  }
}


_texcoord would appear to be empty.

We are simply loading the DXF via readRefNodeFile then placing them in a PositionAttitudeTransform within out scene.

I can work around it for now as we do not want the loaded DXF's to be directly pickable so can exclude them via a NodeMask, but would prefer not to have to do so.

I see that there is a more recent build of osg available - is this something which has been fixed since 3.5.6?

I can post a copy of an affected DXF if it would help.

Thank you!

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


Joined: 18 Mar 2009
Posts: 11910

PostPosted: Tue May 29, 2018 4:04 pm    Post subject:
DXF file with text crashes on Intersect
Reply with quote

Hi Brian,

Please update to 3.6.1. There are many improvements between 3.5.6 dev
release and the latest stable release, in particular to osgText so
while I can't say specifically that the issue you have come across is
fixed, there is a good chance. There are also so many other
improvements that it's worth having for it's own sake.

If the problem still exists then an example that reproduces the issue
would be really helpful.

Robert.

On 29 May 2018 at 16:15, Brian Hutchison <> wrote:
Quote:
Hi,

We are using osg version 3.5.6 from VCPKG.

When we load a DXF which includes text it loads and displays fine. However if we then call GUIActionAdapter::computeIntersections on the scene whilst the mouse is over a piece of text within the loaded DXF it crashes here:


Code:

void Text::accept(osg::Drawable::ConstAttributeFunctor& af) const
{
if (_coords.valid() )
{
af.apply(osg::Drawable::VERTICES, _coords->size(), &(_coords->front()));
af.apply(osg::Drawable::TEXTURE_COORDS_0, _texcoords->size(), &(_texcoords->front())); <<<<<<<<<<<<<
}
}




_texcoord would appear to be empty.

We are simply loading the DXF via readRefNodeFile then placing them in a PositionAttitudeTransform within out scene.

I can work around it for now as we do not want the loaded DXF's to be directly pickable so can exclude them via a NodeMask, but would prefer not to have to do so.

I see that there is a more recent build of osg available - is this something which has been fixed since 3.5.6?

I can post a copy of an affected DXF if it would help.

Thank you!

Cheers,
Brian[/code]

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








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


Joined: 21 Dec 2017
Posts: 6

PostPosted: Wed May 30, 2018 1:44 pm    Post subject:
Reply with quote

Hi Robert,

I have tried in the latest release and unfortunately the bug is still there. I will try and put together some test code, we are in the middle of our own release bugfix cycle at the moment so it may take a while.

In the meantime (in case you already have something which views DXF files and lets you pick) here is a DXF file which has this issue.

Zooming in around the center you should find some text labels and picking over some text should trigger the crash.

Cheers,
Brian
Back to top
View user's profile Send private message
brianh
Newbie


Joined: 21 Dec 2017
Posts: 6

PostPosted: Wed May 30, 2018 2:55 pm    Post subject:
Correction - bug is fixed
Reply with quote

Sorry Robert,

I was still linking against the old version. Now I have manged to get it to link against the new version the dxf/text bug has been fixed.

That's the god news, unfortunately the new version has triggered another more severe crash ... probably something we are doing that we were getting away with in the old version.

Thanks,

Cheers,
Brian
Back to top
View user's profile Send private message
brianh
Newbie


Joined: 21 Dec 2017
Posts: 6

PostPosted: Wed May 30, 2018 2:55 pm    Post subject:
Reply with quote

Sorry Robert,

I was still linking against the old version. Now I have manged to get it to link against the new version the dxf/text bug has been fixed.

That's the god news, unfortunately the new version has triggered another more severe crash ... probably something we are doing that we were getting away with in the old version.

Thanks,

Cheers,
Brian
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 error while loading .iv file in opens... Rj@123 General 0 Wed Jun 20, 2018 10:52 am View latest post
No new posts osgDB::readRefNodeFiles() crashes wit... peter_k General 4 Fri Jun 08, 2018 9:18 am View latest post
No new posts Which character encoding is used by o... wernerM General 1 Tue May 29, 2018 2:53 pm View latest post
No new posts Text Bounding Box Calculation Daniel Emminizer, Code... General 2 Mon May 14, 2018 3:03 pm View latest post
No new posts FbxPlugin: Check existance of file be... bbjorn Submission 1 Thu May 03, 2018 10:58 am 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