Closed Bug 1571652 Opened 7 years ago Closed 5 years ago

Facebook game Gardenscape does not work on 32bits version of Firefox

Categories

(Core :: JavaScript: WebAssembly, defect, P2)

Desktop
Windows 10
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox68 --- affected
firefox69 --- affected
firefox70 --- affected

People

(Reporter: rdoghi, Assigned: jseward)

References

(Blocks 1 open bug)

Details

[Affected versions]:
Nightly 70.0a1

[Affected platforms]:
Platforms: Windows x86

[Steps to reproduce]:

  1. Launch the Firefox browser and reach https://apps.facebook.com/gardenscapes/?fb_source=bookmark&ref=bookmarks&count=0&fb_bmpos=_0
  2. Play a level until finish.

Expected Result:
The user should be able to play the game without issues and progress through the levels.

Actual Results:
A blank screen is displayed when the user finishes a level.
Sometimes an "Oops errors is displayed in game that requires the user to refresh the page"
When the user refreshes the page an error is displayed on screen:

An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
RuntimeError: index out of bounds

An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
uncaught exception: abort(289) at jsStackTrace (9251a3b258efec5eabdde2cc1d487d2e.unityweb:8:22313)
stackTrace (9251a3b258efec5eabdde2cc1d487d2e.unityweb:8:22484)
onAbort@https://cdngardenfb.playrix.com/gna-prod-unity/prod/builds/Build/UnityLoader.js?ver=332.05082019.1:4:11065
abort (9251a3b258efec5eabdde2cc1d487d2e.unityweb:8:611558)
@blob:https://gardenscapesfb.playrix.com/b53c6798-3c0f-4b23-a6da-d2dda71264e9 line 8 > WebAssembly.instantiate:wasm-function[115985]:0x22b2a3f (blob:https://gardenscapesfb.playrix.com/b53c6798-3c0f-4b23-a6da-d2dda71264e9 line 8 > WebAssembly.instantiate:wasm-function[21111]:0x8d4b0d)
@blob:https://gardenscapesfb.playrix.com/b53c6798-3c0f-4b23-a6da-d2dda71264e9 line 8 > WebAssembly.instantiate:wasm-function[49783]:0xf2fd4d (blob:https://gardenscapesfb.playrix.com/b53c6798-3c0f-4b23-a6da-d2dda71264e9 line 8 > WebAssembly.instantiate:wasm-function[49782]:0xf2fd07)
@blob:https://gardenscapesfb.playrix.com/b53c6798-3c0f-4b23-a6da-d2dda71264e9 line 8 > WebAssembly.instantiate:wasm-function[49788]:0xf2fedc (blob:https://gardenscapesfb.playrix.com/b53c6798-3c0f-4b23-a6da-d2dda71264e9 line 8 > WebAssembly.instantiate:wasm-function[67225]:0x13f3721)
@blob:https://gardenscapesfb.playrix.com/b53c6798-3c0f-4b23-a6da-d2dda71264e9 line 8 > WebAssembly.instantiate:wasm-function[115636]:0x22b15af
UnityModule [UnityModule/Module.dynCall_vii] (9251a3b258efec5eabdde2cc1d487d2e.unityweb:8:589037)

The priority flag is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)

This is an html5 game, not plugin based. Moving over to DOM for triage.

Component: Plug-ins → DOM: Core & HTML
Flags: needinfo?(jmathies)

Reporter, does the bug title imply that the game works on 64-bit Firefox? If so, chances are that this is a plain out-of-memory situation that we can't fix.

Since this appears to be a Wasm memory usage thing, sending over to JS engine.

Component: DOM: Core & HTML → Javascript: WebAssembly
Flags: needinfo?(rares.doghi)

Hi Henri, Yes on a 64bit version of Firefox the game works great.

Flags: needinfo?(rares.doghi)

Yes, it sounds like OOM (failure to expand the heap; failure to detect that failure on part of the program or failure to act on it properly; then a subsequent range error in the program) but in the limit it could also be, say, a bug in bounds checking on 32-bit (not saying it is, just suggesting an alternative hypothesis). So we should look. I believe we have some logging for OOM situations, and if we don't then we should.

Priority: -- → P3
Severity: normal → S3
Blocks: wasm-oom

Assigned to Julian for triage.

Assignee: nobody → jseward
Status: NEW → ASSIGNED
Priority: P3 → P2

Error messages have improved, this looks like a run-of-the-mill OOM (tested on FF90/32-bit, on Win10):

Uncaught (in promise) RuntimeError: abort(out of memory) at jsStackTrace@https://cdngardenfb.playrix.com/gna-prod-unity/prod_ems/builds//Gardenscapes.js?version=530.04082021.1:2128:17
stackTrace@https://cdngardenfb.playrix.com/gna-prod-unity/prod_ems/builds//Gardenscapes.js?version=530.04082021.1:2145:16
abort@https://cdngardenfb.playrix.com/gna-prod-unity/prod_ems/builds//Gardenscapes.js?version=530.04082021.1:1809:44
instantiateArrayBuffer/<@https://cdngardenfb.playrix.com/gna-prod-unity/prod_ems/builds//Gardenscapes.js?version=530.04082021.1:1928:12
    abort https://cdngardenfb.playrix.com/gna-prod-unity/prod_ems/builds//Gardenscapes.js?version=530.04082021.1:1815
    instantiateArrayBuffer https://cdngardenfb.playrix.com/gna-prod-unity/prod_ems/builds//Gardenscapes.js?version=530.04082021.1:1928
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.