Web Emulator Failure

Post Reply
Edmond D
Posts: 489
Joined: Thu Aug 19, 2021 1:42 am

Important Web Emulator Failure

Post 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.
Attachments
Screen Shot 2023-03-10 at 8.15.52 AM.png
Screen Shot 2023-03-10 at 8.15.52 AM.png (96.22 KiB) Viewed 8079 times
Screen Shot 2023-03-10 at 8.14.13 AM.png
Screen Shot 2023-03-10 at 8.14.13 AM.png (91.15 KiB) Viewed 8079 times
User avatar
StephenHorn
Posts: 565
Joined: Tue Apr 28, 2020 12:00 am
Contact:

Re: Web Emulator Failure

Post 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).
Developer for Box16, the other X16 emulator. (Box16 on GitHub)
I also accept pull requests for x16emu, the official X16 emulator. (x16-emulator on GitHub)
User avatar
desertfish
Posts: 1095
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Web Emulator Failure

Post by desertfish »

Odd. It seems to work fine on my end. (am using Firefox)
Edmond D
Posts: 489
Joined: Thu Aug 19, 2021 1:42 am

Re: Web Emulator Failure

Post 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.
Attachments
Screen Shot 2023-03-10 at 4.12.15 PM.png
Screen Shot 2023-03-10 at 4.12.15 PM.png (172.03 KiB) Viewed 8019 times
User avatar
Cyber
Posts: 482
Joined: Mon Apr 27, 2020 7:36 am

Re: Web Emulator Failure

Post by Cyber »

Updated web emu. Please try again.
Edmond D
Posts: 489
Joined: Thu Aug 19, 2021 1:42 am

Re: Web Emulator Failure

Post 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.
Attachments
Screen Shot 2023-03-12 at 12.39.58 PM.png
Screen Shot 2023-03-12 at 12.39.58 PM.png (149.42 KiB) Viewed 7947 times
TomXP411
Posts: 1781
Joined: Tue May 19, 2020 8:49 pm

Re: Web Emulator Failure

Post by TomXP411 »

Have you tried it with Chrome?
Edmond D
Posts: 489
Joined: Thu Aug 19, 2021 1:42 am

Re: Web Emulator Failure

Post 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.
TomXP411
Posts: 1781
Joined: Tue May 19, 2020 8:49 pm

Re: Web Emulator Failure

Post 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.
Post Reply