What do you want to achieve?
I have a large project we’ve been maintaining and updating over time. I’d like to update it from SLS 1.6.1 to 1.6.2.
What have you tried so far?
When I open the project in SLS 1.6.1, several widgets are missing their images, many images are missing from their folders, and diffing the export shows those images were removed.
However, attempting to re-add the images through the add asset button shows something like “image.png is already in the project”
Screenshot or video
I can share more things privately.
Others
- SquareLine Studio version: 1.6.2
- Operating system: Windows 11
- Target hardware: Custom ESP32-S3 based product
A Wild Guess
SquareLine might be using an equality comparison to identify duplicated images.
This could be really great if the image export worked properly and exported a single copy of the images(maybe with a few comments explaining what happened, or maybe a single copy of the pixels with multiple image headers for each duplicate source image).
But SquareLine Studio 1.6.2 cannot load two PNGs with the same md5, and seems to silently drop the second one.
Also, digging through the errors shows some very strange behaviour - some of the text goes missing, and eventually an entire window.
Hi Richard, thanks for the detailed report. It isn’t an md5/duplicate check. “Already in the project” only means the file you picked is already inside the project’s assets folder. The real cause is that 1.6.2 stops scanning a folder after the first file it fails to load, so every file after it in that folder disappears from the asset list. A new suspect in 1.6.2 is an SVG file the new SVG importer can’t parse. Widgets whose image wasn’t loaded can then lose their reference when you select them and save, which is why they’re also gone from the export.
We’ve fixed this for the next release: a bad file is now skipped on its own and reported in the console. Until then:
Please don’t save the project in 1.6.2. If you already did, restore the .spj from a backup or version control.
Check the affected folders for .svg files (or other unusual files) and try moving them out temporarily.
If you can, send us privately %USERPROFILE%\AppData\LocalLow\SquareLine Kft\SquareLine_Studio\Player.log from right after opening the project. It shows exactly which file fails.
The disappearing text in the error list is a separate display bug, triggered when there are more than 100 errors. It’s fixed as well.
1 Like
Thank you so much for the explanation!
I’ve forwarded Player.log file.
I found we had a couple placeholder “.png” files that were actually Web/P, so I removed those. I also removed some SVG files. Suddenly, 1.6.2 can load the project!
We keep our SPJ in git, just for things like this 
Great to hear it loads now, and thanks for confirming! For the record: one of the SVG files wasn’t valid XML, and that stopped the asset scan, so every file after it in that folder was skipped. The WebP files renamed to .png wouldn’t have crashed the scan, but they couldn’t be displayed either, so removing them was a good call.
In the next release an unreadable file is simply skipped and named in the console, and the rest of the project keeps loading.
Since your .spj is in git, it’s worth diffing it against your last 1.6.1 commit. If you selected widgets and saved while images were missing in 1.6.2, some image references may have been cleared. Thanks again for the log, it made this quick to pin down!
1 Like