-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core dumped at the moment of switching to a new unread chat #177
Comments
Now I'm faced with the fact that it crashes at startup. Can you tell me how to debug this behavior? '-e` does not give any output to stdout... upd:
I think it's important to know that I'm using upd: See the attachment for the |
Hi @dvragulin - thanks for reporting the bug. Unfortunately the logs do not provide sufficient insight for this crash. Could you help to get the callstack of the first crash you encountered? 1. Determine PID of the crashed nchat instance
It will output something like:
Find the timestamp which matches when you encountered the crash and take note of the 2. Get the callstack of the crash
Get callstacks of all threads in the process:
Copy all text starting from
|
Of course, here's the stdout: stdout.log |
Thank you 👍 If you are free to try one more thing, it would be very useful if you could build a debug build, reproduce the crash and get callstack (above steps). To build a debug build one can run the following from the source clone of nchat:
And then you could run it without installing, like this
Once crashed one can follow the steps in above comment (using coredumpctl). In any case I will prepare some code changes to improve the robustness, which may or may not fix the crash you're seeing. I'll update here again once the "blind" robustness fixes are available. |
The above commit adds some "blind" robustness fixes which may or may not address the crash you are seeing. In case you still see the crash after above fix, it would be very useful to get callstack from a debug build. |
That's it, here's the result of the first run in the debug mode: stdout.log |
Thank you 👍 This is very useful information! If you could open your debug core dump again
Getting above info (basically what markdown message it's trying to convert) can help me determine if tdlib has fixed this in its latest code, or whether I should report a bug in the their project. Note: The output from the commands will contain message content, so if you don't want to share it here publicly, you can email it to me (d99kris at gmail dot com) or perhaps censor it (just try not to change the number of characters). As a temporary workaround for this bug you can try disabling markdown conversion for Telegram. Edit the following file:
And set:
|
@d99kris Indeed, the markdown shutdown solution helped solve the problem. Frankly, I don't even see much difference in the text. Here I suggest you take a look: stdout.log I have replaced sensitive text sentences with |
Hi again, many thanks for providing the information! 👍 FYI - with markdown conversion disabled, all messages look like plain text. For example if someone sends a message: Then nchat will display it as:
Whereas if you have markdown conversion enabled, nchat will show it as:
And similarly when sending messages, with markdown conversion enabled one can do basic formatting and send text like:
And it should show up in the mobile app like: |
Description:
This behavior occurred after the transition from version 3.67 to 4.13. Unfortunately, I can't figure out how this behavior will be properly debugged. There is no information in the logs on this issue.
How to reproduce it:
I press ctrl+F and move on to the next chat. At this point, the application crashes. It does not fall every time, but with a frequency that I could not establish.
Environment:
The text was updated successfully, but these errors were encountered: