Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5.5 & 5.6 DLL Error?

Discussion in 'Editor & General Support' started by Hanoble, Mar 22, 2017.

  1. Hanoble

    Hanoble

    Joined:
    Apr 18, 2013
    Posts:
    28
    We recently upgraded our project from 5.3.6f1 to 5.5.2 and noticed that our movies we play began to crash within the first 5 seconds or so after beginning to play on Windows standalone builds due to running out of memory. We are still using the MovieTexture functionality and use the www class to pull from a URL. The call stack appears to possibly be an issue within a Unity DLL, but I am not 100% sure what to make of it.

    On top of that, when debugging via Visual Studio, if I attach the debugger the crash no longer occurs and the memory remains stable. We have also upgraded to several Unity 5.6 betas (11 is the latest we have tried) and the crash remains. Attaching the stack trace output in the log file in hopes someone can be of assistance here.

    ========== OUTPUTING STACK TRACE ==================

    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00F3ACF4)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00F3ACF4)
    0x00F3ACF4 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00F39828)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00F39828)
    0x00F39828 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00F37B49)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00F37B49)
    0x00F37B49 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00D7D765)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00D7D765)
    0x00D7D765 ((<unknown>))
    0x2C8A551C (Mono JIT Code) (wrapper managed-to-native) UnityEngine.WWW:get_movie()
    0x2C8A54D2 (Mono JIT Code) UtWWWAsync/WWWProcess:get_pMovie()
    0x0596E461 (Mono JIT Code) RsResourceManager/Resource:GetObject (UtIWWWAsync)
    0x0596E05B (Mono JIT Code) RsResourceManager/Resource:EventHandler (UtAsyncEvent,UtIWWWAsync)
    0x0594438F (Mono JIT Code) UtWWWAsync/WWWProcess:Update ()
    0x05943B94 (Mono JIT Code) UtWWWAsync:Update ()
    0x058E9469 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    0x100F172A (mono) mono_set_defaults
    0x1005D839 (mono) mono_runtime_invoke
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00CFF41E)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00CFF41E)
    0x00CFF41E ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00D26CAA)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00D26CAA)
    0x00D26CAA ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00D1DC5E)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00D1DC5E)
    0x00D1DC5E ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00D1F991)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00D1F991)
    0x00D1F991 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00C43987)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00C43987)
    0x00C43987 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 0114B3B7)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 0114B3B7)
    0x0114B3B7 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 011EAB38)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 011EAB38)
    0x011EAB38 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 012233F8)
    ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 012233F8)
    0x012233F8 ((<unknown>))
    ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 76D462C4)
    0x76D462C4 (KERNEL32)
    ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 77840FD9)
    0x77840FD9 (ntdll)
    ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 77840FA4)
    0x77840FA4 (ntdll)

    ========== END OF STACKTRACE ===========

    **** Crash! ****
     
  2. Hanoble

    Hanoble

    Joined:
    Apr 18, 2013
    Posts:
    28
    Updated to 5.6.0f1 RC1 and issue remains. Bump for any help here?
     
  3. Hanoble

    Hanoble

    Joined:
    Apr 18, 2013
    Posts:
    28
    Monday bump, anyone have anything on this?
     
  4. FiveFingerStudios

    FiveFingerStudios

    Joined:
    Apr 22, 2016
    Posts:
    509
    Did you ever solve this issue? I just updated my game from 5.5.0f3 to 5.6.0f3 and I'm getting the exact error when attempting to run a build of the game.
     
  5. Hanoble

    Hanoble

    Joined:
    Apr 18, 2013
    Posts:
    28
    For us the issue was that we had a class that while checking the progress was setting the movie texture each frame. Prior to Unity 5.6 it looked like this:

    Code (CSharp):
    1. public MovieTexture pMovie
    2. {
    3.       get
    4.       {
    5.             return (mWWW != null ? mWWW.movie : null);
    6.        }
    7. }
    When we updated to 5.6 and the www.movie call was removed, we changed it to www.GetMovieTexture(). The old www.movie call must have been caching the object or allocating a lot less memory each frame, because once we switched to GetMovieTexture() our game would crash every single time a movie was played due to running out of memory. I just ended up changing that getter to only call the GetMovieTexture() the first time and then cache it, which is probably something we should have been doing anyways.

    My advice would be to crash it a handful of times and study those logs. If you can get a consistent call stack, which was an issue for me as many times I got nothing more than the "ERROR: SymGetModuleInfo64, GetLastError" spam, hopefully you can track it down.
     
  6. FiveFingerStudios

    FiveFingerStudios

    Joined:
    Apr 22, 2016
    Posts:
    509
    Thanks for giving a detailed response.

    I'm not using any movies within my game, so there is something else going on. The strange thing is that the build crashed on the machine that has 5.6, but worked fine on another machine we have. Sometimes, I wish these error messages were a little bit more specific.

    In any case, I'll continue to look at it.

    Glad you got it fixed...again...thanks a lot much appreciated.