Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: Chrome WebASM online player  (Read 8004 times)

0 Members and 1 Guest are viewing this topic.

DrSnuggles

  • New User
  • Offline Offline
  • Posts: 12
    • View Profile
Chrome WebASM online player
« on: January 15, 2019, 10:37:57 »

In Chrome the online mod player is not playing music anymore. In Firefox it does.

Chrome DEV console output:
Quote
libopenmpt.php:1 wasm streaming compile failed: CompileError: WebAssembly.instantiateStreaming(): Wasm code generation disallowed by embedder
(anonymous) @ libopenmpt.php:1
libopenmpt.php:1 falling back to ArrayBuffer instantiation
(anonymous) @ libopenmpt.php:1
libopenmpt.php:1 failed to asynchronously prepare wasm: CompileError: WebAssembly Instantiation: Wasm code generation disallowed by embedder
(anonymous) @ libopenmpt.php:1
libopenmpt.php:1 CompileError: WebAssembly Instantiation: Wasm code generation disallowed by embedder
    at https://modarchive.org/style/js/libopenmpt.php:1:18582
libopenmpt.php:1 CompileError: WebAssembly Instantiation: Wasm code generation disallowed by embedder
    at https://modarchive.org/style/js/libopenmpt.php:1:18582
abort @ libopenmpt.php:1
index.php?request=view_player&query=184394:1 Uncaught (in promise) abort({}). Build with -s ASSERTIONS=1 for more info.

Looks like the new libopenmpt webasm player is causing this problem.

Thanks for all your work,
   DrSnuggles
Logged
String theory? Ohh my god it's full of chars.

Nikku4211

  • Rising Star
  • *
  • Offline Offline
  • Posts: 152
  • Also known as Nikku4212
    • View Profile
Re: Chrome WebASM online player
« Reply #1 on: January 15, 2019, 22:58:11 »

As a Chrome user, I can confirm that this issue also prevents the online player from working.

+1
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Chrome WebASM online player
« Reply #2 on: January 17, 2019, 00:00:37 »

I'll look into it, probably during the weekend.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

DrSnuggles

  • New User
  • Offline Offline
  • Posts: 12
    • View Profile
Re: Chrome WebASM online player
« Reply #3 on: January 17, 2019, 17:22:51 »

I did some tests on my own to find out how good the new wasm is compared to normal js libopenmpt.

I was using chiptune2 example with libopenmpt-0.4.1+release.dev.js.tar.

Had to add MIME type for wasm else the lib falls back to ArrayBuffer which forces the browser to load the lib a second time.

With many tabs open i could see some difference in Chrome task manager.

Playing "Amegas":
CPU: Wasm 1.6%-4.7% vs. JS 4.7%-9.4%
Mem: Wasm 90MB vs. JS 75MB

Playing "and this is UltrSound" using latest features
CPU: Wasm 15%-20% vs. JS 29%-35%
Mem: Wasm 130MB vs. JS 92MB

Just rough values not spend much time in depth.
Logged
String theory? Ohh my god it's full of chars.

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Chrome WebASM online player
« Reply #4 on: January 19, 2019, 16:13:06 »

Alright, Chromium-based browsers should now be able to play modules again as well.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

DrSnuggles

  • New User
  • Offline Offline
  • Posts: 12
    • View Profile
Re: Chrome WebASM online player
« Reply #5 on: January 19, 2019, 22:45:45 »

Thank you
Logged
String theory? Ohh my god it's full of chars.
Pages: [1]   Go Up