Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMException when running this DOS image #1027

Closed
parkertomatoes opened this issue Apr 27, 2024 · 0 comments
Closed

DOMException when running this DOS image #1027

parkertomatoes opened this issue Apr 27, 2024 · 0 comments
Labels

Comments

@parkertomatoes
Copy link
Contributor

parkertomatoes commented Apr 27, 2024

I've been using v86 to test old demoscene demos. Many work ok, some don't, but this one seems to cause an exception every time I use it.

Tested on MacOS with Chrome and Firefox

Chrome error:

v86_all.js:174 Uncaught DOMException: Failed to construct 'ImageData': The source width is zero or not a number.
    at p.wd (https://copy.sh/v86/build/v86_all.js:174:287)
    at Ic (https://copy.sh/v86/build/v86_all.js:175:183)
    at p.Dj (https://copy.sh/v86/build/v86_all.js:185:387)
    at zc.f (https://copy.sh/v86/build/v86_all.js:71:63)
    at io_port_write16 (https://copy.sh/v86/build/v86_all.js:380:420)
    at wasm://wasm/0043686a:wasm-function[1047]:0xc540c
    at wasm://wasm/0043686a:wasm-function[989]:0x955fd
    at wasm://wasm/0043686a:wasm-function[990]:0xb845f
    at lb (https://copy.sh/v86/build/v86_all.js:72:704)
    at g.onmessage (https://copy.sh/v86/build/v86_all.js:75:53)

Firefox error:

Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable
    wd http://copy.sh/v86/build/v86_all.js:174
    Ic http://copy.sh/v86/build/v86_all.js:175
    Dj http://copy.sh/v86/build/v86_all.js:185
    f http://copy.sh/v86/build/v86_all.js:71
    io_port_write16 http://copy.sh/v86/build/v86_all.js:380
    lb http://copy.sh/v86/build/v86_all.js:72
    onmessage http://copy.sh/v86/build/v86_all.js:75
    l http://copy.sh/v86/build/v86_all.js:75
    ib http://copy.sh/v86/build/v86_all.js:72
    Va http://copy.sh/v86/build/v86_all.js:384
    promise callback*Va http://copy.sh/v86/build/v86_all.js:383
    d http://copy.sh/v86/build/v86_all.js:49
    <anonymous> http://copy.sh/v86/build/v86_all.js:27
    e http://copy.sh/v86/build/v86_all.js:26
    EventListener.handleEvent* http://copy.sh/v86/build/v86_all.js:68
    <anonymous> http://copy.sh/v86/build/v86_all.js:68
[v86_all.js:174](http://copy.sh/v86/build/v86_all.js)

To reproduce:

  1. Unzip the attached floppy disk image"
    demo.img.zip
  2. From the copy.sh website, run v86 with the floppy image
  3. Observe that the emulation stops with a black screen
  4. Look at the developer console to see the error

Output on qemu:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants