Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Segmentation fault when drag and dropping a table from another DB4S instance #1288
Details for the issue
Open two DB4S instances.
Useful extra information
I'm opening this issue because:
I'm using DB4S on:
I'm using DB4S version:
I have also:
That explains the crash. Everything is null, including the m_db member in line sqlitetablemodel.cpp:71
It seems an incorrect initialisation after refreshing the database.
Yep. Looking at that backtrace, this seems to be the culprit code:
Line 509 there is the one calling
Looking back a few lines, line 474 looks interesting:
On the other hand, this is all inside the
This is all just me guessing though.
added a commit
Jan 15, 2018
The problem actually happens a bit earlier. You can see, that after dropping a table onto the structure view, the tree structure looks different: it's not longer Tables/Views/Indices/Triggers but Browsables/All instead. This happened essentially because whenever the tree structure is updated, we need to notify the main window because some code in there restricts the structure view to the bits in the 'All' node and the browse data combobox to the 'Browsables' node. In this case here however we didn't notify the main window, so the restriction bits weren't executed. The crash in the Browse Data tab is then only a follow up issue on this
Anyway, I think I have fixed the issue. Can you double check, @mgrojo?