Search Unity

integer overflow/integer

Discussion in 'Web' started by roka, Apr 26, 2017.

  1. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    598
    Hello, just to be sure that this problem do not get lost and because the thread is closed because it was in the 5.6 beta section:

    From :PieterAlbers

    Answer from LeonhardP :

    It has been reported a month ago and it's still not fixed.

    Everything seem to be fine with the webassembly exepting this problem. My game run fine but crash because of this problem.

    Thank you.
     
  2. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Yes,its been almost 1.5 months and we cannot test webassembly on our games yet, even Browsers also launched webassembly more than 1 month ago.
     
  3. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    598
    Can you tell us if you are working on this issue or not?
    It has been submitted a month ago, and it's still not fixed.

    Thank you.
     
  4. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Yes, we are.
     
    Gaurav-Gulati likes this.
  5. PieterAlbers

    PieterAlbers

    Joined:
    Dec 2, 2014
    Posts:
    248
    @roka - Thanks for not forgetting this!
     
    Gaurav-Gulati likes this.
  6. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    598
    Your welcome, i just want to be able to use my unity version as it should be.
    It's crazy to see a bug reported a month ago during the beta not fixed yet .....
     
    PieterAlbers and Gaurav-Gulati like this.
  7. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    Do we happen to know if this will be part of a patch release? (fingers crossed)
     
  8. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    598
    From schubkraft :

    Funny no? ^^
     
  9. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    Yeah... hilarious :(
     
  10. PieterAlbers

    PieterAlbers

    Joined:
    Dec 2, 2014
    Posts:
    248
    would be 'nice' indeed if these fixes would be included in a 5.6 patch or release
     
    Gaurav-Gulati likes this.
  11. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
  12. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    Was hoping this would be fixed in 2017.1.b6 but no dice. Can anyone provide an estimate on which beta release will contain this fix?

    This is preventing us from moving forward in WebAssembly and we have specifically upgraded (see: purchased) to a 2017 subscription on the assumption that this will be addressed soon.

    Thanks.
     
  13. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I don't see how a 2017 subscription changes anything. You still get the exact same version of Unity everyone else does. Licenses and extra services change, not the engine.

    Also the developer has clearly stated it it's being worked on. Times cannot be given because it's not up to the developer when it lands.

    Fixes have to go through a peer review process and may interfere with other fixes. Just be patient.
     
  14. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    With all due respect, when Unity heavily touts exciting features in their PR and GDC presentations (such as WebGL support in 5.x and WebAssembly in 5.6) and then users discover fatal errors right off the bat that then require updates to new versions of Unity, it becomes very frustrating. WebAssembly is "experimental" in 5.6 so YES an upgrade to 2017 is required if we want full WebAssembly support (eventually).

    I understand that it's a business and there are thousands of factors that influence release schedules, many of which are out of the control of Unity dev (i.e, browser vendors), so I can accept the upgrade requirement. But I don't think its too much to ask for a possible timeline when the developer response on this specific issue is:

    All the support I've received from developers on this forum has been cordial, helpful and responsive thus far, even when they need to be vague. "Just be patient" helps noone.
     
  15. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    The issue has been fixed but, as @hippocoder said, all changes need to go through a review process which is happening right now. So far everything is looking good for the fix to land to 5.6 and 2017.1 by the end of the month or in early June.
     
  16. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    Awesome! I totally understand the review process and my apologies if I was sounding pushy. Just curious.

    Thanks, Marco.
     
  17. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
  18. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
  19. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Hopefully, it gets released this week, "Early June" as Marco mentioned :)
     
  20. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Gaurav-Gulati likes this.
  21. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Thanks for your response.
     
  22. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
  23. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
  24. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Last edited: Jun 12, 2017
  25. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Damn, loading assetbundles in b9 is always giving error, even in editor and webgl(offcourse i recompiled bundles with this new unity version)
     
    Last edited: Jun 12, 2017
  26. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    could you please open a new thread about this new issue?
     
  27. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Last edited: Jun 12, 2017
  28. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    598
    For my part, it happen when i instanciate a prefab (an explosion) with an audio source with "Play on awake" checked
     
  29. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    We are yet getting integer overflow bug in b9 :( during the scene change, mostly when the loaded scene is big enough(can say when memory jump occurs in game) or when instantiating a lot of players one after another on joining rooms,for instance in multiplayer games( offcourse asm.js works fine), now i started giving up on webassembly and webgl
     
    Last edited: Jun 12, 2017
  30. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    could you please post a Development build callstack?
     
    Gaurav-Gulati likes this.
  31. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Hi,
    I am able to reproduce it on Chrome-MacOS but, unfortunately, we need more information.

    I tried the development build and I get this error: webSocketInstances is not defined
    perhaps this is something you can fix so we can get a useful callstack for the wasm error? Although, ideally we would need a small repro project so we can iterate and fix the bug on our side.

    BTW, great work on the game, looks really promising :)
     
  32. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    @Marco-Trivellato Here is the stacktrace :
    exception thrown: RuntimeError: integer result unrepresentable,RuntimeError: integer result unrepresentable
    at __ZN17DirectorFrameTime21CalculateDSPDeltaTimeEv (<WASM>[5729]+677)
    at __ZN15DirectorManager12OnSampleTimeEv (<WASM>[5727]+143)
    at __ZZN15DirectorManager15InitializeClassEvEN40EarlyUpdateDirectorSampleTimeRegistrator7ForwardEv (<WASM>[5703]+26)
    at __Z10PlayerLoopv (<WASM>[6083]+920)
    at __ZL8MainLoopv (<WASM>[6070]+248)
    at dynCall_v (<WASM>[64745]+11)
    at Object.UnityLoader.797615e9914df39e318dca8456244e4e.Module.dynCall_v (blob:http://storage-direct.id.net/55144286-9208-4fe7-9ded-cd4182d83608:20924:86)
    at browserIterationFunc (blob:http://storage-direct.id.net/55144286-9208-4fe7-9ded-cd4182d83608:2707:30)
    at Object.runIter (blob:http://storage-direct.id.net/55144286-9208-4fe7-9ded-cd4182d83608:2824:13)
    at Browser_mainLoop_runner (blob:http://storage-direct.id.net/55144286-9208-4fe7-9ded-cd4182d83608:2762:26)

    Can you spot the problem ? looks similar to:

    1. https://issuetracker.unity3d.com/is...00.1882648136.1497359872-929948973.1497359872

    2. https://issuetracker.unity3d.com/is...00.1882648136.1497359872-929948973.1497359872

    When can we expect to get it fixed :) i guess this is the last Big Stone on the way. if it can be fixed in one of the next beta's or patches,that will be really awesome
     
    Last edited: Jun 13, 2017
  33. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Gaurav-Gulati likes this.
  34. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Thank you ! Appreciated
     
  35. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    1. https://issuetracker.unity3d.com/is...00.1882648136.1497359872-929948973.1497359872
    2. https://issuetracker.unity3d.com/is...00.1882648136.1497359872-929948973.1497359872

    Issue 1: It says its fixed in Unity 2017.1, why cant it be included in next beta release of Unity 2017.1 i.e Unity 2017.1b10.
    Issue 2: Not yet fixed in 5.6.1p4.

    Can both(or atleast Issue 1) be fixed in next beta release of Unity 2017.1(b10), so atleast we can start benchmarking webassembly sooner.

    Also beta version Unity 2017.1b10 wasnt released this weekend(i expected 'Issue1' to be fixed in beta 10), thinking if it was on weekly release scenario yep. @Marco-Trivellato
     
    Last edited: Jun 19, 2017
  36. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Issue #1: this one can and will be fixed in 2017.1, just need to be a little more patient. The plan is to back-ported the fix this week.
    Issue #2: as far as I know this is actually fixed 5.6.1p4, if you still experience a problem it might be a different bug.
     
  37. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    So b10 was released yesterday and it didnt had back-ported fix of Issue #1(read release notes only and it didnt had that bug tracking number, or bug is fixed but not listed in Release notes?), so all eyes on b11 next week :)
     
    Last edited: Jun 20, 2017
  38. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Yes, definitely keep an eye on the next release. The fix will be listed in the release notes.
     
  39. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Any ETA on Unity 2017.1 b11 approximation release date? :)
     
  40. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    I believe this is currently with QA so it should be out very soon...
     
  41. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    So Unity 2017.1f1 has that Issue#1 resolved, Thanks Marco! :) , though i have been using Unity 5.x license, i hope Issue #1 listed above, isn't present in Unity 5.6.2 (https://unity3d.com/unity/whats-new/unity-5.6.2) , will post here if it does exist.
     
    Last edited: Jun 27, 2017
  42. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    @Marco-Trivellato

    Unity 2017.1.f1 works fine, without any issues.

    Unity 5.6.2 gives error:
    UnityLoader.js:1 exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds at <WASM UNNAMED> (<WASM>[12525]+134) at <WASM UNNAMED> (<WASM>[12524]+15) at <WASM UNNAMED> (<WASM>[13195]+77) at <WASM UNNAMED> (<WASM>[55915]+52) at <WASM UNNAMED> (<WASM>[38009]+246) at <WASM UNNAMED> (<WASM>[38008]+258) at <WASM UNNAMED> (<WASM>[33398]+1747) at <WASM UNNAMED> (<WASM>[26679]+258) at <WASM UNNAMED> (<WASM>[26973]+109) at <WASM UNNAMED> (<WASM>[41079]+22) at <WASM UNNAMED> (<WASM>[61885]+19)

    This happens when scene bundle gets loaded.
    Unit Editor gets crashed as well, and we have to reopen unity.
     
  43. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    seems like a different issue. does asm.js work fine? how much memory are you using?
     
  44. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Unrelated to this thread, Unity UI isnt visible in webassembly and webgl when compiled from Unity 2017.2.0b3, though works fine in Unity2017.1.0f3.

    Not related to this thread, but worth mentioning, not have enough time to create a thread for now.
     
  45. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    I would be great if you could submit a bug report when you get a chance and post the bug number in a new forum post. thanks!
     
  46. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    For some other project, Getting this error in webassembly, though asm.js works fine.
    Version: Unity5.6.2 & Unity2017.1.0f3.

    exception thrown: RuntimeError: integer overflow,__ZN4FMOD7Channel12setFrequencyEf@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:1443278:1

    __ZN20SoundChannelInstance11UpdatePitchEv@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:1442308:1

    __ZN20SoundChannelInstance14SetFMODChannelEPN4FMOD7ChannelE@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:1438537:1

    __ZN12SoundManager6UpdateEv@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:1436353:1

    __ZN11AudioModule6UpdateEv@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:1571144:1

    __ZZL31InitializeAudioManagerCallbacksvEN36PostLateUpdateUpdateAudioRegistrator7ForwardEv@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:1570973:1

    __Z10PlayerLoopv@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:2126830:1

    __ZL8MainLoopv@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:2118609:1

    dynCall_v@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:16464825:1

    UnityLoader.e0906dda2ec51efd78a5269d0fad9255/Module.dynCall_v@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:19770:59

    browserIterationFunc@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:2707:11

    runIter@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:2824:13

    Browser_mainLoop_runner@blob:null/709b5e21-0d78-8b4d-b0ce-3c79de0f616d:2762:9
     
  47. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Hi,
    Is it reproducible with the latest patch ?
     
  48. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Yes, its reproducable with this patch as well.
     
  49. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Then, this is not a known issue AFAIK. Would you mind submitting a bug report so we can take a look at the project?
    Then post the bug number here please.
     
  50. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    @Marco-Trivellato I havnt done any bug reports in the past, but i uploaded a wasm_pitch_bug.unitypackage to this post(used Unity2017.1.0p5 for this package), which you can compile with wasm and try in browsers.

    Wasm gives an error(stack trace listed in above messages) while asm works fine as expected.

    Compiled builds:
    WASM: https://www.dropbox.com/s/z72zunn9n64d3ac/wasm_pitch_compiled.zip?dl=0
    WASM development: https://www.dropbox.com/s/d9sygzb8xzr2evw/wasm_pitch_compiled_development.zip?dl=0
    ASM: https://www.dropbox.com/s/fd8tkibxlgis7ty/asm_pitch_compiled.zip?dl=0
     

    Attached Files:

    Last edited: Aug 29, 2017