penpot / penpot

Penpot: The open-source design tool for design and code collaboration
https://penpot.app
Mozilla Public License 2.0
33.7k stars 1.7k forks source link

bug: #5312

Open simplemind opened 5 hours ago

simplemind commented 5 hours ago

Steps To Reproduce

Hello, Penpot crashes after I change the primary color in Material Design 3 library. The steps can be best seen in the attached video. I download the Material Design 3 libary, import it, rename it adding suffix "Master", make a copy and move the copy to a new project, then rename the copied MD3 library. I open the copied MD3 library and change its Primary color in the Assets section to #02497D. After a few seconds Penpot shows an error page.

Expected behavior

I would expect the library to update its default Primary color to the specified color and Penpot to continue working with the updated color in the library.

Actual behavior

Instead of updating the primary color to the specified library Penpot crashes and shows a page with a message "Internal Error. Something bad happened. Please retry the operation and if the problem persists, contact support."

Screenshots or video

https://github.com/user-attachments/assets/f5d02b46-7406-42a6-8958-ae7866975770

Desktop (please complete the following information)

MacBook Pro with MacOS Sonoma 14.5 Firefox 132.0.1 (aarch64)

Smartphone (please complete the following information)

No response

Environment (please complete the following information)

No response

Frontend Stack Trace

No response

Backend Stack Trace

No response

Additional context

Please find below the error file generated by Penpot:

20241114 - Penpot report. Crashed after changing color in MD3.txt

simplemind commented 5 hours ago

In the submitted video I have unintentionally used color code #2497D instead of hex code #02497D. Please see another video with hex code #02497D as intended. Also its report.txt genereated by Penpot. I hope this helps identify the root cause of the error.

https://github.com/user-attachments/assets/c315ade8-1ef6-4ab8-8f13-cbba77cbab57

report.txt