[solved] Black screen or frozen on android after resuming from sleep or switching apps

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Black screen or frozen on android after resuming from sleep or switching apps

#31 Post by PyTom »

Actually, cancelled my order, since I was able to reproduce the problem on my phone.

It was a complicated problem where three threads interacting could cause Ren'Py to deadlock. I've rewritten the interaction such that this isn't possible. This is fixed in https://github.com/renpy/renpy/commit/5 ... 7e390b8f85 , which should be in the December 1st Ren'Py nightly build.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Black screen or frozen on android after resuming from sleep or switching apps

#32 Post by Imperf3kt »

Nice work discovering that AND patching it so quickly!
Great work Tom.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
ComputerArt.Club
Veteran
Posts: 427
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: Black screen or frozen on android after resuming from sleep or switching apps

#33 Post by ComputerArt.Club »

PyTom wrote: Thu Nov 30, 2017 8:55 pm Okay, just ordered an LG G4 to see if I can repeat it on that. It should arrive Saturdayish.
Wow! Thanks PyTom. I wanted to try to build an earlier version of 'The Question' on an earlier version of Renpy but I ran into technical difficulties building my own version with 6.18

I downloaded the version on the play store and was not able to replicate ut however. I them ran the new version that I built and replicated it.
That makes at least two exceptions:
The Question (Google Play store version, old)
and
Moonlit Walks (Google Play store version - also old? perhaps you remember)

Perhaps it is an issue relating to what version it was compiled with or higher resolutions? I'm just guessing, I don't have a computer science background :/.
Thank you for Renpy and your continued efforts.

User avatar
ComputerArt.Club
Veteran
Posts: 427
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: Black screen or frozen on android after resuming from sleep or switching apps

#34 Post by ComputerArt.Club »

PyTom wrote: Fri Dec 01, 2017 12:06 am Actually, cancelled my order, since I was able to reproduce the problem on my phone.

It was a complicated problem where three threads interacting could cause Ren'Py to deadlock. I've rewritten the interaction such that this isn't possible. This is fixed in https://github.com/renpy/renpy/commit/5 ... 7e390b8f85 , which should be in the December 1st Ren'Py nightly build.
Wow!!!!!! Thanks PyTom!!!!!!!!

User avatar
ComputerArt.Club
Veteran
Posts: 427
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: Black screen or frozen on android after resuming from sleep or switching apps

#35 Post by ComputerArt.Club »

PyTom wrote: Fri Dec 01, 2017 12:06 am This is fixed in https://github.com/renpy/renpy/commit/5 ... 7e390b8f85 , which should be in the December 1st Ren'Py nightly build.
Can we use this nightly build to create bug free versions of our games, or should we wait for the next official release?

Thanks again!

User avatar
ComputerArt.Club
Veteran
Posts: 427
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: Black screen or frozen on android after resuming from sleep or switching apps

#36 Post by ComputerArt.Club »

Tested a recently released nightly build. It seems to be free from this bug.
Would it be wise or unwise for me to release my Android app with this nightly build?

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Black screen or frozen on android after resuming from sleep or switching apps

#37 Post by xavimat »

ComputerArt.Club wrote: Thu Dec 07, 2017 11:07 amWould it be wise or unwise for me to release my Android app with this nightly build?
I'm not an expert, but nightly is used mainly for testing, not for production. Even prereleases have a big red warning about not distributing games built with them. I would advise against using the nightly in this case.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

cookienomnom
Newbie
Posts: 15
Joined: Thu Jan 11, 2018 10:02 am
Contact:

Re: [solved] Black screen or frozen on android after resuming from sleep or switching apps

#38 Post by cookienomnom »

Does anyone know if this issue has been resolved in 6.99.14?

User avatar
ComputerArt.Club
Veteran
Posts: 427
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: [solved] Black screen or frozen on android after resuming from sleep or switching apps

#39 Post by ComputerArt.Club »

cookienomnom wrote: Thu Jan 11, 2018 10:06 am Does anyone know if this issue has been resolved in 6.99.14?
On the post for 6.14 PyTom said that the latest version incorporates this patch.
I am still using the nightly build however, so I haven't tried actually building an app with 6.14.

I just uploaded an app made with the nightly build though ^^: https://play.google.com/store/apps/deta ... .renpy.one

josergc
Newbie
Posts: 3
Joined: Wed Aug 29, 2018 3:43 pm
Organization: Lucentinian Works Co Ltd
Github: josergc
Skype: josergc
Location: Taiwan
Contact:

Re: [solved] Black screen or frozen on android after resuming from sleep or switching apps

#40 Post by josergc »

cookienomnom wrote: Thu Jan 11, 2018 10:06 am Does anyone know if this issue has been resolved in 6.99.14?
Hello!

I am running an small project with 6.99.14.3.3347 in the emulator of Android P x86.

The first time I launched a game I wrote with RenPy in the emulator, this problem happened, then I rebuilt the game and launched it again and now it works.

I can see when it is relaunched from the emulator that the main menu of the game appears, then it goes blank, and finally the emulator displays the main menu of the game. I don't know if this last one is expected.

Cheers!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot]