Horde3D
http://horde3d.org/forums/

Segfault with attachment plugin on right-click
http://horde3d.org/forums/viewtopic.php?f=6&t=1704
Page 1 of 1

Author:  tshannon [ 20.08.2012, 03:56 ]
Post subject:  Segfault with attachment plugin on right-click

Every time I right click after selecting a node with a custom attachment, the editor crashes with a segfault. It doesn't matter if I'm right-clicking in one of the side panels, or the main viewport, it still crashes.

My plugin is incredibly stripped down. I'm basically just trying to add the bare minimum to get it working properly, then I'll add any extras I want.

Which call / symbol defined in AttachmentPlugin.h is it trying to call when you right click?

Author:  Volker [ 20.08.2012, 14:24 ]
Post subject:  Re: Segfault with attachment plugin on right-click

Hard to say without using a debugger. In GLWidget a "nodeSelected" signal will be emitted if you right click in the scene. I'm currently not sure what is connected to this signal, but if you do a search for the nodeSelected signal you may find the reason where an attachment method is called.

I'm currently not able to do this search as I don't have the possibility to download the source code atm.

Author:  tshannon [ 20.08.2012, 14:32 ]
Post subject:  Re: Segfault with attachment plugin on right-click

Selecting, updating, and adding new attachments seems to work fine, it's just the right click.

I'll figure it out, it'll just take a bit. C++ development makes me want to chew off my fingers. I admire you guys that can actually be productive with it.

Author:  tshannon [ 21.08.2012, 04:18 ]
Post subject:  Re: Segfault with attachment plugin on right-click

Figured out the cause, but not necessarily the reason.

I was using a QTextEdit widget as a stand in, so I could mess around with the interface a bit and get some basic text writing out the scene file. For some reason, that was causing the issue.

Once I replaced it with a different widget (QTableWidget), I no longer get the crash on right click.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/