Open Aerylia opened 4 months ago
This looks a bit difficult to debug and the error does not say what caused the problem. I am not able to reproduce this yet. It would help if you can figure out how to reproduce this crash.
It happens to me all the time, on my Macbook, not on Windows.
I think @akissinger also had random crashes when on his mac.
I was getting random crashes in Linux. It seemed to be somewhat sensitive to my Qt6/pyside version, but I never was able to pinpoint it
I believe this is due to a race condition where something is being used before it's initialised, due to a signal being delayed (which varies based on the OS and other factors). There's some code that's implicitly assuming a callback/slot is called before it actually has been.
Something like this is the cause of issue #120 as well. Unfortunately, these bugs are difficult to reproduce, because running a debugger/profiler alters the nature of the timings. (The term for such bugs is "Heisenbug"!)
Sometimes one can reason about the cause if one thinks carefully about the code logic. The error index 6 beyond bounds [0 .. 5]
suggests that something had 6 items and that one item had been added to it, but an attempt was made to use that item before it was fully initialised. Since you say you were clicking on a list of rules, I would guess that you performed an operation that added a rule to a list of 6 existing ones, and then clicked on something that referenced the 7th rule before the data structures for it were fully initialised. It would be helpful to have more information about what exactly you were doing leading up to the crash.
Issue as described in the title. It seems to happen occasionally when clicking the rules themselves, but I have yet to identify where I need to be clicking for it to consistently happen.
I'm on MacBook Air M1 MacOs Sonoma 14.2.1
It seems to be a UI issue with QT throwing an uncaught exception.
The error: