Skip to content
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

QApplication uncatched exception: reimplement notify() #18

Open
sofian opened this issue Dec 30, 2012 · 0 comments
Open

QApplication uncatched exception: reimplement notify() #18

sofian opened this issue Dec 30, 2012 · 0 comments

Comments

@sofian
Copy link
Owner

sofian commented Dec 30, 2012

There was an error in KDTree line 55 that was making the application crash. Here's the faulty line:

  addPlug(_VIDEO_OUT = new PlugOut<VideoRGBAType>(this, false, "ImgOUT"));

The problem was that the second argument of PlugOut constructor should have been a string and not a boolean. The exception comes from std::string but the real problem is that I got the following error:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
Aborted

It speaks for itself: we need to "reimplement QApplication::notify() and catch all exceptions there".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant