Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Bug Reports & Support Sticky

A topic by sudo whoami created 70 days ago Views: 120 Replies: 6
Viewing posts 1 to 2
Developer

This is the place to post bug reports or requests for technical support. Feature requests or general discussion / comments should be posted in their respective topics.

Hi! I'm not able to import any palette, unfortunately. I get hit with error `lospec-palette-importer.lua:344: unexpected end of input`

Developer

Hi @organictrain, sorry to hear you’re running into trouble.

Could you please tell me what version of Aseprite you’re using and the palette name you tried to import?

This error typically occurs when Lospec sends bad data to the extension, or generally means the palette info was mangled somehow.

You may also want to check that your firewall isn’t blocking traffic from Lospec, as some users have found that.

For now, please try removing and reinstalling the extension.

(TEMPORARY FIX)

I have the same issue as you and yes I'm on Linux and Install Aseprite through Steam.

So when I run aseprite from steam it will throw me  `lospec-palette-importer.lua:344: unexpected end of input` error
After add some debug check and I found out that it logged this.

/usr/bin/curl: .../SteamLinuxRuntime/.../libcurl.so.4: version 
`CURL_OPENSSL_4' not found (required by /usr/bin/curl)

That means when Aseprite (launched under Steam runtime / a sandbox) runs /usr/bin/curl it ends up picking up the runtime's libcurl which is incompatible with my system curl binary. The curl binary therefore prints an error instead of JSON, causing the JSON decode failure.

So my fix is that just run aseprite directly from the installed folder or change `Aseprite.desktop` that created from steam
to this:
[Desktop Entry]
Name=Aseprite
Comment=Play this game on Steam
Exec=/home/(your-user-name)/.local/share/Steam/steamapps/common/Aseprite/aseprite
Icon=steam_icon_431730
Terminal=false
Type=Application
Categories=Game;
Developer

That’s a great find Neil! Thanks for the info. I wonder if there’s a more permanent workaround…

You can take a look at this:
It works fine for both Windows and Linux, not sure about Mac, but it would just fall back to use default one if not Linux
https://github.com/JRiggles/Lospec-Palette-Importer/commit/9b4a4494a234896eef4ae...

Developer

Thanks Niel, I’ll have a look when I get a chance.