Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Game hangs after minute of playing

I made game for android. After about minute of playing game hang and I can't do anything. I had the same problem with my previous game. How I can resolve this problem? I tested my previous game created on 4.5.1 on Sony Xperia SP and my current game on 4.9 on Sony Xperia Z1 Compact and Sony Xperia SP and results are the same.

Product Version: UE 4.9
more ▼

asked Sep 12 '15 at 06:58 PM in Packaging & Deployment

avatar image

27 9 10 12

avatar image tgraupmann Sep 12 '15 at 07:00 PM

And by frozen do you mean that input no longer works? Or is the game totally frozen? Did you run out of memory with a leak? Is there anything in the logcat?

adb logcat

avatar image Maciej3210 Sep 12 '15 at 07:09 PM

Game is totally frozen. I copy game files to my phone, install it and it works one minute.

avatar image tgraupmann Sep 12 '15 at 07:15 PM

I would look at the logcat. You could also use the NVidia profiler to see if tweaking settings can prevent the lockup. I.e. like changing all the textures to 1x1.


PerfHUD ES is a profiler that lets you inspect individual draw calls to find bottlenecks and performance leaks. Get started fast with the quick-start guide.




avatar image Maciej3210 Sep 12 '15 at 07:24 PM


Only last 6 lines is game logs when game freeze.

avatar image Shadowriver Sep 12 '15 at 07:19 PM

This sounds like garbage collection problem, does it happens exacly in 1 minute all the time? Do you used C++? If yes then you missing UPROPERTY() in one of objects varables, engine don't see active refrence without it and considers object as unused

avatar image Maciej3210 Sep 12 '15 at 07:39 PM

I made my games with blueprints. Always 59 seconds.

avatar image erinacea Sep 12 '15 at 10:11 PM

That does sound like a garbage collection issue. Odd to have that happen so early. Are you destroying any actors during initialization?

avatar image Maciej3210 Sep 13 '15 at 03:55 PM

I am shooting static meshes like in FPS template.

avatar image tgraupmann Sep 13 '15 at 04:44 PM

If it was a crash to desktop I could blame ANR. Activity Not Responding happens after not responding to input for more than 5 seconds. This can happen if you have a loading content routine or a blocking method that does not return in less than 5 seconds.

 while (true) //for more than 5 seconds
 // boom
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I updated my phone Sony Xperia Z1 Compact from Android KitKat 4.4.4 to Android Lollipop 5.0.2 and game doesn't freeze. Only on Androids below 5.0.2 game freezes.

more ▼

answered Sep 14 '15 at 05:14 PM

avatar image

27 9 10 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question