ruslang02 / discord-qt

Discord client powered by Node.JS and Qt Widgets.
GNU General Public License v3.0
208 stars 11 forks source link

Random crashes #20

Closed ruslang02 closed 3 years ago

ruslang02 commented 3 years ago

I should admit this app is experiencing a severe issue for quite a long time now. The app may suddenly crash with exit code 0 in absolutely random moments. I am out of ideas as to why this could happen, I am currently most suspecious on NodeGui itself, as it does not fully handle widgets' current state and does not process their deletion and dereferencing. I have found out, that referencing any method of a deleted object gives a similar crash in this app. Even though I was able to fix most of those issues by setting up deletion checks all over the place, the problem is not gone and the app may still crash randomly.

Logging every call to the library using patches does not help much, there is something strange going on here. I wish NodeGui would handle Qt objects states more synchronized, but those are just my thoughts...

I really need everyone's help here to fix this problem. I do also understand that the code quality is still pretty bad but I do promise to fix that after this issue is somewhat solved.

ruslang02 commented 3 years ago

@a7ul Maybe you could give some advice how to fix such issues? This project heavily relies on dynamic creation and deletion of Qt objects, and I've noticed NodeGui does not really work well with dynamic objects as of now...