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

Too much recursion in Firefox

Discussion in 'Web' started by d12frosted, Apr 7, 2015.

  1. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    Being a bit of a pest here I know - but could this trigger on PlayerPrefs as well? Having the same issue, with LoadFromCacheOrDownload disabled.
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Yes. Have you tried to comment out those two lines ?
     
  3. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    I did actually, and it did appear to fix it. Is this resolved in any of the patch releases directly?
     
  4. Zenix

    Zenix

    Joined:
    Nov 9, 2009
    Posts:
    213
    Removing those lines appears to have fixed the issue for me.
     
  5. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Thanks for confirming that works. We'll see what we can do about back-porting that change to a patch release.
     
  6. Zenix

    Zenix

    Joined:
    Nov 9, 2009
    Posts:
    213
    Any chance this fix made it into 5.2.1p1?
     
  7. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Unfortunately no, the plan is to include it in 5.2.1p3
     
  8. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    Just saw the 5.2.1p3 release notes which include:
    "WebGL: Workaround for IndexedDB not available in Firefox when running in iframe."

    Does this 'workaround' just prevent the error in Firefox or does it do something else (i.e, attempt other storage options)?

    Thanks!
     
  9. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    It just prevents the error. Investigating other options in Firefox does not seem worthwhile at this point, because Firefox has this restriction lifted, and that change will show up in Firefox 42 or 43 (you can track status at https://bugzilla.mozilla.org/show_bug.cgi?id=1147821)
     
  10. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    Yep, thanks. I just wanted to confirm. We've already built a caching "workaround" (per your suggestion) that uses local storage in the meantime.
     
  11. Eric-Laberge

    Eric-Laberge

    Joined:
    Jan 20, 2011
    Posts:
    26
    Mid-december is so far away.... I hope this gets bumped to Firefox 42...
     
  12. smokoko

    smokoko

    Joined:
    Dec 9, 2013
    Posts:
    11
    did you find any way how to fix it?
     
  13. xenonmiii

    xenonmiii

    Joined:
    Aug 2, 2010
    Posts:
    147
    @Marco Trivellato We have encountered in this error when running it on firefox 45.0 as a facebook app. We also tried on a server with a trusted SSL certificate but still got the same error. There's no asset bundles being used when the above crash happens. We're not using webgl's data caching tickbox option (as that doesn't work on Safari).

    Here's an example stack trace we're seeing:
    exception thrown: InternalError: too much recursion,invokeiii@blob:https://localhost/26bd37f6-3a40-744a-a868-8ab6f2cf79fd:17333:12
    ZN6il2cpp2vm10Reflection13GetTypeObjectEPK10Il2CppType@blob:https://localhost/26bd37f6-3a40-744.../26bd37f6-3a40-744a-a868-8ab6f2cf79fd:46936:8
    _Type_GetTypeFromHandle_m3806905434@blob:https://localhost/26bd37f6-3a40-744a-a868-8ab6f2cf79fd:3766836:10
    _StackTrace_init_frames_m198588387@blob:https://localhost/26bd37f6-3a40-744a-a868-8ab6f2cf79fd:3578925:9
    _StackTracector_m449371190@blob:https://localhost/26bd37f6-3a40-744a-a868-8ab6f2cf79fd:3578949:2
    _StackTraceUtility_ExtractStackTrace_m235366505@blob:https://localhost/26bd37f6-3a40-744...untimeInvoker_Il2CppObjectPK10MethodInfoPvPS2
    @blob:https://localhost/26bd37f6-3a40-744a-a868-8ab6f2cf79fd:4105177:8
    dynCall_iiii@blob:https://localhost/26bd37f6-3[…] UnityLoader.js:145:2

    On other browsers the crash doesn't happen.
    Any suggestions on how to narrow down why this is being caused?
     
  14. xenonmiii

    xenonmiii

    Joined:
    Aug 2, 2010
    Posts:
    147
    With webgl data caching tickbox on, the crash doesn't happen. We're going with that for now, and leaving Safari behind until Safari supports indexed dbs properly.