Skip to content

GUI crashes often if Query Log open: 2 examples #337

Description

@TheManFromDelmote

Below are 2 examples when the GUI crash occurs, which happens almost each and everytime i view the Query Log.
2018-07-23 01_08_09_Error.log
2018-07-27 01_58_46_Error.log

Basically the same apart from the count numbers differing.

2018-07-23 01:08:09.8724 QueryLogViewModel System.Reflection.TargetInvocationException: An error occurred while dispatching a call to the UI Thread ---> System.InvalidOperationException: An ItemsControl is inconsistent with its items source.
See the inner exception for more information. ---> System.Exception: Information for developers (use Text Visualizer to read this):
This exception was thrown because the generator for control 'SimpleDnsCrypt.Controls.LoggingListView Items.Count:2814' with name '(unnamed)' has received sequence of CollectionChanged events that do not agree with the current state of the Items collection. The following differences were detected:
Accumulated count 2813 is different from actual count 2814. [Accumulated count is (Count at last Reset + #Adds - #Removes since last Reset).]


2018-07-27 01:58:46.5086 QueryLogViewModel System.Reflection.TargetInvocationException: An error occurred while dispatching a call to the UI Thread ---> System.InvalidOperationException: An ItemsControl is inconsistent with its items source.
See the inner exception for more information. ---> System.Exception: Information for developers (use Text Visualizer to read this):
This exception was thrown because the generator for control 'SimpleDnsCrypt.Controls.LoggingListView Items.Count:110' with name '(unnamed)' has received sequence of CollectionChanged events that do not agree with the current state of the Items collection. The following differences were detected:
Accumulated count 109 is different from actual count 110. [Accumulated count is (Count at last Reset + #Adds - #Removes since last Reset).]

Hope they help.

Activity

  1. changed the title [-]GUI crashes oftenif open: 2 examples[/-] [+]GUI crashes often if Query Log open: 2 examples[/+] on Jul 27, 2018
  2. kamilmirza commented on Oct 21, 2018

    @kamilmirza

    2018-10-22 02_48_03_Error.log

    faced this too on build 0.5.8

  3. rkwk commented on Oct 23, 2018

    @rkwk

    I experience this regularly, very annoying... Sometimes it's just the Windows' standard "the application stopped working" window, sometimes dozens of error dialogues pop-up before the crash.

  4. rlesch commented on Nov 25, 2018

    @rlesch

    same happened to me with 6.0.0 and 5.8.0 while query log window open and active
    Count always different.

  5. bitbeans commented on Nov 27, 2018

    @bitbeans
    Member

    @TheManFromDelmote @kamilmirza @rkwk @rlesch OS Version? .NET Version? :)

  6. kamilmirza commented on Nov 27, 2018

    @kamilmirza

    win10 x64 v1809
    .NET v4.7 (with 2 and 3)

    had another one with freshly installed v0.6.0
    2018-11-27 20_56_19_Error.log

  7. TheManFromDelmote commented on Nov 27, 2018

    @TheManFromDelmote
    Author
  8. rlesch commented on Nov 27, 2018

    @rlesch

    ofc, point taken :)

    • win7 pro sp1 64 bit (also on win64 enterprise sp1 64bit)
    • net 4.7.2 (version 4.7.0.3062 release dword 461814)
  9. bitbeans commented on Nov 30, 2018

    @bitbeans
    Member

    i can't reproduce the error currently :(

  10. rlesch commented on Dec 2, 2018

    @rlesch

    i can't reproduce the error currently :(

    next crash (with 6.0.1 preview) needed > 5k entries in the Query.log window, so seems tedious to wait for a random one.

    somehow (just gutfeeling) all the crashes occured when i had cloudflare as only host selected. but tbh i cant see any causual link there. could it be triggered by a malformed response or a timing issue? (though that should be handled all by the service and not the gui)

    only other idea, that it could happen due to small load spikes (on cpu and'/or io) caused by eg browser on pageloading on weaker systems? so the log access is delayed etc.?

  11. kamilmirza commented on Dec 2, 2018

    @kamilmirza

    updated to 0.6.1
    no crash at all after an hour, 500+ entries
    on older versions, was facing crash after few entries within 1 or 2 minutes

  12. rlesch commented on Dec 2, 2018

    @rlesch

    @kamilmirza that doesnt mean much, see my comment above. it still seems to crash.
    Question: do you use it on a fast pc or rather a slow one?

  13. kamilmirza commented on Dec 2, 2018

    @kamilmirza

    @rlesch yes it is on a fast pc (with SSD)
    opened ~100 bookmarks with no issues, at once

  14. added a commit that references this issue on Dec 3, 2018
  15. bitbeans commented on Dec 3, 2018

    @bitbeans
    Member

    @rlesch can you test with 0.6.2 again please? :)

  16. rlesch commented on Dec 3, 2018

    @rlesch

    @rlesch can you test with 0.6.2 again please? :)

    installing 6.0.2 right now. then well see :) * pressing thumbs *

    (ot how to escape formatchars?)

  17. rlesch commented on Dec 6, 2018

    @rlesch

    @bitbeans sadly mixed news:

    During normal operation, it kept stable so far. But during testing what included alot of configuration changes and start/stopping the service, the Gui crashed 2x with the same error as above during active query logging. While crashing, Desktop gets (most of the times) spammed with error-windows.

    Somehow the construct doesnt feel robust yet in the way, that whatever causes the error, it shoudnt crash the whole gui. If its 'just' logging related the application should be able to gracefully recover from such error by some exeption handling . (just speaking from the amateurs view)

  18. rlesch commented on Dec 6, 2018

    @rlesch

    p.s dont want to open a new issue for it, since its about the query log and minor impact:

    its only possible to select one entry a time to add to the blocklist (afaik)
    ctrl/shift click doesnt allow adding multiple entries. but would be very convenient if they did.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions