Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Game rendering freezes randomly at runtime

Discussion in 'Windows' started by ex_mi, Jan 25, 2016.

  1. matt33315

    matt33315

    Joined:
    Mar 28, 2014
    Posts:
    94
    I have done yet further investigation into this and I can get the game to crash more consistently if I set paramters on an Animator within code. In my case I am setting a bool to be true and false. Has anyone else found this?

    Can anyone from unity update us on the current situation of this problem? Is is still be investigated?
     
  2. matt33315

    matt33315

    Joined:
    Mar 28, 2014
    Posts:
    94
    Got some positive news today, the test team were able to reproduce the bug with the project I submitted in the bug report. It is getting passed onto the development team now. Fingers crossed a fix can be found!
     
    ArachnidAnimal likes this.
  3. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,766
    Do you know what the bugreport # is?
    It would be good to follow this.
     
  4. matt33315

    matt33315

    Joined:
    Mar 28, 2014
    Posts:
    94
    Sure, its 768068
     
  5. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,766
    Unfortunately that is not the full bug #.
    The ticket is of the form 123_a1b2c3d4 or 123_a1b2c3d4e5f6g7h8.

    Example: Here is the bug I filled a while ago:
    <SNIP>

    Thanks!
     
    Last edited by a moderator: Jun 8, 2016
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
  7. lordnedox

    lordnedox

    Joined:
    Jan 7, 2016
    Posts:
    24
    I still have this problem with the latest Unity 5.4 .0f3 .

    Issue 768068 is now marked duplicate, but there's no information about the related issue:
    https://issuetracker.unity3d.com/issues/wp10-game-freezes-without-any-output-in-debug-mode

    The problem happens at random, but always on the same screens:
    - Sometimes when click a button on the main menu: in this case I'm using scene fader, I can see it start fading but never gets into the "Update" method, hence freezing the game. Removing Scene Fader (using LoadScene directly) seems fixing the problem.
    - Sometimes it happens in the game scene, just at random point in the first 10 seconds of the game.

    In any case it never gets past the first 10 seconds in game.

    The issue happens also when the debugger is attached, but there's no log whatsoever, no crash dump, no info to work on.

    Anyone found a solution?
     
  8. Ignas83

    Ignas83

    Unity Technologies

    Joined:
    Mar 26, 2013
    Posts:
    28
    We think we have identified the issue and it's a deadlock that happens on single and dual core CPUs only. It's not Windows Phone specific. It would also be useful to know if anyone saw the issue on a CPU with more cores? Workaround is to not use Unity's UI functionality. Now that's not really a workaround so you'll have to stay tuned until we fix it. I'm hearing end of August from our engineers.
     
  9. lordnedox

    lordnedox

    Joined:
    Jan 7, 2016
    Posts:
    24
    You mean every single/dual core device had this issue, even with older versions of Unity? And there won't be a workaround for a whole month (or even longer)? Seems strange to me that nobody noticed this before.

    Or has this issue been introduced later?

    Any info would be appreciated, getting 400-500 hangs/crashes a day here, and consequentially reviews are not very happy...
     
  10. lordnedox

    lordnedox

    Joined:
    Jan 7, 2016
    Posts:
    24
    Is there a ticket we can follow?
     
  11. matt33315

    matt33315

    Joined:
    Mar 28, 2014
    Posts:
    94
    I have just checked all of the devices I have tested my game on and I can confirm the ones where the game crashes only have dual core processors. All the rest are quad core where the game runs fine. Its a shame there is not a hardware requirement option for processor when submitting to the store. Seemingly there is only Direct X levels and the amount of ram. Still, really looking forward to a fix for this. Its been plauging me for almost a year now. Recent reviews have also not been very kind :(
     
  12. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    I confirm I have this bug also, my game crash randomly on my Lumia 920 (WP8.1).
    I'm using Unity 5.3.6p2
     
  13. makaqo

    makaqo

    Joined:
    Sep 16, 2015
    Posts:
    22
    I have this bug also, crash on my lumia 435, lumia 535 and UWP in PC VMWARE with two core
     
  14. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    @Tautvydas-Zilys Please there is any update about this issue? my game is receiving bad reviews because of crashes caused by this bug :(
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    A developer that knows the code area in question has been assigned to fixing this issue, but unfortunately I don't have any more information than that. The fix is coming, but I cannot tell you when as I do not know.
     
  16. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Thank your for the update, but please can you ask your Unity Team to prioritize the fix for this bug? My game is receiving many negative reviews because of crashes caused by this bug :(
    (users reported that the bug is also present in Lumia 730 W10 Mobile)
     
  17. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    450
    Same issue here, although I can't really connect the occurence to any UI-related operations. Dump-File is avaiable, so if I can help with that or any other data / tests, just let me know.
     
  18. makaqo

    makaqo

    Joined:
    Sep 16, 2015
    Posts:
    22
    My solution is downgrade project to UNITY 5.2.5, work fine!
     
  19. PrettyFlyGames

    PrettyFlyGames

    Joined:
    Aug 30, 2012
    Posts:
    74
    Hi!

    After upgrading to Unity 5.4 I started to have these problems to combined with random crashes.

    I've spent loads of hours trying to debug it but its something within Unity causing it.

    However I did find a workaround and that is to downgrade to the previous version I was using: unity 5.3.5f1 with this build I don't have any crashes and the freezes seems gone too.
     
  20. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    That seems to be unrelated to the issue other people are having in this thread. Can we have a bug report on your issues?
     
  21. PrettyFlyGames

    PrettyFlyGames

    Joined:
    Aug 30, 2012
    Posts:
    74
    Hi @Tautvydas-Zilys

    Its related the the above as this topic is about Unity Freezing on Windows Phone, or am I wrong?`

    Well with the latest version of Unity 5.4 I also had the freezing problem. I'll try to get a repro project for the crash issue.
     
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    I thought you were having crashes (and not freezes)? Also, the problem this thread is about is also present in 5.3, so if that fixed it, it's probably a different issue.

    Either way, we'll need a bug report from you.
     
  23. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    In my case, in addition of the freezes, my game crash randomly without any error message, just this strange message "Odd tag in Cleanup"
     
  24. PrettyFlyGames

    PrettyFlyGames

    Joined:
    Aug 30, 2012
    Posts:
    74
    Bug report has been sent with project that can reproduce it. Its my game but its a tiny game so you should be able to reproduce it fast. Its case 823081.

    After googling a lot about this issue it seems like this is caused by the UI Canvas in Unity. My project is not using Canvases but I did find in the IAP purchasing module that there is a UIFakeStoreCanvas.prefab. After removing this the freezing issue seems gone.
     
  25. PrettyFlyGames

    PrettyFlyGames

    Joined:
    Aug 30, 2012
    Posts:
    74
    Correction it still freezes. Just had a case where it happened on a test device.
     
  26. PrettyFlyGames

    PrettyFlyGames

    Joined:
    Aug 30, 2012
    Posts:
    74
    I've found that a Dump file is generated when the device freezes. I've added a link in the case where you can download it.

    Here is a part of it after running WinDbg


    *** WARNING: Unable to verify checksum for UnityPlayer.dll
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for UnityPlayer.dll -
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for CoreMessaging.dll -
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for ShellRuntime.dll -
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for xamlpalwp.dll -
    *** WARNING: Unable to verify checksum for System.Net.Http.Phone.ni.DLL
    *** ERROR: Module load completed but symbols could not be loaded for System.Net.Http.Phone.ni.DLL
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for Orientation.dll -
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for WpSensorsV1.dll -

    Probably caused by : twinapi.appcore.dll ( twinapi_appcore!Event::WaitWithFreeUnusedLibraries+7e )


    STACK_TEXT:
    00c4ec40 77826308 : 00000000 00000000 00c4ede8 00000000 : ntdll!NtWaitForMultipleObjects+0x6
    00c4ec40 758542c2 : 00000000 00000000 00c4ede8 00000000 : kernelbase!WaitForMultipleObjectsEx+0x108
    00c4edc8 75854abe : 00000000 00000000 00007530 00000000 : twinapi_appcore!PsmBlockAppStateChangeCompletion+0x5ee
    00c4ef10 75853466 : 00000000 00000008 00000000 00000000 : twinapi_appcore!PsmBlockAppStateChangeCompletion+0xdea
    00c4f068 6a31c60c : 00000000 75853455 00c4f0b0 6a31c60d : twinapi_appcore!RegisterAppStateChangeNotification+0x436
    00c4f078 6a31aa0c : 00db9df4 00dad444 fffffffe fffffffe : Windows_UI_Xaml!DllGetActivationFactory+0x12c878
    00c4f0b8 6a31a99c : 00000000 6a31a991 00000000 00d88be0 : Windows_UI_Xaml!DllGetActivationFactory+0x12ac78
    00c4f0d8 6da50004 : 6a31a991 00000000 00c4f140 6da50005 : Windows_UI_Xaml!DllGetActivationFactory+0x12ac08
    00c4f0e8 729a9d78 : fc087a6d 6fa82454 00c4f2a4 00000000 : WINDOWS_NI+0x4c0004
    00c4f148 6f701432 : 729a6329 00c4f1f0 00c4f248 6f701433 : Multiroids_ni+0x9d78
    00c4f158 6f7cf814 : 00c4f290 00c4f2d8 00c4f1e0 6f7cf815 : CoreClr+0x1432
    00c4f168 6f8750e8 : 6f72b7a1 00c4f200 00c4f1e8 6f74d615 : CoreClr+0xcf814
    00c4f250 6f874f10 : 010369fc 00000000 00000000 00000000 : CoreClr!Ordinal3+0x17738
    00c4f370 6f874dda : 00c4f410 7798cc55 00d60000 0014000a : CoreClr!Ordinal3+0x17560
    00c4f5d0 729d72e0 : 00000000 010369fc 00c4f5f8 00000000 : CoreClr!Ordinal3+0x1742a
    00c4f688 729d5d14 : 00dac844 00c4f694 00000002 00c4f7f0 : MSCOREE!DllGetActivationFactory+0x1510
    00c4f6c8 729d5b36 : 00000000 00000000 00000000 00000000 : MSCOREE!CorExeMain+0x1e8
    00c4fa18 779b6426 : 00c4fa30 779b6427 00000000 779b6411 : MSCOREE!CorExeMain+0xa
    00c4fa20 00000000 : 00000000 779b6411 00000000 00000000 : ntdll!RtlUserThreadStart+0x16


    FOLLOWUP_IP:
    twinapi_appcore!PsmBlockAppStateChangeCompletion+5ee
    758542c2 4605 mov r5,r0

    SYMBOL_STACK_INDEX: 2

    SYMBOL_NAME: twinapi_appcore!PsmBlockAppStateChangeCompletion+5ee

    FOLLOWUP_NAME: MachineOwner

    MODULE_NAME: twinapi_appcore

    IMAGE_NAME: twinapi.appcore.dll
     
  27. MaxPirat

    MaxPirat

    Joined:
    Sep 7, 2015
    Posts:
    12
    Same problem here. I upgraded my project from 5.3 to 5.4 and on lumia 920 game started to crash at random.

    Downgrade to 5.3.5 fix my crashes, but I really want to use 5.4 as I see improvement in my project on that version.
     
    Last edited: Aug 17, 2016
  28. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    It has been almost a half of year since this bug was reported and there is no fix until now! Please to ask your team to prioritize the resolution of this bug or at least give us a workaround until it will be fixed? My game is receiving a lot of negative users reviews only because of this bug!
    This is one of lot of reviews with 1 star of my users: "It's been months that you couldn't find a cure to the freezes ".
     
    Last edited: Aug 22, 2016
  29. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    @Tautvydas-Zilys Any update about this issue? we're waiting for a fix for months now!
     
    MrEsquire likes this.
  30. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    It's being actively looked at as we speak. Quote from dev that's on it:

     
    MaxPirat and Wadjey like this.
  31. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Another update. The fix is with QA to verify it fixes the reported problem on the real device. The internal code review process has started. It is a change to the low-level job system which means the review will take time (perhaps as much as 2 weeks). Now working on automated tests to define this behaviour to prevent it from happening again in the future.
     
    MaxPirat and Wadjey like this.
  32. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Thanks for the good updates :)
     
  33. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Bad news - QA reported a hang still occurring (do not know if it is the same hang or a different hang). Good news have reproduced a (job system) hang running the reproduction project on OSX and have confirmed the fix works for the job system hang, which means the code change can continue through the review & release cycle. Next steps are to pair up with QA and debug the (potentially new/different) hang directly on their machine(s).
     
    MaxPirat and Wadjey like this.
  34. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Thanks for the update Jake, even a bad news is a good news while you're working to resolve this issue.
    Just one question, you're working on fix for only the hangs issue or both the hangs issue and the crash issue (with the "Odd tag in Cleanup" message)?
     
  35. arksh

    arksh

    Joined:
    Sep 6, 2016
    Posts:
    2
    is freezing occur in mobile emulator too?
    my project is freezing, too.. when i was test using VS mobile emulator without error Log.
    Unity Ver : 5.4.0p4
     
  36. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    I am working on the hangs issue (https://fogbugz.unity3d.com/f/cases/791434)

    Please let me know different issues e.g. fog bugz numbers

    Bit more update. Just debugged it on actual device, bug isn't fixed and hanging in a different place. Going to need some more days to decipher it all and work out a fix. Hopefully getting closer. On the plus side the code review process has gone very smoothly.
     
  37. DominoOne

    DominoOne

    Joined:
    Apr 22, 2010
    Posts:
    433
    +1 on the number of teams, who are waiting for the fix. Just to oppose to some posts: Unity 5.3.5 freezes, as well, so the most recent Unity version that doesn't is 5.2.3.
     
    Last edited: Sep 8, 2016
  38. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Thanks for the update, but I hope you'll also take a look at the crash issue (with the "Odd tag in Cleanup" message), reported here, here, here, here, here, here, here, here and here. It's a very annoying bug and my app receiving a lot of negative review because of these random crashes.
    The crash is completely random, there is no exception, no error message, nothing, the app just close (and I've just succeed to catch this "Odd tag in Cleanup" message when my game crashed).
     
  39. PrettyFlyGames

    PrettyFlyGames

    Joined:
    Aug 30, 2012
    Posts:
    74
    Hi Jake

    I'm happy that you have reproduced the issue. I noticed yesterday when the freezing occured that the appliction is still running since I saw that the ads on the screen were refreshing. So it seems like its only Unity that gets stuck in an endless loop. Not sure if that helps or not.

    Hope you get the patch out soon.

    I've upgraded to 5.4.0p4 and I no longer get the "Odd tag in Cleanup" but I've only tested it for about 2 hours so far. Maybe worth trying that @Wajdik?
     
  40. VladimirTa

    VladimirTa

    Joined:
    Jul 17, 2013
    Posts:
    40
    Hi.
    I have the same problem.

    My game hangs when I simultaneously rotate, enable, disable various (2-4) world space canvas with images.
    I tried to recreate this in another project to send a bug report, but was not able to.

    If you still need bug report for that, I can send my main project.

    This happens with both unity 5.4.1p1 (64-bit) and Unity 5.5.0b3 (64-bit) on Windows Phone 8.1, Nokia Lumia 822.

    I would also like to know how is the bug fixing going?

    Thanks.
     
    Wadjey likes this.
  41. skaarjslayer

    skaarjslayer

    Joined:
    Oct 10, 2013
    Posts:
    108
    Can confirm that this issue occurs in 5.4.1p1 on a Nokia Lumia 920 and 620 running Windows Phone 8.1. I don't think we ever saw this issue on Windows 10 mobile (we tested on Nokia Lumia 925) but I'll double check to make sure.

    Seems people are getting ads refreshing despite Unity hanging. That's interesting, because we also noticed that our game music continues to play normally when this hang occurs.
     
  42. DominoOne

    DominoOne

    Joined:
    Apr 22, 2010
    Posts:
    433
    It definitely happens on Windows 10 Mobile, but only on devices that have less CPU cores (like the Unity people have already stated). We've tested on Lumia 520, and it freezes quite often, but on Lumia 930 it doesn't (at least in random situations; although, we're also having one constant reproducible freeze on Lumia 930, which doesn't happen when built from Unity 5.2.3).
     
    MrEsquire likes this.
  43. Mgaia-Studio

    Mgaia-Studio

    Joined:
    Jul 22, 2014
    Posts:
    11
    Joining the thread to share my experience too. I'm having freezes/hangs when deploying the game on a Lumia 930, using Unity 5.3.5f1 64-bit. My Windows Phone was using the Developer Preview Windows 10 and I factory reset it thinking that might be the problem, but it's back to Windows 8.1 now and it's still happening.

    I'm using the FMOD plugin on my game and, when deploying the game, after playing for about 5 minutes, the game would start to randomly hang for about 5 to 10s, on an interval of 10 to 20s. During the duration of the hang, the sounds that were playing at that moment would be playing in loop forever, and then get back to normal when the hang ended. No error or exception or any kind of log happens. Also interesting is that on both Unity's profiler and FMOD Studio's profiler, it looks like as if the game isn't even running during the hang: it stops the log completely - it even disconnects the profiler on FMOD Studio - and then it gets back to logging on Unity and re-connects the profiler on FMOD when the hang ends.

    This made me think the problem was on FMOD so I removed all sound and music calls from the game, but weirdly that turned the hang error into a freeze error. The rest is still just like before: you play the game for some time and then, all of a sudden, it freezes with no errors happening.

    My game uses a Canvas for on-screen virtual buttons to control the character, too, which is something that may be related to the problem as some people already said.
     
  44. DominoOne

    DominoOne

    Joined:
    Apr 22, 2010
    Posts:
    433
    Again, to add to the provided information. We are not using Unity UI at all, and the freezes still happen in our game. So, it's definitely not UI related :)
     
  45. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    What is the latest on the issue?
     
  46. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    More updates. I am now debugging the problem on a real device however so far haven't recreated the problem. I have a different phone (which reproduces the problem much easier) en route to me, should be with me today/tomorrow.
     
    VladimirTa likes this.
  47. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    The phone just arrived, probably take most of today to get it updated to 8.1 etc and charge it. Tomorrow the debugging can begin.
     
    VladimirTa likes this.
  48. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Cool man, thanks for the updates and good luck..
     
  49. VladimirTa

    VladimirTa

    Joined:
    Jul 17, 2013
    Posts:
    40
    Thanks for the info and good luck!

    Please keep us updated.
     
  50. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Good news - I can reproduce the hang and I can/am debugging it.

    Bad news - it is not what I expected at all. This is going to take some time to pick apart to work out how it ended up in the situation which shouldn't happen/should just work. This doesn't look to be a quick thing to fix. Aim for end of week to have some kind of local fix. But the code review process will have to start from scratch as it is different to what I expected.
     
    VladimirTa and Wadjey like this.