Skip to content

Some Linux/Mac players get libgdiplus DLL-not-found error when mod loads PNG #277

@Pathoschild

Description

@Pathoschild

When the content API added by #257 is used to load a PNG, some Linux/Mac users get this error:

A mod failed handling the ControlEvents.KeyPressed event:
Microsoft.Xna.Framework.Content.ContentLoadException: Stardewponics failed loading content asset 'assets/greenhouse.png' from ModFolder.
---> System.InvalidOperationException: This image format is not supported
---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
---> System.DllNotFoundException: libgdiplus.dylib

This isn't unique to SMAPI — many players have reported the same problem with the GetDressed mod on Linux/Mac. The problem happens because the libgdiplus library isn't included in the game's local version of Mono, though it doesn't affect all players.

Metadata

Metadata

Assignees

Labels

bugThis is an unintended error or behavior that can be addressed with specific development changes.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions