Search Unity

Game rendering freezes randomly at runtime

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

  1. mr_zog

    mr_zog

    Joined:
    Jan 21, 2014
    Posts:
    165
    Great news indeed, thanks for the update!
     
  2. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    And now it is announced - it is also in the 5.5 patch branch - all being well should be in 5.5.0p1
     
    axcs and VladimirTa like this.
  3. axcs

    axcs

    Joined:
    Jan 6, 2015
    Posts:
    17
    OMG I try new Unity 5.5.0f3 and the bug of freezing on Dual Core cpu persists and continues.
    So strange to be releasing a new version of unity and still continue to exist this bug. My god unity, what are you doing?
     
  4. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Did you not read the thread!, if you did then you know...stop making drama
    The fix be in patch 1 of 5.5
     
  5. axcs

    axcs

    Joined:
    Jan 6, 2015
    Posts:
    17
    Ok, Where is the patch? Can you provide me the link, please?
     
  6. AlfredL

    AlfredL

    Joined:
    Sep 10, 2013
    Posts:
    27
  7. axcs

    axcs

    Joined:
    Jan 6, 2015
    Posts:
    17
    Thanks, I had already checked this link , but I did not find the patch it there so I asked, And so I was confused
     
  8. AlfredL

    AlfredL

    Joined:
    Sep 10, 2013
    Posts:
    27
    Hi, @JakeTurner
    Do you know whether whether Facebook Gameroom is impacted by this issue or not since it's also Windows based? If yes, will Unity release a new beta build with the fix for Facebook Gameroom?
     
  9. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Yes the fix is NOT in 5.5.0f3. I missed the deadline by about 2 weeks (sorry about that). The fix is currently heading to 5.5.0p1 which should be released soon.
     
  10. yianchen

    yianchen

    Joined:
    Nov 3, 2015
    Posts:
    3
    Hi Jack
    I have same freezing problem in 5.4.0f3 when I build on platform of linux x64 (Ubuntu 15.04). I wonder if it'll be fixed in the latest version.
     
  11. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Here is the information from the Facebook team at Unity

    Facebook Gameroom is Windows standalone with some packaging. So if the bug affects windows standalone, it would also affect Gameroom.

    The Facebook build target can publish to both Facebook.com (using WebGL which should not have the problem) and Facebook Gameroom (using Windows standalone)


    Hope this helps

    Jake
     
    Last edited: Dec 5, 2016
  12. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    I would not expect to happen on linux x64. Do you have a callstack showing all threads when it hangs?
     
  13. yianchen

    yianchen

    Joined:
    Nov 3, 2015
    Posts:
    3
    I have limited experience on linux thus I can't get the callstack logs since the app is "freezed" instead of "crashed". Is there any tool we can use to produce some useful informations for you?
     
  14. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Can you attach using gdb and save a coredump. Sorry to say I am also not that linux experienced for this type of problem. I am used to having an elf that I can run via gdb and then break and see what the threads are doing
     
  15. axcs

    axcs

    Joined:
    Jan 6, 2015
    Posts:
    17

    Jake, please do not apologize and do not get me wrong. You have been amazing,
    I just do not understand why new versions of Unity continue with the bug, being dragged along for so long, and with each new version the same bug happens.

    I find it strange how Unity works. You have been amazing and you work hard. But I think that if Unity were more organized, at this moment there was no more talk about this bug. And all new versions were released without this bug.
     
  16. lordnedox

    lordnedox

    Joined:
    Jan 7, 2016
    Posts:
    24
    5.5.0p1 is out now, but nothing in the release notes about this issue. The fix is included in this patch release?

    EDIT: Just saw it under "Core"
    Core: Fixed hangs in the job system when running on certain platforms with a low number of cores e.g. older Windows Phones, UWP dual core machines.

    Will download right away!

    Thanks
     
  17. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    The fix isn't available for Unity 5.4.3p3 ?!
     
  18. valiantjohn123

    valiantjohn123

    Joined:
    May 2, 2016
    Posts:
    4
    Thank you Jake Turner, I am downloading 5.5.0p1 now. I have been waiting to solve this issue for a long time. I will test it now :)
     
  19. skaarjslayer

    skaarjslayer

    Joined:
    Oct 10, 2013
    Posts:
    108
    It's there for both 5.4.3p3 and 5.5.0p1:

    • (791434) - Core: Fixed hangs in the job system when running on certain platforms with a low number of cores e.g. older Windows Phones, UWP dual core machines.
     
    Wadjey likes this.
  20. axcs

    axcs

    Joined:
    Jan 6, 2015
    Posts:
    17
    I confirm it is resolved in the 5.5.0p1 patch.
    It was good that from now on all future versions already use this fix
     
  21. yianchen

    yianchen

    Joined:
    Nov 3, 2015
    Posts:
    3
    Jack, after using gdb and get parts of coredump is as follows,
    I hope it's can help you figure out the problem.

    (gdb) bt

    #0 0x00007f68c964e0c9 in futex_abstimed_wait (cancel=true,

    private=<optimized out>, abstime=0x0, expected=0, futex=0x36a3590)

    at sem_waitcommon.c:42

    #1 do_futex_wait (sem=sem@entry=0x36a3590, abstime=0x0)

    at sem_waitcommon.c:208

    #2 0x00007f68c964e164 in __new_sem_wait_slow (sem=0x36a3590, abstime=0x0)

    at sem_waitcommon.c:277

    #3 0x00007f68c964e20a in __new_sem_wait (sem=<optimized out>) at sem_wait.c:28

    #4 0x0000000000f014fc in ?? ()

    #5 0x00000000009d4fcb in ?? ()

    #6 0x00000000007c4003 in ?? ()

    #7 0x00000000004661bb in ?? ()

    #8 0x00007f68c7f16a40 in __libc_start_main (main=0x4651a0, argc=1,

    argv=0x7fff1c988098, init=<optimized out>, fini=<optimized out>,

    rtld_fini=<optimized out>, stack_end=0x7fff1c988088) at libc-start.c:289

    #9 0x000000000046f695 in ?? ()

    #10 0x00007fff1c988088 in ?? ()

    #11 0x000000000000001c in ?? ()

    #12 0x0000000000000001 in ?? ()

    #13 0x00007fff1c9887f6 in ?? ()

    #14 0x0000000000000000 in ?? ()

    (gdb) list

    295 in sem_waitcommon.c
     
  22. mr_zog

    mr_zog

    Joined:
    Jan 21, 2014
    Posts:
    165
    Little update: a (not saying "the") infinite loop error still occurs every now an then. No crash dump, no repro-case yet. It is rare, but not so rare, that you can ignore it.
     
  23. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    Sorry I can't really understand that. Might be better going to the linux forum/group to get more help to get a better/clearer callstack.
     
  24. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    The fix is now live in 5.3.7p3. The fix is now live in 5.3/5.4/5.5 patch versions.
     
    Mgaia-Studio likes this.
  25. MSUnityPro2

    MSUnityPro2

    Joined:
    Aug 25, 2015
    Posts:
    1
    @JakeTurner I had the same hang issue in windows platform recently. I was using Unity 5.4.1f1. I updated my unity to 5.4.5f1 but the issue still exist. The game hangs randomly on Nokia Lumia 925 and the sad thing is that the app is live and i have hundred of users affected by this. Can you please help me out ?
     
    Wadjey likes this.
  26. Waqas-Anwar

    Waqas-Anwar

    Joined:
    Feb 2, 2015
    Posts:
    26
    I am facing the same issue. Should I use the patch version ?
    Logically this issue should be fixed in 5.4.5f1.
    @Tautvydas-Zilys , @JakeTurner Any help regarding this issue ?
     
    Wadjey likes this.
  27. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Are you sure this is the same issue? Do you have a crash dump of the hang? Does it only happen on dual core machines?
     
  28. Waqas-Anwar

    Waqas-Anwar

    Joined:
    Feb 2, 2015
    Posts:
    26
    Visual studio console shows nothing. I tried connecting the profiler but at that point the profiler also get stucks. The app freezes randomly but the issue didn't exist in 5.1.3f1 that i was using before. I dont have the crash dump. The app freezes everytime I run on Nokia Lumia 925 which is a dual core device.
     
  29. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    You can capture a crash dump by first pausing the execution in Visual Studio, and then pressing "Debug" -> "Save Dump As...".
     
  30. Waqas-Anwar

    Waqas-Anwar

    Joined:
    Feb 2, 2015
    Posts:
    26
    I PMed you the link to the crash dump files. Any help would be very appreciated. Thanks
     
  31. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Thanks! I can confirm this is a different issue (though the symptoms are similar). We have a suspicion what causes it, but we'd need a project to repro it on to confirm. Would it be possible for you to submit a bug report with it?
     
  32. Waqas-Anwar

    Waqas-Anwar

    Joined:
    Feb 2, 2015
    Posts:
    26
    Submitted the bug report.
    Here is the case number "Case 895766". Waiting for your reply. Thanks
     
  33. Waqas-Anwar

    Waqas-Anwar

    Joined:
    Feb 2, 2015
    Posts:
    26
    Any update on this ?
     
  34. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680