Skip to content

Browsing Recently Viewed Table Causes Crash #1019

Closed

Description

@chrisjlocke

Details for the issue

Have been using an older nightly fine (7 May or so) but downloaded a recent nightly (24 May) and now if I browse a recently browsed table, DB4S crashes.
http://screencast-o-matic.com/watch/cbhZ2HXkz2

Windows doesn't really provide useful info where its crashing, so not sure what helpful info I can provide.

I haven't tried the obvious yet of rebooting and retrying. The problem is fairly reproducable. Haven't tried another database either.
Worthy of note that the database is on a server (with plenty of disk space) but haven't had issues before.

Ignore the 'semi crash' when the program is restarted - it only does that when Avast 'sandboxes' it, so its something to do with DB4S checking for a version update and getting 'nothing' back, or something...

Edit: Just tried a different database on a different machine (so still via a network, but not the same above server) and the same issue - browse a table fine, but browse a previous table and 'BANG'.

Useful extra information

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • 3.9.99
  • 3.9.0
  • Other: ___

I have also:

Activity

  1. justinclift commented on May 24, 2017

    @justinclift
    Member

    Interesting. Does the nightly from before 19th May work? eg the 18th or similar.

    I'm wondering if it's a side effect from b7cd1c7 somehow. 😄

  2. chrisjlocke commented on May 24, 2017

    @chrisjlocke
    MemberAuthor

    I'll have a go tomorrow... certainly ones from early May were OK.

  3. chrisjlocke commented on May 25, 2017

    @chrisjlocke
    MemberAuthor

    Yes, nightlies from 18 May and 19 May worked fine. The nightly from 20 May exhibits the above crash.
    The culprit has been found.

  4. justinclift commented on May 25, 2017

    @justinclift
    Member

    Awesome @chrisjlocke. 😄

  5. MKleusberg commented on May 26, 2017

    @MKleusberg
    Member

    Thanks for tracking this down, @chrisjlocke! In this case I believe that this is indeed caused by 7ad8035. I'm just not sure why yet and it will be tricky to debug because it doesn't crash for me. But I'll try 😄

  6. justinclift commented on May 26, 2017

    @justinclift
    Member

    @MKleusberg If it's useful, I can kick off the windows build script and point it at a branch of your repo or something, to make some one off build(s) for Chris to test with.

  7. justinclift commented on May 26, 2017

    @justinclift
    Member

    Oh... one other thing springs to mind. I recently updated the Windows build box to use SQLite 3.19.0. I wonder if that's the cause?

  8. justinclift commented on May 26, 2017

    @justinclift
    Member

    Ahhh. sqlite.org now lists 3.19.2 as the latest. I've just updated the Win build box with that and kicked off a modified version of the nightlies build script. We should have new binaries for today in ~1/2 hour.

  9. MKleusberg commented on May 26, 2017

    @MKleusberg
    Member

    Yeah, makes sense to use the latest SQLite version. But it's probably not the source of the problem here (I guess).
    Can you make a build from this branch? This prints some rudimentary debug output to the console.

  10. justinclift commented on May 26, 2017

    @justinclift
    Member

    Yep, will do. Gimme a bit. 😄

  11. justinclift commented on May 26, 2017

    @justinclift
    Member

    k, it's building now. In theory it they should pop up in the *-onceoffs dirs in ~1/2 hour:

    ... and have "issue1019v1" in their name.

  12. MKleusberg commented on May 26, 2017

    @MKleusberg
    Member

    Cool, thanks 😄

    @chrisjlocke Can you test again using those build? It should still crash but - when you start the new build from cmd.exe - print some debug information that hopefully provides at least some clue on where to start looking for the bug 😉

  13. karim commented on Jun 2, 2017

    @karim
    Member

    I have the same exact problem as @chrisjlocke.

    Also, it crashes when I move away from "Browse Data" tab and re-select it again. I can only select "Browse Data" tab once right after opening any database, and as soon as I select another tab and try to go back to it, DB4S crashes. Nightly versions up to 19 May work fine.

    I downloaded the debug version issue1019v1 but it is not printing anything.

    C:\Users\Karim\Desktop\DB Browser for SQLite>"DB Browser for SQLite.exe"
    C:\Users\Karim\Desktop\DB Browser for SQLite>
    
  14. chrisjlocke commented on Jun 2, 2017

    @chrisjlocke
    MemberAuthor

    Confirmed. Still crashes, and no output is created from running it from the command-line. It might have to explicitly log it to a file? I don't think Windows has a 'console' that applications can write to.

    I tried to run it with an output option ('dbrowser for sqlite.exe >log.txt') but that didn't work either.

  15. 26 remaining items

  16. justinclift commented on Jun 21, 2017

    @justinclift
    Member

    k, I'll have another go at it tomorrow, and see if I can collect more useful info for what's going on. 😄

  17. MKleusberg commented on Jun 21, 2017

    @MKleusberg
    Member

    Cool, thanks 😄 But no worries if you don't have the time for it tomorrow. I think I'll borrow an Windows laptop one of the next days and see if I can spot something.

  18. justinclift commented on Jun 21, 2017

    @justinclift
    Member

    Hmmm, maybe run up Fedora 25 x64 (their XFCE download ISO) in a VM, and see if it crashes for you? Might be easier. 😄

  19. chrisjlocke commented on Jun 22, 2017

    @chrisjlocke
    MemberAuthor

    I think I'll borrow an Windows laptop one of the next days and see if I can spot something.

    If you want a Windows VM, let me know.

  20. MKleusberg commented on Jun 22, 2017

    @MKleusberg
    Member

    Thanks to both of you 😄 The Fedora VM is a really good idea, and I'll probably come back to the Windows VM, too, at some point.

    But I've just tried the latest nightly on a Windows system without development environment and it just worked. Then I've installed an older one and it crashed. So to me it looks like it's been fixed by one of the last commits 🎆 Not sure though, so maybe you can double check 😉

  21. justinclift commented on Jun 22, 2017

    @justinclift
    Member

    @MKleusberg Just compiled and tried it (Fedora 25 x64, XFCE version, updated with most recent packages as of today using dnf)... immediate crash upon opening a project file still. Doh! 😉

  22. MKleusberg commented on Jun 22, 2017

    @MKleusberg
    Member

    Huh. Nevermind then 😉

  23. chrisjlocke commented on Jun 23, 2017

    @chrisjlocke
    MemberAuthor

    But I've just tried the latest nightly on a Windows system without development environment and it just worked.

    Opening a project file works if you browse the tables first from the database (ie, open the database first). Did you do that? Opening a 'new' project file (ie, not opening the database first) seems to cause the project crash.

    Viewing a table in the latest nightly doesn't appear to crash anymore. Should I therefore close this issue, and raise the 'opening a project file crashes' issue instead?

  24. MKleusberg commented on Jun 26, 2017

    @MKleusberg
    Member

    Thanks, Chris! This was it - it seems to depend on the saved active tab in the project file. If it is the Browse Data tab it works, if it isn't it crashes. And of course I always did it the wrong way 😉 But finally I've managed to reproduce this (even on my system) and I think it should be fixed now.

    So we had two separate issues. One for browsing the same table again which I guess was fixed by 6984d45, and another for loading certain project files which should be fixed by f4fad4a. Can you again double check it's working for you, too? 😄 Also, as pointed out earlier I think #1007 might have been fixed by the first commit, too. So that's worth testing as well.

  25. justinclift commented on Jun 26, 2017

    @justinclift
    Member

    Awesome! Just tried on OSX... no crash when opening a project file.

    I'll jump on the Linux dev box in a bit and try that too, just to make sure as that one was definitely crashing prior. 😄

  26. justinclift commented on Jun 26, 2017

    @justinclift
    Member

    Yep, the crash-on-opening-project-files is fixed here on Fedora 25 now.

    Thanks @MKleusberg. Well done. 😁

  27. chrisjlocke commented on Jun 27, 2017

    @chrisjlocke
    MemberAuthor

    Works perfectly. Many thanks @MKleusberg .

  28. MKleusberg commented on Jun 28, 2017

    @MKleusberg
    Member

    Thank you for all the testing 👍 I'm glad we finally got there 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions