[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: 15152
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 » 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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

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

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

#32 Post by Imperf3kt » Fri Dec 01, 2017 12:11 am

Nice work discovering that AND patching it so quickly!
Great work Tom.
Image

Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

User avatar
ComputerArt.Club
Veteran
Posts: 231
Joined: Mon May 22, 2017 8:12 am
Completed: 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 » Fri Dec 01, 2017 10:55 am

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: 231
Joined: Mon May 22, 2017 8:12 am
Completed: 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 » Fri Dec 01, 2017 10:56 am

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: 231
Joined: Mon May 22, 2017 8:12 am
Completed: 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 » Sat Dec 02, 2017 5:55 am

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: 231
Joined: Mon May 22, 2017 8:12 am
Completed: 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 » Thu Dec 07, 2017 11:07 am

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: 1264
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

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

#37 Post by xavimat » Thu Dec 07, 2017 2:22 pm

ComputerArt.Club wrote:
Thu Dec 07, 2017 11:07 am
Would 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.
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
unknown [Sci-Fi - mystery - computer]
Honest Critique (Avatar made with Chibi Maker by ~gen8)

cookienomnom
Newbie
Posts: 8
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 » Thu Jan 11, 2018 10:06 am

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

User avatar
ComputerArt.Club
Veteran
Posts: 231
Joined: Mon May 22, 2017 8:12 am
Completed: 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 » Fri Jan 12, 2018 11:10 am

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

Post Reply

Who is online

Users browsing this forum: Per K Grok, philat