dwarfcorp
dwarfcorp copied to clipboard
[Linux] TextureDataFromStream exception due to missing libpng.15.so.15
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.
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
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.
Linux
Close? @mklingen
No.
Still an issue?