Giter Site home page Giter Site logo

Emukit loading throws on baseUrl about exokit HOT 12 CLOSED

avaer avatar avaer commented on May 23, 2024
Emukit loading throws on baseUrl

from exokit.

Comments (12)

BiatuAutMiahn avatar BiatuAutMiahn commented on May 23, 2024 2

should we discuss this on discord?

from exokit.

avaer avatar avaer commented on May 23, 2024 1

de46297

from exokit.

BiatuAutMiahn avatar BiatuAutMiahn commented on May 23, 2024 1

well I patched emukit/assets/frontend/bundle/js/zip.js@872 to be:

var DEFAULT_WORKER_SCRIPTS = {
	deflater: ['z-worker.js', 'http://127.0.0.1:8000/assets/frontend/bundle/js/deflate.js'],
	inflater: ['z-worker.js', 'http://127.0.0.1:8000/assets/frontend/bundle/js/inflate.js']
};

then that bug appeared.

now im resolving this error:

uncaught exception: ReferenceError: _elementSetter is not defined
    at FileReader.set onload [as onload] (c:\System\Users\Biatu\Dev\git\exokit\src\File.js:14:5)
    at BlobReader.readUint8Array (http://127.0.0.1:8000/assets/frontend/bundle/js/zip.js:212:18)
    at doSeek (http://127.0.0.1:8000/assets/frontend/bundle/js/zip.js:660:12)
    at seekEOCDR (http://127.0.0.1:8000/assets/frontend/bundle/js/zip.js:651:4)
    at Object.getEntries (http://127.0.0.1:8000/assets/frontend/bundle/js/zip.js:678:5)
    at http://127.0.0.1:8000/assets/frontend/bundle/libretro.js:55:21
    at http://127.0.0.1:8000/assets/frontend/bundle/js/zip.js:732:6
    at Worker.onmessage (http://127.0.0.1:8000/assets/frontend/bundle/js/zip.js:941:5)
    at Worker.emit (events.js:203:13)
    at Worker.EventEmitter.emit (domain.js:476:20)
    at WorkerVm.<anonymous> (c:\System\Users\Biatu\Dev\git\exokit\src\WindowBase.js:99:12)
    at WorkerVm.emit (events.js:203:13)
    at WorkerVm.EventEmitter.emit (domain.js:476:20)
    at Worker._message (c:\System\Users\Biatu\Dev\git\exokit\src\WindowVm.js:35:16)
    at Worker.emit (events.js:203:13)
    at Worker.EventEmitter.emit (domain.js:476:20)
    at MessagePort.<anonymous> (internal/worker.js:142:55)
    at MessagePort.emit (events.js:203:13)
    at MessagePort.EventEmitter.emit (domain.js:476:20)
    at MessagePort.onmessage (internal/worker/io.js:70:8)

...trying to figure out how to include util.js in File.js :/

from exokit.

avaer avatar avaer commented on May 23, 2024 1

Should be this: 1f2caf3

from exokit.

BiatuAutMiahn avatar BiatuAutMiahn commented on May 23, 2024 1

ok this is turning into new issue, going back to initial issue on emukit.

from exokit.

BiatuAutMiahn avatar BiatuAutMiahn commented on May 23, 2024

I believe I found a typo in src/request.js@39, req is supposed to be res?

from exokit.

avaer avatar avaer commented on May 23, 2024

Hm yes, thanks! Does that change anything?

from exokit.

BiatuAutMiahn avatar BiatuAutMiahn commented on May 23, 2024

unhandled rejection: Error while reading zip file.

this could be that PS1 bios archive or it's wanting a zipped ROM

from exokit.

avaer avatar avaer commented on May 23, 2024

That could be one reason, improper handling of gzip.

If that is going through request.js synchronous requests (I'm not sure if it is), it could also be an insufficient buffer here. But if anything other than importScripts is using request.js for synchronous requests that's probably a bigger problem in the use case.

from exokit.

BiatuAutMiahn avatar BiatuAutMiahn commented on May 23, 2024

it was a fetch() that was pulling that zip

from exokit.

avaer avatar avaer commented on May 23, 2024

That should be ok, but something could be wrong with the format that's coming out of the fetch Response.

from exokit.

BiatuAutMiahn avatar BiatuAutMiahn commented on May 23, 2024

how can I dump the response? I'll compare to local file

from exokit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.