sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Editor Crashes when opening and previewing .png files

Open lu2000luk opened this issue 1 year ago • 9 comments

Describe the bug

The editor crashes when you double click on a .png file or when you set the view mode to small/medium/large icons.

To Reproduce

  1. Import a png

  2. Double click

  3. Crash (:

  4. Import a png

  5. Click view mode

  6. Set it to one of the icon preview mode

  7. Crash (:

Expected behavior

It should open an image editor/OS's preferred image viewer

Generate the thumbnail normally

Media/Files

In my case the .pngs where generated from importing a model

Additional context

Windows 11 Pro Insider x64 32 GB of ram Ryzen 7 5700G CPU's integrated GPU

Build ID: 15181917

lu2000luk avatar Jul 29 '24 08:07 lu2000luk

PNG file doesnt have any editor widget binded for file type. So, that maybe the issue

bub-bl avatar Jul 29 '24 10:07 bub-bl

Doesn't happen for me, using a png works fine and trying to open it will just tell you that there's no tool for it. WARNING: No tool (internal or external) found for asset 'my/image.jpg' ("jpg" being the internal asset type for any image file)

DoctorGurke avatar Jul 29 '24 10:07 DoctorGurke

For me double clicking a png/jpg has always opened it as if it were a normal file (opens Paint.NET in my case since thats my default image editor). Odd that it would exhibit different behaviour for the 3 of us

CarsonKompon avatar Jul 29 '24 10:07 CarsonKompon

I can provide a video of the issue or any other info regarding my configuration

lu2000luk avatar Aug 01 '24 06:08 lu2000luk

Now the editor dosent crash but just plays the winodws error sound

lu2000luk avatar Aug 01 '24 06:08 lu2000luk

After mentioning an issue i had with 4k .png files on discord (just clicking on them in the asset browser crashes the editor), Carson told me to upload them here.

Sadly they are a bit big due to being 4k. Here's where i got them : https://ambientcg.com/view?id=Rocks025 (4k-PNG is the one i used).

Hopefully this help with this issue.

linkpy avatar Aug 11 '24 12:08 linkpy

@linkpy I was unable to replicate the issue on my end. I assume the reason this is happening is simply because you do not have enough VRAM to load the image due to it's size.

According to the OP, the following will also make you crash, enforcing that it's erroring when trying to view it at all: image

CarsonKompon avatar Aug 11 '24 21:08 CarsonKompon

I doubt it @CarsonKompon : image The red line is when the crash happens. There is plenty of vram to spare here.

The crash also happens when enabling icons in the asset browser.

linkpy avatar Aug 12 '24 13:08 linkpy

I doubt it @CarsonKompon : image The red line is when the crash happens. There is plenty of vram to spare here.

The crash also happens when enabling icons in the asset browser.

ye the same happened to me. it somehow got fixed duh

lu2000luk avatar Aug 16 '24 17:08 lu2000luk