Page 1 of 1

Web Emulator Failure

Posted: Fri Mar 10, 2023 4:22 pm
by Edmond D
Hi All,

In the thread about the emulator not bing at a known release, I went to it and it launched for me yesterday. Today I get these messages in the section below the X16 window:
Language (en-ca) not found in keymaps so using keyboard map: en-us Downloading file... Downloading file... Preparing... [known behavior] wasm streaming compile failed: TypeError: Unexpected response MIME type. Expected 'application/wasm' [known behavior] falling back to ArrayBuffer instantiation All downloads complete. Running... [error] Aborted(No EM_ASM constant found at address 182753)

Below is a screen capture and Safari's web inspector and see a 404 error that may be the cause of the emulator failing.

The 404 resource is https://www.commanderx16.com/webemu/web ... zip.min.js

I am not complaining, just noting the issue for resolution. I assume this is just a minor glitch that will be resolved in short order given the dedicated and talented people in the community who volunteer their time.

Re: Web Emulator Failure

Posted: Fri Mar 10, 2023 8:38 pm
by StephenHorn
I'm guessing this means the wasm package isn't finding and including the zlib library with its other components (r42 introduces the ability to use gzipped files for some purposes).

Re: Web Emulator Failure

Posted: Fri Mar 10, 2023 9:47 pm
by desertfish
Odd. It seems to work fine on my end. (am using Firefox)

Re: Web Emulator Failure

Posted: Sat Mar 11, 2023 12:15 am
by Edmond D
Now seemingly works for me - the maze program runs. I use Safari 16.3, but the web inspector still shows issues :-(

Downloading data... [known behavior] wasm streaming compile failed: TypeError: Unexpected response MIME type. Expected 'application/wasm' [known behavior] falling back to ArrayBuffer instantiation All downloads complete. Running... [error] emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.

Re: Web Emulator Failure

Posted: Sat Mar 11, 2023 4:08 pm
by Cyber
Updated web emu. Please try again.

Re: Web Emulator Failure

Posted: Sun Mar 12, 2023 7:46 pm
by Edmond D
Thanks for looking into the issue. I still see problems, but perhaps it's just me. (Safari 16.3 on Mac OS 12.6.3) I've got an older MAC I'll attempt to use in the next couple of days.

I don't have a strong need for the web emulator to be working fully, as I can alway use the local emulator. I've stayed with R38 since all the games I want to play are supported in that version.

I'm willing to work with anyone who wants to remotely debug the issue. PM me and we'll figure out a way to work together.

Perhaps because I'm Canadian it doesn't like hearing "sorry" all the time? :P

Here's the results:

Language (en-ca) not found in keymaps so using keyboard map: en-us Downloading file... Downloading file... Preparing... Downloading data... [known behavior] wasm streaming compile failed: TypeError: Unexpected response MIME type. Expected 'application/wasm' [known behavior] falling back to ArrayBuffer instantiation Downloading data... Downloading data... Downloading data... All downloads complete. Running... [error] emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.

Re: Web Emulator Failure

Posted: Sun Mar 12, 2023 11:07 pm
by TomXP411
Have you tried it with Chrome?

Re: Web Emulator Failure

Posted: Mon Mar 13, 2023 12:20 am
by Edmond D
TomXP411 wrote: Sun Mar 12, 2023 11:07 pm Have you tried it with Chrome?
No, nor with any other one. I do have an older testbed type of machine that I can attempt with Safari and possibly instal Chrome to see the results.

Re: Web Emulator Failure

Posted: Mon Mar 13, 2023 12:31 am
by TomXP411
Rumor has it that Safari doesn't always play well with web sites written to work well with Chromium. The IMSAI reproduction interface doesn't work well on Safari, either.