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

No error handling in QML callbacks #9

Closed
otsaloma opened this issue Dec 23, 2013 · 2 comments
Closed

No error handling in QML callbacks #9

otsaloma opened this issue Dec 23, 2013 · 2 comments

Comments

@otsaloma
Copy link

When I send an event from Python to QML using pyotherside.send I'm not getting proper error handling on the QML side. If I have an error in my QML handler, it seems that execution silently stops at the offending point with no console output or crash.

I'm using pyotherside-qml-plugin-python3-qt5 1.0.0-1.17.1 on the Sailfish SDK. I use qmlscene to run my code and it handles errors properly except for those pyotherside.send handlers. Also, console.log works in those handlers, so I can manually find the offending line.

@thp
Copy link
Owner

thp commented Jan 4, 2014

Do you have a code example (http://sscce.org/) that demonstrates this issue? Would help in debugging and verifying a fix.

@otsaloma
Copy link
Author

otsaloma commented Jan 4, 2014

Here you go: https://gist.github.com/otsaloma/8258322

I hope a Sailfish example is all right, I don't have PyOtherSide on my desktop system and I'm not familiar non-Sailfish top-level widgets.

To clarify, for me running this with qmlscene prints "starting", but not "finished". It silently stops at the page.nonexistentMethod call.

@thp thp closed this as completed in 53273da Jan 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants