Answer the question
In order to leave comments, you need to log in
How and what information to collect in case of a fatal error in Qt?
Good day!
In general, for some clients, the application crashes with an error in the qquicklayoutsplugin.dll module, exception code 0xc0000090 error offset: 0x00003082, and in random places.
It’s clear that somewhere I have something wrong in QML, but I can’t figure out exactly where.
Tell me, please, how and what information can be collected in order to get closer to the solution?
And in general, what is the right thing to do in such cases (I mean maybe there is a tool / library with which such problems are diagnosed and a log is written)?
Answer the question
In order to leave comments, you need to log in
1. Connect the logging library to your program. I recommend log4cplus.
https://habr.com/en/post/118165/
Friends with Qt. Log anything and everything.
The logger is configured via a text configuration file, which is located next to the application. The configuration specifies what error level to log and where (to a file, console, network).
Logging levels by importance TRACE > DEBUG > INFO > WARN > ERROR > FATAL
During normal operation of the application, set the config to log INFO messages and higher.
As soon as something bad happens, your program crashes - ask clients to turn on TRACE logging, crash the program and send logs. Or if you can do it yourself remotely.
2. Connect Google Breakpadhttps://maxsavenkov.livejournal.com/189460.html After the fall, take a crash dump and study it. There it will be visible in which function they fell, this will simplify the search.
I recommend starting with path 2, it is faster. These options are not mutually exclusive, but complementary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question