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
Crashes when browsing a empty view with view editing enabled #1774
Details for the issue
What did you do?
Create a view, open it in data Browser, activated view editing and set a pseudokey.
What did you expect to see?
What did you see instead?
Crash to desktop
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
What is your DB4S version?
Did you also
I was struggling to reproduce the error myself, so i'm not so sure what really triggers the error anymore.
Or recreate the database with:
save as test.db and open it with the following .sqbpro project file:
Thank you very much, @noenandre! The project file really did help a lot
I think I have found the problem and fixed it. Can you check with tomorrow's nightly build to confirm it's working for you as well? By the way, the issue I found depends on sorting the view. When you remove all records from the table, the view obviously has no data. But we need some data to figure out how many columns a view has. So a view without data basically has zero columns for us. The bug was in the sorting: When you have sorted the view by, let's say, the third column, then delete all the data so the view has no columns at all, we still tried to sort it by the third column. This in effect led to the crash.
Turns out we cannot cherry-pick this one to the