-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Web page runJavascript always crashes jvm when you try to use the returned object #72
Comments
I assume that result object is destroyed on cpp code before being returned to this callback |
There seems to be a problem when QVariant is converted to Java object. The actual value is converted to QHash but
|
@omix getClass() doesn't crash because it's not using the native object link. Any method that uses QtJambi_LibraryUtilities.internal.nativeId(this) in it crashes the app, for example toString(), size(), etc |
QVariant containing QMap was erroneously converted to Java QHash not QMap. Thus, accessing the QMap value from Java led to crash. |
Describe the bug
Web page runJavascript always crashes jvm when you try to use the returned object
To Reproduce
Steps to reproduce the behavior:
Just run this code:
It also crashes when you stay in the breakpoint of this line for too long - I assume it happens because debugger is calling .toString() for the returned o object
Expected behavior
It shouldn't crash at all.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: