app gets stuck on resume

267 views
Skip to first unread message

avi izar moshe wagner

unread,
Mar 6, 2012, 6:17:06 AM3/6/12
to andro...@googlegroups.com
hi!

many of my users are experiencing the following problem:
the app starts ok and runs well, but if you leave the app and let it run in the background (i.e. you press the home button and open another app) and then return to the app, many time you get a black screen (besides the status bar that stays there). the app still receives events in the background, so if you click 'back' it will eventually close, but the screen stays blank until the app fully closes.

please help
thanks
izar

avi izar moshe wagner

unread,
Mar 6, 2012, 4:39:29 PM3/6/12
to andro...@googlegroups.com

I think what happens is:
When app goes to background android move the memory from ram to flash. Then on resume it needs to copy everything back, which causes the system to become unstable.

izar

Antonioas

unread,
Mar 7, 2012, 8:43:02 AM3/7/12
to android-qt
I'm sufering the same, even If you use Widget the problem continues.
My application has been proved in many machines and always is the
same.

This is happening from the begining of this project. This is the worst
problem for me, because you never know when black screen will appear
and when the information will be lost.

I have to tell that when black screen (not always is black, some time
I can see the app screen) appear, my app doesn't receive events. It's
freeze.

Thank you !



izar

unread,
Mar 14, 2012, 1:14:40 PM3/14/12
to andro...@googlegroups.com
Any one willing to help with this bug?
It is realy troublesome!
Thanx

massimo piccinetti

unread,
Apr 14, 2012, 7:59:10 AM4/14/12
to andro...@googlegroups.com
I have the same problem, but i think the problem is only with OpenGLES.
I have opened the ticket 166 many dasy ago, but it is sitll in the OPEN status.

I have use OpenGLES, resume does not work. If i don't use OpenGLES,
BUT i link the OpenGLES libraries, Necessitas still uses OpenGLES as
preferred painting method, and the resume does not work!

If i don't use OpenGLES, and don't link the OpenGLES libraries,
resume seems to work (with Aplha3 build4)

My only workaround is to kill the App when pausing.

Antonioas

unread,
Apr 15, 2012, 4:21:51 AM4/15/12
to android-qt

I have always used "kill", so I have to save many things in every
time. It's the only way I know to avoid this problem. I have high
hopes that it will be ok with the next version.

Thanks

tomasl

unread,
Apr 17, 2012, 8:13:38 AM4/17/12
to andro...@googlegroups.com
Our Widget-based app does not use OpenGLES, but still has this issue with freeze on resume. 

- freeze on resume after having used home-button and other apps
- freeze on resume after sleep

It is however not easily reproducable, as it does not happen every time - just every now an then (e.g. after a day or two in sleep mode). We've tried several Android versions (from 2.2 to 4.0) and hardware devices (HTC, Samsung, Sony Ericsson, Motorola etc.) with the same result. 

As Issue #22 was set closed, we hoped upgrading to Alpha3 build 4 would help us out here, but I'm afraid it doesn't. However, Ticket #138 seems to cover our issue. 

I'm not sure, but it might be that issue #22, #70, #138, #166 actually relate to the same problem, even though they address various variants of the resume problem. 

izar

unread,
Apr 18, 2012, 4:24:05 AM4/18/12
to andro...@googlegroups.com
we also don't use OpenGLES and still have the same problem.

BogDan Vatra

unread,
Apr 18, 2012, 4:41:18 AM4/18/12
to andro...@googlegroups.com
Hello,

I need some clarifications: by freeze you mean the application is
not responding at all or the windows is just black, but if you rotate
the phone is repainted ?
For the first case I pushed a fix [1] a few days ago, which fixes a
bug introduced in alpha3 update4 by this [2] commit.

Cheers,
BogDan.


[1] http://quickgit.kde.org/index.php?p=android-qt.git&a=commit&h=16795c9d24194a16575ccadb4bbe5f640599064f

[2] http://quickgit.kde.org/index.php?p=android-qt.git&a=commit&h=ca8814bae982171ba935258ccd91e0067b044d3b

Antonioas

unread,
Apr 19, 2012, 6:37:47 AM4/19/12
to android-qt
Sorry for the cuestion but, What can I do with those cpp? I have never
compiled Ministro.

will next update fixes it?

thank you


On 18 abr, 10:41, BogDan Vatra <taipanroma...@gmail.com> wrote:
> Hello,
>
>   I need some clarifications: by freeze you mean the application is
> not responding at all or the windows is just black, but if you rotate
> the phone is repainted ?
> For the first case I pushed a fix [1] a few days ago, which fixes a
> bug introduced in alpha3 update4 by this [2] commit.
>
> Cheers,
> BogDan.
>
> [1]http://quickgit.kde.org/index.php?p=android-qt.git&a=commit&h=16795c9...
>
> [2]http://quickgit.kde.org/index.php?p=android-qt.git&a=commit&h=ca8814b...
>
> În data de 18 aprilie 2012, 11:24, izar <iza...@gmail.com> a scris:
>
>
>
> > we also don't use OpenGLES and still have the same problem.
>
> > On Tuesday, April 17, 2012 3:13:38 PM UTC+3, tomasl wrote:
>
> >> Our Widget-based app does not use OpenGLES, but still has this issue with
> >> freeze on resume.
>
> >> - freeze on resume after having used home-button and other apps
> >> - freeze on resume after sleep
>
> >> It is however not easily reproducable, as it does not happen every time -
> >> just every now an then (e.g. after a day or two in sleep mode). We've tried
> >> several Android versions (from 2.2 to 4.0) and hardware devices (HTC,
> >> Samsung, Sony Ericsson, Motorola etc.) with the same result.
>
> >> As Issue #22 was set closed, we hoped upgrading to Alpha3 build 4 would
> >> help us out here, but I'm afraid it doesn't. However, Ticket #138 seems to
> >> cover our issue.
>
> >> I'm not sure, but it might be that issue #22, #70, #138, #166 actually
> >> relate to the same problem, even though they address various variants of the
> >> resume problem.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

tomasl

unread,
Apr 19, 2012, 7:25:15 AM4/19/12
to andro...@googlegroups.com
Hi BogDan,

That's good news :)
Is this patch now included if I set the Ministro Configuration tool 2 to "unstable" and clear Ministro data?

By freeze I mean that the application is not responding. Usually it's painted correctly, but it's just as an image (no buttons work etc.). It will not be rotated when flipping the phone. I've also experienced that everything is black after resume. 


Thanks, 

TomasL

.

Marco Bernasocchi

unread,
Apr 19, 2012, 12:07:24 PM4/19/12
to andro...@googlegroups.com, BogDan
Hi all,
i get the exactly the same situation, foremost after leaving the the
pprogram running alon for a while
ciao


--
Marco Bernasocchi
www.opengis.ch

orayta

unread,
Oct 3, 2012, 3:32:18 PM10/3/12
to andro...@googlegroups.com, BogDan
problem still exists on alpha 4.
if you need a workaround, ask me.

Sergey Chernik

unread,
Oct 16, 2012, 3:24:33 AM10/16/12
to andro...@googlegroups.com, BogDan


среда, 3 октября 2012 г., 22:32:18 UTC+3 пользователь orayta написал:
problem still exists on alpha 4.
if you need a workaround, ask me.

Help! How fix this problem with black screen onResume? (without finish activity) 

Josef Mariánek

unread,
Dec 6, 2014, 1:19:10 PM12/6/14
to andro...@googlegroups.com, bog_da...@yahoo.com
Hi,
we've ported out Qt app to android using necessitas and problem described here appears (application sometimes stops working - black screen appear and restart is needed). Users are confused. In fact, we cannot do distribution with this bug. If anyone has workaround please help us. We ca pay you for working solution.
Thans,
Josef

Dne středa, 3. října 2012 21:32:18 UTC+2 orayta napsal(a):

tomasl

unread,
Dec 7, 2014, 4:33:30 AM12/7/14
to andro...@googlegroups.com, bog_da...@yahoo.com
Hi Josef, 
If you're referring to the Qt5 port to Android, please vote and add details to the bugreport https://bugreports.qt-project.org/browse/QTBUG-39536. This is in my opinion the highest priority Qt on Android issue at the moment, even though I'm not sure if anyone is working on it. Hopefully I'm wrong though.

If you're using Neccessitas with Qt 4.8, I don't think that is developed any further. 

Tomas

Josef Mariánek

unread,
Dec 10, 2014, 11:09:11 AM12/10/14
to andro...@googlegroups.com, bog_da...@yahoo.com
Hi Tomas,

yes, we're using necessitas (Qt4/android) because there is webkit support.
So we try do some investigation in necessitas sources probably.
Or simply accept fact, that application sometimes could freeze.

Josef

Dne neděle, 7. prosince 2014 10:33:30 UTC+1 tomasl napsal(a):
Reply all
Reply to author
Forward
0 new messages