Re: QApplication.notify exception?
Florian Bruhin <[email protected]>
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <[email protected]> |
Hey, On Sun, May 26, 2019 at 04:52:20PM -0400, Kyle Altendorf wrote: > On 2019-05-26 16:37, Matic Kukovec wrote: > > > Hi guys, > > > > I have an application that runs without a problem on Windows, but on > > Linux it shows this message on exit: > > > > > Qt has caught an exception thrown from an event handler. Throwing > > > exceptions from an event handler is not supported in Qt. > > > You must not let any exception whatsoever propagate through Qt code. > > > If that is not possible, in Qt 5 you must at least reimplement > > > QCoreApplication::notify() and catch all exceptions there. > > I use sys.excepthook to provide a log and dialog for otherwise unhandled > Python exceptions. Maybe see if that can at least let you see what > exception is causing trouble? But I honestly haven't ever seen a reference > to this message before... :| That message is coming from Qt, which doesn't know about Python exceptions. I'm guessing it's referring to C++ exceptions, which you won't catch in Python via an excepthook or "except". So the question is why there's a C++ exception thrown, and from where... No idea how to debug that to be honest. Maybe you can get gdb to break on any exception or something? Florian -- https://www.qutebrowser.org | [email protected] (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ _______________________________________________ PyQt mailing list [email protected] https://www.riverbankcomputing.com/mailman/listinfo/pyqt
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE4E5WAAJAG47w528KkW6wyP1VoHIFAlzrphsACgkQkW6wyP1V oHKJWQ/9GflCjl+S0UcIlY/NzcXCWAlHwiMPebyG02OWdoMlmx5BrCT0sS3Jg8HI cdoWrIPu4YNoWXaxzlenSRy6/2tqGO/9SMDugu8K6tSi6hqMm9vjZqLB7APwBL37 UFFQTgFJTpKmwPjhfUZTpZG5Xk9HJ44bZa7iGldMmqyKeOekp9muqAr5yu5XciKI r6URoia6wwE9jlYMQq/IHVqzImQsLcfgHcQ3WbBmtAEP0TNln9UZdxep04KizxPY EoQfXPco1ZIcfqw9qFyL5kYTtdaLPtgAnZ9v8breJKdzf1h/WQr3q47Yrah0yNoV 9dIAuIu9XAL9ypGe40B8VdpuIfjfUjOJlWeOBI6NrHh1GWrJbYO3punRjNHyPiDH Ie8tPvzcSjKANLcNDcAvlVTGGsV5UlRwDuGq926H6SxS+vvoY4mgV16l6YZ3xDPm KSsMPAmKTqMJNVsbU/9bHOMR+rCt2jwaXBMvPoVmikIAMaqUJruInp8jeTWIcE1A 0LjYVX9EvRALIgQjVzYmp7oy/Bt2ODJZ1E2cROPJfhYFU3VWFTHEUdihMq+RaLPc UWTjn76J02eh992XXfzWnzQwVvRA7duiAhcpNkSJmVSF6CjGd7Pa+68DEpa4hale 812BheIRz+Av2oYPfG8cUfaDVc/adT9P0IQqL6BXBvwhNsMH7p8= =kjHX -----END PGP SIGNATURE-----