Discussion:
QML WebView segfaults when user goes to task switcher
Felipe Crochik
2012-04-01 04:17:06 UTC
Permalink
I have reported similar problem before but have never figured out a
solution for it. Hopefully I will have better luck this time - I have two
applications waiting for a workaround so I can release them to the
Harmattan platform.

The application will crash with segfault if the javascript tries to update
the screen when (or after) the user switches to the task switcher on
harmattan. This is the output:
Meego graphics system destroyed

QPaintDevice: Cannot destroy paint device that is being painted

Segmentation fault

Finished running remote process. Exit code was 139.

I have now a very simple example that reproduce the issue 100% of the time.
I can't report this to the harmattan bug web site anymore so I am posting
to any and all channels were I can find someone with expertise to help me.

In order to avoid a long e-mail with attached files I created a simple web
page with more information: http://crochik.com/webview/

Thanks in advance,
Felipe
Mohammed Hassan
2012-04-05 13:48:03 UTC
Permalink
Post by Felipe Crochik
I have reported similar problem before but have never figured out a
solution for it. Hopefully I will have better luck this time - I have
two applications waiting for a workaround so I can release them to the
Harmattan platform.
The application will crash with segfault if the javascript tries to
update the screen when (or after) the user switches to the task
Meego graphics system destroyed
QPaintDevice: Cannot destroy paint device that is being painted
Segmentation fault
Finished running remote process. Exit code was 139.
I have now a very simple example that reproduce the issue 100% of the time.
I can't report this to the harmattan bug web site anymore so I am
posting to any and all channels were I can find someone with expertise
to help me.
In order to avoid a long e-mail with attached files I created a simple
web page with more information: http://crochik.com/webview/
Have you tried setting the viewport for QDeclarativeView to QGLWidget ?

QmlApplicationViewer viewer;

viewer.setViewport(new QGLWidget);

Seeing a backtrace would probably help finding a better workaround.

Cheers,
--
Senior Software Engineer
Maemo Software
Felipe Crochik
2012-04-06 11:38:58 UTC
Permalink
Mohammed,

It is funny.... I just tried with the example code I published and now it
does not crash anymore. I had tried before on a different application
(with my custom version of the webview component) and it didn't do any good
then.
I will double check applying this change to my two applications that depend
on it and let you know of the results.

Thank you very much for now!
Felipe
Post by Mohammed Hassan
Post by Felipe Crochik
I have reported similar problem before but have never figured out a
solution for it. Hopefully I will have better luck this time - I have
two applications waiting for a workaround so I can release them to the
Harmattan platform.
The application will crash with segfault if the javascript tries to
update the screen when (or after) the user switches to the task
Meego graphics system destroyed
QPaintDevice: Cannot destroy paint device that is being painted
Segmentation fault
Finished running remote process. Exit code was 139.
I have now a very simple example that reproduce the issue 100% of the time.
I can't report this to the harmattan bug web site anymore so I am
posting to any and all channels were I can find someone with expertise
to help me.
In order to avoid a long e-mail with attached files I created a simple
web page with more information: http://crochik.com/webview/
Have you tried setting the viewport for QDeclarativeView to QGLWidget ?
QmlApplicationViewer viewer;
viewer.setViewport(new QGLWidget);
Seeing a backtrace would probably help finding a better workaround.
Cheers,
--
Senior Software Engineer
Maemo Software
Loading...