Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by raphadko · Sep 28, 2017 at 08:48 PM · webgldebugging

How to debug a maximum call stack size error in WebGL?

I'm having this weird issue when exporting my Unity 3D application to webGL. On my computer it runs fine (on Unity, that is) but when I put it online it gives me the Maximum Call Stack Size error on Chrome (firefox runs fine) I did some research and most articles say it's because of a possible infinite loop on the code, I checked my code and there are no infinite loops (it would hang on firefox). So now I'm not sure how can I debug this. I tried disabling objects from the scene, and even with an almost empty scene with no C# code running, it will still return this bug on Chrome.

Can someone help out?

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FortisVenaliter · Sep 28, 2017 at 08:50 PM 0
Share

Typically, it's not an infinite loop that causes this, but rather infinite recursion.

I haven't ever seen this in my environment, so without code, it's hard to offer advice.

avatar image raphadko FortisVenaliter · Sep 28, 2017 at 08:52 PM 0
Share

There is no code running, there is one camera and one plane. Everything else is inactive.

avatar image FortisVenaliter raphadko · Sep 28, 2017 at 08:53 PM 0
Share

Does it still happen if you start a fresh project and build an empty scene?

avatar image raphadko FortisVenaliter · Sep 28, 2017 at 08:53 PM 0
Share

Here is the uploaded version: http://ec2-54-67-30-118.us-west-1.compute.amazonaws.com/unity/

avatar image dreg_master · May 09, 2018 at 12:29 AM 0
Share

Hi There, @raphadko

This is happening to me too, has happened in past but resolved itself, so I'm not sure to wait it out or try troubleshoot. I need some help. I've scoured the web for a few days now on google and stack overflow etc. $$anonymous$$y game stopped working on WebGL after the Unity update 2018.1.0f2 Personal. Now WebGL fails, but runs in editor and PC builds fine. I have played around allot with the player settings to no avail. bosssoftaware.net/GLTrump.html. There are no errors in my code(from what i can tell), worked before the update.

Google Chrome gives error - Uncaught RangeError: $$anonymous$$aximum call stack size exceeded. Firefox gives error - too much recursion

$$anonymous$$y next step it to try debug chrome and firefox, but I am unsure and not sure if it is worth it, so if anyone know anything please inform me. I also posted a reply for help on older thread forum.unity.com/threads/rangeerror-maximum-call-stack-size-exceeded-after-unity-has-loaded-in-webgl.332956/#post-3490190

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

73 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do you show C# line numbers in a WebGL build's stack trace? 1 Answer

Can Unity export the Emscripten symbols map on WebGL builds? 2 Answers

How do you do repeated "Build & Run" builds with WebGL without recompiling? 0 Answers

Debugging WebGL/Windows Standalone 0 Answers

WebGL Lags and Arrow Keys do not work 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges