Latest Posts

Topic: Bug while starting new (network) game

Dillinger76
Avatar
Joined: 2018-01-07, 21:01
Posts: 31
Ranking
Pry about Widelands
Posted at: 2022-10-02, 21:01

Hi all,

during starting a new (network) game there is occuring an error with following message:

[/Users/runner/work/widelands/widelands/src/graphic/image_ao.cc:87] save_to_png: could not create png struct

I'm using version: 1.1~git1 (d11a49c@master) Debug on MAC OS. Same error occured with Release version.

Sorry, I was not sure where to address this bug so I thought to put it into this forum.

Best regards, Dillinger


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1722
OS: Ubuntu MATE 22.10
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2022-10-02, 21:24

Now that's an interesting bug…

Did you download a precompiled Widelands binary (if so, which one?) or did you compile it yourself? If the latter, which version of libpng do you have?

Does the bug happen reproducibly or only rarely? Possible easy explanation, might your machine have been out of free memory?


Top Quote
Dillinger76
Avatar
Joined: 2018-01-07, 21:01
Posts: 31
Ranking
Pry about Widelands
Posted at: 2022-10-03, 00:32

Hi Nordfriese,

I have just downloaded the todays (yesterdays) daily build (https://github.com/widelands/widelands/releases/download/latest/Widelands-daily-release-clang.dmg) and also tried the corresponding debug version.

Yes, it is reproducable. I‘ve tried it several times with different settings (different levels, single player, multiplayer via internet). I was not able to start any game. I am using a 2014 macbook pro with 16 GB RAM. There only was running Discord in parallel. Up to now memory never was a problem … at least not with versions up to v1.0.

Best regards, Dillinger


Top Quote
Dillinger76
Avatar
Joined: 2018-01-07, 21:01
Posts: 31
Ranking
Pry about Widelands
Posted at: 2022-10-09, 15:42

Problem still exists (see attached screenshot). Could I provide you some more details that helps you fixing this issue?


Top Quote
Dillinger76
Avatar
Joined: 2018-01-07, 21:01
Posts: 31
Ranking
Pry about Widelands
Posted at: 2022-10-23, 19:30

@Nordfriese: Same problem with official build Widelands 1.1. face-sad.png Is there any informaion I could deliver you to help fixing this issue? One more info - this is also occuring while starting a local game.

Thanks!

Edited: 2022-10-23, 19:34

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1722
OS: Ubuntu MATE 22.10
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2022-10-23, 19:36

Please have a look at this thread and see if it might help you: https://github.com/widelands/widelands/issues/5239

This is a Mac-specific issue, unfortunately I can't really help there having no experience with Macs at all


Top Quote
Dillinger76
Avatar
Joined: 2018-01-07, 21:01
Posts: 31
Ranking
Pry about Widelands
Posted at: 2022-10-23, 20:38

Hi Nordfriese!

Thanks for this information - I'm not that familiar with builing SW on my MAC. face-wink.png Hope there will be a fix in the official release. Nevertheless I will try to build the SW on my own. The repo is already cloned to my local machine but there is no CMake installed. Puh - challenging.

Best regards, Dillinger


Top Quote
Dillinger76
Avatar
Joined: 2018-01-07, 21:01
Posts: 31
Ranking
Pry about Widelands
Posted at: 2022-10-24, 21:19

Would be great if someone could support here. I'm not able to create the software by myself. face-sad.png


Top Quote
niektory
Avatar
Joined: 2019-06-03, 20:06
Posts: 204
Ranking
Widelands-Forum-Junkie
Location: Poland
Posted at: 2022-10-25, 03:01

It seems the problem appears because the build uses libpng 1.4 instead of 1.6 for some reason:

https://github.com/widelands/widelands/actions/runs/3303153851/jobs/5450750894#step:4:95

Even though libpng 1.6 appears to be installed:

https://github.com/widelands/widelands/actions/runs/3303153851/jobs/5450750894#step:3:81

So it indeed seems to be the same problem as in issue #5239.

Just a guess, but perhaps specifying that PNG version 1.6 is required in CMakeLists.txt could help?


Top Quote
Dillinger76
Avatar
Joined: 2018-01-07, 21:01
Posts: 31
Ranking
Pry about Widelands
Posted at: 2022-10-28, 21:28

Hi all,

I need some help on this topic. Hope there is a MAC user reading this. I would like to play Widelands with some friends at Christmas time - so it would be really great if this could be fixed until then!

Best (of course) would be a fixed version - at least as daily build version. For now I try to compile a version by my own - this is not working due to the problem see attached screenshot. Any idea what to do? I'm not that experienced - sorry in advance.

Best regards, Dillinger


Top Quote