Black screen on resume

841 views
Skip to first unread message

Christophe M

unread,
Nov 7, 2013, 2:21:32 PM11/7/13
to andro...@googlegroups.com
Hi !
Sometimes (well, often) I get a black screen on resuming the app (app is still alive, sending heartbeat to server)
I'm running on a nexus 4

Here a the logcat, any idea ?
(I've tried the singleInstance trick but no luck)

I/ActivityManager(  603): START u0 {flg=0x24000000 cmp=org.REMOVEDt/org.qtproject.qt5.android.bindings.QtActivity bnds=[0,102][768,230]} from pid -1
W/ActivityManager(  603): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { flg=0x24000000 cmp=org.REMOVEDt/org.qtproject.qt5.android.bindings.QtActivity bnds=[0,102][768,230] }
W/Qt      ( 6613): ../src/androidjnimain.cpp:650 (void updateWindow(JNIEnv*, jobject)): updateWindow: Dirty screen not implemented yet on OpenGL
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 300d, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 300d, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:165 (virtual void QEGLPlatformContext::swapBuffers(QPlatformSurface*)): QEGLPlatformContext::swapBuffers(): eglError: 12301, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 300d, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 300d, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:165 (virtual void QEGLPlatformContext::swapBuffers(QPlatformSurface*)): QEGLPlatformContext::swapBuffers(): eglError: 12301, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 300d, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 300d, this: 0x736af368 
W/Qt      ( 6613): 
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:165 (virtual void QEGLPlatformContext::swapBuffers(QPlatformSurface*)): QEGLPlatformContext::swapBuffers(): eglError: 12301, this: 0x736af368 
W/Qt      ( 6613): 
I/WindowManager(  603): Screenshot Window{41ffdd88 u0 org.REMOVED/org.qtproject.qt5.android.bindings.QtActivity} was all black! mSurfaceLayer=21050 minLayer=21035 maxLayer=21050

(... other launch ...)

W/Adreno200-EGL( 6613): <qeglDrvAPI_eglMakeCurrent:2762>: EGL_BAD_SURFACE
E/libEGL  ( 6613): eglMakeCurrent:671 error 300d (EGL_BAD_SURFACE)
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 300d, this: 0x736af368 
W/Qt      ( 6613): 
E/libEGL  ( 6613): eglSwapBuffers:949 error 300d (EGL_BAD_SURFACE)
W/Qt      ( 6613): eglconvenience/qeglplatformcontext.cpp:165 (virtual void QEGLPlatformContext::swapBuffers(QPlatformSurface*)): QEGLPlatformContext::swapBuffers(): eglError: 12301, this: 0x736af368 


BogDan Vatra

unread,
Nov 11, 2013, 12:25:13 PM11/11/13
to android-qt
Hi,

Qt4 or Qt5 ?

BogDan.

2013/11/7 Christophe M <meume...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "android-qt" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-qt+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Christophe M

unread,
Nov 11, 2013, 12:50:45 PM11/11/13
to andro...@googlegroups.com

Qml - Qt 5.1
I'm testing with Qt 5.2 and it seems ok, I'll give you more feedback after more testing...

My app is forced landscape, with 5.2 when unlocking device and the app is in the foreground, I have a small square with a part of the app and the rest of the screen is white (see screnshoot).

Thanks ;)
Christophe

Screenshot_2013-11-10-19-40-38.png

George Calugar

unread,
Nov 11, 2013, 1:50:12 PM11/11/13
to andro...@googlegroups.com
Hi,

For me this is happening using Qt4.8 with QML

Best regards,
George Calugar

From: BogDan Vatra
Sent: ‎11.‎11.‎2013 19:25
To: android-qt
Subject: Re: Black screen on resume

piggz

unread,
Dec 7, 2013, 9:22:37 AM12/7/13
to andro...@googlegroups.com
Im also getting a black screen when i force landscape.

using qt 5.2rc1

log states:

W/Qt (30079): ../src/androidjnimain.cpp:687 (void updateWindow(JNIEnv*, jobject)): updateWindow: Dirty screen not implemented yet on OpenGL


This happens on opening the app.  However, if i go to the home, and resume the app, it all appears.

piggz

unread,
Dec 7, 2013, 9:31:58 AM12/7/13
to andro...@googlegroups.com
Adding
android:hardwareAccelerated="true"
seems to have helped

On Monday, 11 November 2013 18:50:12 UTC, CMGeorge wrote:
Reply all
Reply to author
Forward
0 new messages