Closed ktprograms closed 8 months ago
That log looks pretty cursed. Something has been invoking Nheko with random urls, trying to get it to open them:
[2022-04-09 14:36:55.919] [ui] [info] Received uri! https://pad.ccc-p.org/C3bk_zFTSYarbaOQPZeJLg?both
I don't even know, how that is possible unless you ran nheko <url>
in a terminal or so.
Furthermore it seems to have died when trying to persist the sync response to the database.
7 io.github.nheko-reborn.nheko 0x000000010105c295 mdb_txn_commit + 4741
8 io.github.nheko-reborn.nheko 0x0000000100c37e41 Cache::saveState(mtx::responses::Sync const&) + 7377
9 io.github.nheko-reborn.nheko 0x0000000100cd930c ChatPage::handleSyncResponse(mtx::responses::Sync const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) + 620
Sadly it doesn't tell me why it crashed apart from some pointer error. Maybe during suspend macOS unmapped the database or so? Or we somehow corrupted memory in the hundreds of failed sync responses? Hard to say. It would probably be helpful, if you could reproduce that issue under a debugger and create a backtrace. Currently I would need to guess, what the issue is here.
Something has been invoking Nheko with random urls, trying to get it to open them
Thanks for pointing that out, didn't notice it. Those are all URLs I have open in Safari tabs. Not sure what could be causing them to be passed to Nheko, though.
It would probably be helpful, if you could reproduce that issue under a debugger and create a backtrace.
I don't think it's easily reproducible, like I said it's been fine for about a week.
Well, thanks for the report, maybe I'll have an idea at some point, but if it isn't very pressing, I will wait with working on this for a bit :3
How does opening a URL with nheko from the command line work? I tried running /Applications/Nheko.app/Contents/MacOS/nheko https://example.com
, but the output was Sending Matrix URL to main application:
, and example.com didn't show up in the log file.
Well, that is how I expected it to work, so no idea, where those came from. Might have been from invoking links internally?
Actually, now that I think about it, those are all just URLs in messages sent to the channels I'm in.
I got confused because I did open them, but I think it was logged when Nheko received the messages.
Hm, maybe I confused something and that message actually gets sent when clicking on a link, my bad :D
I think we should have fixed this in the meantime. If you can still reproduce it with the latest development versions, please reopen with a new stacktrace. Thank you :)
Describe the bug
I had nheko hidden and my Mac's display was sleeping, when I turned it back on the "App has crashed" alert was showing.
To Reproduce
This hasn't happened before in the ~1 week I've been using Nheko, so I'm not sure what exactly caused it.
Version
0.9.3
Operating system
macOS
Installation method
macOS DMG from Homebrew
Desktop Environment
MacOS default
Did you use profiles?
Relevant log output
nheko.log
Crash Log
Crash Log