#206 Qml/OpenGL crash on exit

alpha 4
open
nobody
2012-06-11
2012-06-11
hamnu
No

Hi,

When loading larger images (e.g. 2000x1000 pixels; can be smaller or larger depending on device) into a Qml Image item then the app crashes on exit:


D/Qt ( 2429): void QEGLPlatformContext::doneCurrent()
D/Qt ( 2429): MainMethod finished, it's time to cleanup
I/Qt JAVA ( 2429): surfaceDestroyed
I/Qt JAVA ( 2429): onDestroy
F/libc ( 2429): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1)


(and some heap/stack messages pointing to QOpengl lib).

When loading smaller images everything work fine. Loading multiple small images works. Loading multiple large images works as well but then the app crashes on exit (on Nexus S it hang one second on exit; on a Galaxy S2 it can take more than 10 seconds until the app finally termiantes).

The same problem occurs with alpha 3 as well.

Discussion

  • hamnu

    hamnu - 2012-06-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     Hi,
    
     When loading larger images (e.g. 2000x1000 pixels; can be smaller or larger depending on device) into a Qml Image item then the app crashes on exit:
    +
     ---
     D/Qt      ( 2429): void QEGLPlatformContext::doneCurrent() 
     D/Qt      ( 2429): MainMethod finished, it's time to cleanup 
    @@ -8,6 +9,7 @@
     I/Qt JAVA ( 2429): onDestroy
     F/libc    ( 2429): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1)
     ---
    +
     (and some heap/stack messages pointing to QOpengl lib).
    
     When loading smaller images everything work fine. Loading multiple small images works. Loading multiple large images works as well but then the app crashes on exit (on Nexus S it hang one second on exit; on a Galaxy S2 it can take more than 10 seconds until the app finally termiantes).
    
     
  • hamnu

    hamnu - 2012-06-11

    After more testing: the problem also occurs during runtime. E.g. when loading many pictures the app hands with the error stated in the first post.

    When setting the viewport of the Qml viewer to QGLWidget then the problem disappears (but the rendering is corrupted):


    qmlView.setViewport(new QGLWidget());


     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks