Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 00:59

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 20.08.2012, 03:56 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
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?


Top
 Profile  
Reply with quote  
PostPosted: 20.08.2012, 14:24 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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.


Top
 Profile  
Reply with quote  
PostPosted: 20.08.2012, 14:32 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
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.


Top
 Profile  
Reply with quote  
PostPosted: 21.08.2012, 04:18 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group