Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after adding image from text/plain data url to scene #5845

Closed
1 task done
radlotus opened this issue Oct 29, 2023 · 2 comments
Closed
1 task done

Crash after adding image from text/plain data url to scene #5845

radlotus opened this issue Oct 29, 2023 · 2 comments

Comments

@radlotus
Copy link

Is there an existing issue for this?

Describe the bug

The Scene Editor crashes if you add a sprite with an image from a data url that is "text/plain" instead of the corresponding image MIME type. In this case "image/webp"

Steps to reproduce

bandicam.2023-10-29.09-06-06-265.mp4
  1. Create new sprite, add animation, add sprite from data url i provided below.
  2. Attempt to add sprite to scene -> nothing happens
  3. Switch tab from Scene Editor to something else (Events, for example)
  4. Switch back to Scene Editor

data:text/plain;base64,UklGRl4UAABXRUJQVlA4WAoAAAAgAAAAfwIA3wEAVlA4IEAUAAAwrwCdASqAAuABP/3+/3+/v7+7shsLu/A/iWRu2RCRy2FpyCBv9oFd/0F/nF7uqB/8v0wH+bX14//f9z0p+Pxd/0nkv/gP//nS///U37/sgXlvNnX/z2HnExFUYoxRijFGKMUYoxRijFGX5IrC3pR43KKwx6MXf1hrDWGsNYaw1hrDWGsNYaw2ZTTyDHoxfe1aKu/rDWGsNYR1ZbDVq/ic0+XBBZUZj1ZNivjYFHUjx60dT1oIBIzADW9GMvdYajg+WbjRvCBuh1X2E2rfjXfuuwwkSbSlzLqw1mC6y2TeHP0UM7HYNrS7+sS6s4y1uKBJ7qnO6Fiv0AAHsnADruRUIQK/m9HUwKxsbW9hAaOSLh2XA0wVn421JOOODyCkI6PxOt/YAFs0/7Q3mzWPpxokmMfc0girJL/ZDPHFOrXw2JfAFH1RGElIfdcpOSEmL30gbhnwEoHcWUnXgFxHeTxvDPZNVfMu68uijyt9L9/ckIWz8rufnRRw3puUQXKIK3pR5aWxlRO+49kixjFVHun8mpaNQFGyImZyENYbBOqb+x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66be05e3, core version: 4.0.99-0-release)

Platform info

OS (e.g. Windows, Linux, macOS, Android, iOS)

Windows

OS Version (e.g. Windows 10, macOS 10.15)

10 LTSC

Browser(For Web) (e.g. Chrome, Firefox, Safari)

Chrome 118.0.5993.118

Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)

Lenovo Ideapad 3

Additional context

No response

@AlexandreSi
Copy link
Collaborator

Hi @radlotus,
Using data urls is not supported by GDevelop. It might have worked in the past but was never officially supported.
So I'm not sure we will fix that.

@radlotus
Copy link
Author

Data urls are not officially supported, noted!

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

No branches or pull requests

2 participants