Skip to content

HTML5: fix various crashes with image files - #923

Merged
Shchvova merged 2 commits into
coronalabs:masterfrom
XeduR:HTML5-JPG-FIX
Jun 11, 2026
Merged

HTML5: fix various crashes with image files#923
Shchvova merged 2 commits into
coronalabs:masterfrom
XeduR:HTML5-JPG-FIX

Conversation

@XeduR

@XeduR XeduR commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Currently HTML5 builds crash if they handle .jpg/.jpeg images. Additionally, while I was testing the Add display.isValidObject function feature, I found that HTML5 builds detect invalid/corrupted image files, but instead of just logging an error, like on other platforms, they just crash.


The sample project contains 6 valid image files and 16 invalid/corrupted image files. It'll work with these changes, but instantly crash on current HTML5 builds:

html5-build-errors.zip

XeduR added 2 commits April 17, 2026 20:03
Failed image loads now yield an empty display object like other platforms instead of crashing.
@XeduR
XeduR requested a review from Shchvova as a code owner June 8, 2026 10:49
@Shchvova
Shchvova merged commit 590280a into coronalabs:master Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HTML5]: Loading a JPG image causes runtime freeze and “function signature mismatch” error

2 participants