Skip to content

[critical for v3-stable release] backend crash when trying to load an unsupported image file #1161

@kswang1029

Description

@kswang1029

Describe the bug
Usually this should not happen via the GUI as the default file list parser only include supported image formats in the resulting file list. However, in the preferences now we have an option to show all files so the file list can have all other unsupported files such as pdf, png, etc. Then if we single click on one, the file info shows it is unsupported as expected. However, if we double-click on one, the backend crashes...

To Reproduce
Steps to reproduce the behavior:

  1. set the "file list" dropdown menu in the "Global" tab of the preferences dialog to "all files"
  2. navigate to a folder with unsupported image formats, such as png or pdf
  3. single-click on one and backend should return an error message and the frontend shows it in the file info
  4. double-click on one and the backend should crash

Expected behavior
Backend should not crash in this case and it should also throw an error to the frontend.

Platform info (please complete the following information):

  • OS [e.g. macOS Monterey]: macOS Monterey
  • Browser [e.g. chrome, safari, electron app]: chrome
  • Browser version [e.g. 22]: 103
  • Backend branch [e.g. dev, v3b2 release]: dev
  • Frontend branch [e.g. dev, v3b2 release]: dev

Metadata

Metadata

Assignees

Labels

critical bugcritical bug which is a showstopper for release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions