-
Notifications
You must be signed in to change notification settings - Fork 9
add breakpad crash handler for Windows #388
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
base: bs_dev
Are you sure you want to change the base?
Conversation
This is for windows only? |
Where will report go? |
1ef0c55
to
e601865
Compare
The breakpad sources are a git submodule, they are not included. This is for Windows only yes. The report is form data posted to a URL, the receiving app has not been set up yet. |
|
e601865
to
6b4540f
Compare
Yes I tested it for signer, I can't give you a screenshot now but I'll give you a screenshot for terminal: You can test it by just making it crash, e.g. like this: QTimer::singleShot(10000, []{ int *a = (int*)0x42; printf("%d", *a); }) // or anything that will crash By qt sources, you mean what's in qt creator? That's what the qt-breakpad demo is based on, and I got the code from the demo. I haven't looked at what's in qt creator currently. I'm going to do a bit more work on this to wrap some things up. |
6b4540f
to
b68a017
Compare
I made a change to always enable the systray cleanup code even when the crash handler is not in effect, Scott wanted this. |
4138c8a
to
85a82b0
Compare
Integrate and modify code from this demo: https://github.com/KandaoVR/qt-breakpad Use the latest version of breakpad with the cmake file from the vcpkg port. To enable the crash handler, pass the cmake option to `generate.py`, e.g.: ```bash python ./generate.py -cmake-flags '-DENABLE_CRASH_HANDLER=ON' release ``` It will then be activated for both the terminal and the signer. When `OFF` breakpad will still be in effect to launch the systray cleanup code, but the crash handler will not display. I am working on the report receiver web app here: https://github.com/rkitover/qt-breakpad-web TODO: - see if mac and linux can work Signed-off-by: Rafael Kitover <rkitover@gmail.com>
85a82b0
to
961fa0d
Compare
add breakpad crash handler for Windows
Integrate and modify code from this demo:
https://github.com/KandaoVR/qt-breakpad
Use the latest version of breakpad with the cmake file from the vcpkg
port.
To enable the crash handler, pass the cmake option to
generate.py
,e.g.:
python ./generate.py -cmake-flags '-DENABLE_CRASH_HANDLER=ON' release
It will then be activated for both the terminal and the signer.
When
OFF
breakpad will still be in effect to launch the systraycleanup code, but the crash handler will not display.
TODO:
find or write submit URL handler
see if mac and linux can work
Signed-off-by: Rafael Kitover rkitover@gmail.com