lutris / buildbot

41 stars 27 forks source link

libpng12 is missing from the lutris runtime #85

Closed foresto closed 5 years ago

foresto commented 5 years ago

While trying to get Hearthstone Deck Tracker working, I ran into the following failure:

Unhandled Exception: System.Windows.Markup.XamlParseException: Failed to create a 'ImageSource' from the text 'Resources/hsreplay_info_1.png'. ---> System.NotSupportedException: No imaging component suitable to complete this operation was found.

Launching manually from the command line revealed this debug message from Lutris' wine runner:

0036:err:wincodecs:PngDecoder_CreateInstance Failed reading PNG because unable to find libpng12.so.0

It seems that Lutris' wine builds depend on libpng12. (I tested with tkg-4.3, tkg-4.2, tkg-3.20, and a few non-tkg builds.) Inconveniently, that library has not been included in the most popular linux distributions for quite some time. For example, the last release of Ubuntu that included it was version 14.04, which was released five years ago.

When I hunted down an i386 build of this library and added it to LD_LIBRARY_PATH, the error went away and Hearthstone Deck Tracker started successfully.

In light of this, I suggest adding libpng12 (both 32-bit and 64-bit versions) to the lutris runtime.

tannisroot commented 5 years ago

This is also an issue with many Origin games. They will try to install various version of vcrun and that will always fail if libpng12 is missing from the system or runtime.