chinedufn / psd

A Rust API for parsing and working with PSD files.
https://chinedufn.github.io/psd
Apache License 2.0
266 stars 41 forks source link

Drag and drop example error with PSD file #66

Open jakeleventhal opened 2 days ago

jakeleventhal commented 2 days ago

When I drag in my PSD file, I get this error:

[Error] RuntimeError: Unreachable code should not be executed (evaluating 'wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0464633ff841b041(arg0, arg1, addHeapObject(arg2))')
    <?>.wasm-function[307] (drag_drop_browser.js:197:135)
    <?>.wasm-function[442]
    <?>.wasm-function[480]
    <?>.wasm-function[359]
    <?>.wasm-function[172]
    <?>.wasm-function[510]
    __wbg_adapter_18 (drag_drop_browser.js:197:135)
    real (drag_drop_browser.js:187)
chinedufn commented 21 hours ago

What happens if you use the psd crate to deserialize the bytes?

As in, what happens when you call this method on your PSD https://docs.rs/psd/0.3.5/psd/struct.Psd.html#method.from_bytes ?

This will help us rule out whether it's an issue with the demo or an issue with the parser.

jakeleventhal commented 21 hours ago

builderr.txt Frankly, I was never able to get this build so I am not sure (build logs^)

▶ rustc --version
rustc 1.79.0 (129f3b996 2024-06-10) (Homebrew)