Open madmaxoft opened 4 months ago
Interesting; thank you for the report. Do you also get the crash when you cancel adding the filename (select new file, but then use Esc to cancel)? Does the filename matter in this case or does it happen with any file added?
I don't even get to enter a filename, ZBS crashes within a second or two after displaying the filename edit box.
I think I know what could be causing this.
I have a script that is run by cron that creates a file in the affected project folder, then edits another file, and removes the (previously created) file really quickly (SQLite DB single-row append), it runs every 5 seconds. ZBS seems to catch on the file being created and removed, and that seems to throw it off. The crash doesn't happen in any other project folder, only in this specific one.
Very interesting; can you try setting filetree.showchanges=false
in the config and see if it makes any difference?
No more segfaults when this setting is applied.
So I guess we found the reason, but what can be done about it?
I'm using ZBS from current master at 803d3823639c0e3b0163079f427eb223180387c3 on KDE Neon. I've just noticed a segfault in ZBS that is 100%-repeatable on one of my computers, but not on the other (with identical OS and ZBS version):
I've tried running ZBS under gdb with the following:
Unfortunately I'm not too familiar with Linux troubleshooting, so I have no idea what to explore next in order to provide more information. Not to mention that I don't think this is exactly ZBS's fault, Lua shouldn't segfault like this, I assume some loaded library is causing this.