lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
279 stars 25 forks source link

Error: Assertion failure #137

Closed OlagStegan closed 2 years ago

OlagStegan commented 2 years ago

Issue Type: Bug

On opening a file get an error message "Assertion failure: 20617 !== 0"

Extension version: 0.13.2 VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:55.248Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz (8 x 2304)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|7.88GB (0.88GB free)| |Process Argv|--crash-reporter-id 8cf13605-3740-4498-b970-4545d4b0c3b0| |Screen Reader|no| |VM|0%|
Tyriar commented 2 years ago

Would you be able to upload this file? Either to github or to my email (<myusername>@<myusername>.com)

OlagStegan commented 2 years ago

Sorry about the delay I'll try to email it

Tyriar commented 2 years ago

Thanks I got it (was in spam for some reason though). I'll try check it out soon

Tyriar commented 2 years ago

@OlagStegan I had a look at this file, it's actually a PNG and Luna Paint doesn't yet have detection of mismatched file extensions. It should work when renamed to end with .png. I created https://github.com/lunapaint/vscode-luna-paint/issues/139 to track this feature which would allow opening the file with warnings.

Tyriar commented 2 years ago

I improved the error message in the meantime until #139 is done:

Screen Shot 2022-04-24 at 8 52 33 am