dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

[Linux] TextureDataFromStream exception due to missing libpng.15.so.15

Open djdunn opened this issue 7 years ago • 6 comments

TextureDataFromStream: Failed loading libpng15.so.15: libpng15.so.15: cannot open shared object file: No such file or directory Failed to load texture /home/djdunn/.local/share/DwarfCorp/Saves/Sea of Bulb_475/screenshot.png: System.NullReferenceException: Object reference not set to an instance of an object at Microsoft.Xna.Framework.Graphics.Texture2D.SetData[T] (T[] data) [0x00001] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream (Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, System.IO.Stream stream) [0x0001a] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at DwarfCorp.TextureManager.LoadInstanceTexture (System.String file, System.Boolean cache) [0x00031] in <6c7529e1b3d1449c80aecae27d2d798a>:0 TextureDataFromStream: Failed loading libpng15.so.15: libpng15.so.15: cannot open shared object file: No such file or directory Failed to load texture /home/djdunn/.local/share/DwarfCorp/Saves/Sea of Bulb_475/screenshot.png: System.NullReferenceException: Object reference not set to an instance of an object at Microsoft.Xna.Framework.Graphics.Texture2D.SetData[T] (T[] data) [0x00001] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream (Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, System.IO.Stream stream) [0x0001a] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at DwarfCorp.TextureManager.LoadInstanceTexture (System.String file, System.Boolean cache) [0x00031] in <6c7529e1b3d1449c80aecae27d2d798a>:0 TextureDataFromStream: Failed loading libpng15.so.15: libpng15.so.15: cannot open shared object file: No such file or directory Failed to load texture /home/djdunn/.local/share/DwarfCorp/Saves/Sea of Bulb_475/screenshot.png: System.NullReferenceException: Object reference not set to an instance of an object at Microsoft.Xna.Framework.Graphics.Texture2D.SetData[T] (T[] data) [0x00001] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream (Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, System.IO.Stream stream) [0x0001a] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at DwarfCorp.TextureManager.LoadInstanceTexture (System.String file, System.Boolean cache) [0x00031] in <6c7529e1b3d1449c80aecae27d2d798a>:0 EXT_swap_control_tear unsupported. Fall back to standard VSync. TextureDataFromStream: Failed loading libpng15.so.15: libpng15.so.15: cannot open shared object file: No such file or directory Failed to load texture /home/djdunn/.local/share/DwarfCorp/Saves/Sea of Bulb_475/screenshot.png: System.NullReferenceException: Object reference not set to an instance of an object at Microsoft.Xna.Framework.Graphics.Texture2D.SetData[T] (T[] data) [0x00001] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream (Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, System.IO.Stream stream) [0x0001a] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at DwarfCorp.TextureManager.LoadInstanceTexture (System.String file, System.Boolean cache) [0x00031] in <6c7529e1b3d1449c80aecae27d2d798a>:0 TextureDataFromStream: Failed loading libpng15.so.15: libpng15.so.15: cannot open shared object file: No such file or directory Failed to load texture /home/djdunn/.local/share/DwarfCorp/Worlds/Sea of Bulb/world.png: System.NullReferenceException: Object reference not set to an instance of an object at Microsoft.Xna.Framework.Graphics.Texture2D.SetData[T] (T[] data) [0x00001] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at Microsoft.Xna.Framework.Graphics.Texture2D.FromStream (Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, System.IO.Stream stream) [0x0001a] in <ad88b97af23c4ad29a37cd3f789394ab>:0 at DwarfCorp.TextureManager.LoadInstanceTexture (System.String file, System.Boolean cache) [0x00031] in <6c7529e1b3d1449c80aecae27d2d798a>:0 Failed to load overworld texture.

djdunn avatar Feb 17 '18 17:02 djdunn

i have libpng 1.6.23 installed, just looking at the log i says libpng15 so i installed 1.5.28 alongside 1.6.23, and where the screenshot pictures wouldn't appear they appear now, and i can load a save without crashing

djdunn avatar Feb 17 '18 17:02 djdunn

Thank you for the report, what is your platform? We have bad support for libpng on some linux platforms unfortunately. libpng.so is included alongside our distribution so its confusing that it's failing.

mklingen avatar Feb 17 '18 20:02 mklingen

Linux

djdunn avatar Feb 18 '18 00:02 djdunn

Close? @mklingen

com1clyf3 avatar Apr 26 '18 22:04 com1clyf3

No.

mklingen avatar Apr 27 '18 14:04 mklingen

Still an issue?

com1clyf3 avatar Jul 20 '18 19:07 com1clyf3