Bug 23449 - boswars : crash at start, missing file
Summary: boswars : crash at start, missing file
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA6-32-OK MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2018-08-15 14:34 CEST by Jybz
Modified: 2018-11-28 06:55 CET (History)
5 users (show)

See Also:
Source RPM: boswars
CVE:
Status comment:


Attachments

Description Jybz 2018-08-15 14:34:24 CEST
Trying another game, boswars crash at start.

[jibz@jabztop]$ boswars -d /usr/share/games/boswars
Can't open file 'preferences.lua': No such file or directory
[...]
libpng warning: iCCP: known incorrect sRGB profile
libpng error: IDAT: invalid distance too far back
Error reading the PNG file.
Can't load the graphic `graphics/ui/ui_minimap.png'


[jibz@jabztop paquets]$ mgarepo co 6/boswars
[jibz@jabztop paquets]$ cd boswars/SOURCES/
[jibz@jabztop SOURCES]$ unzip boswars-2.7-src.zip 
[jibz@jabztop SOURCES]$ cd boswars-2.7-src/
[jibz@jabztop boswars-2.7-src]$ find ./ -iname "*minimap*"
./graphics/ui/ui_minimap.png
[...]

[jibz@jabztop /]$ find ./ -iname "ui_minimap.png"
./home/jibz/Workspaces/paquets/boswars/SOURCES/boswars-2.7-src/graphics/ui/ui_minimap.png
./usr/share/games/boswars/graphics/ui/ui_minimap.png
Comment 1 Marja Van Waes 2018-08-16 13:38:08 CEST
Assigning to the registered maintainer.

CC: (none) => marja11
Assignee: bugsquad => rverschelde

Comment 2 Rémi Verschelde 2018-11-24 00:28:21 CET
Should be fixed in Cauldron with boswars-2.7-12.20170903.1.mga7. The PNG files had incorrect properties and libpng broke compatibility with them - updating to the current SVN snapshot fixed it.

I think Mageia 6 might be affected too, can someone confirm?
Comment 3 JanKusanagi 2018-11-24 02:05:39 CET
Confirmed, same error happens in Mga6.

CC: (none) => jan-bugs

Comment 4 Rémi Verschelde 2018-11-24 09:52:11 CET
Thanks, pushing same update to Mageia 6 core/updates_testing:

Advisory:
=========

Updated boswars packages fix compatibility with recent libpng

  Recent libpng versions are no longer compatible with some of the PNG files
  used in boswars, preventing the game to run properly.

  This update brings boswars' latest upstream snapshot, fixing the compatibility
  with libpng, among other bug fixes and content additions.


RPMs in core/updates_testing:
=============================

boswars-2.7-10.20170903.1.mga6
boswars-data-2.7-10.20170903.1.mga6.noarch


SRPM in core/updates_testing:
=============================

boswars-2.7-10.20170903.1.mga6


Note for QA:
============

To launch the game, use either the desktop file, or `boswars -d /usr/share/games/boswars`.

This warning is expected and harmless:
  Can't open file 'preferences.lua': No such file or directory
It will disappear once you configure something in the menu and the file is created.

Same with the spam of those warnings, harmless too:
  libpng warning: iCCP: known incorrect sRGB profile

Assignee: rverschelde => qa-bugs
Version: Cauldron => 6

Comment 5 Herman Viaene 2018-11-27 11:39:40 CET
MGA6-32 MATE on IBM Thinkpad R50e
No installation issues.
$ boswars -d /usr/share/games/boswars
Can't open file 'preferences.lua': No such file or directory
Bos Wars V2.7.0, (c) 1998-2013 by the Bos Wars and Stratagus Project.
  written by Lutz Sammer, Fabrice Rossi, Vladi Shabanski, Patrice Fortier,
Jon Gabrielson, Andreas Arens, Nehal Mistry, Jimmy Salmon, Francois Beerten and others.
	(http://www.boswars.org)
Compile options VORBIS THEORA 

Bos Wars may be copied only under the terms of the GNU General Public License
which must be distributed with this program.

DISCLAIMER:
This software is provided as-is.  The author(s) can not be held liable for any
damage that might arise from the use of this software.
Use it at your own risk.

libpng warning: iCCP: known incorrect sRGB profile
Last line repeats umpteen times.
Program start,I cqn set options, start game and I get noises when I click on any item on the screen. That's as far as I go in gaming.

Whiteboard: (none) => MGA6-32-OK
CC: (none) => herman.viaene

Comment 6 Lewis Smith 2018-11-27 20:46:54 CET
Testing M6 x64

BEFORE update, installed:
 boswars-2.7-9.mga6
 boswars-data-2.7-9.mga6
Launching it from the menu, it displayed its startup splash, but any attempted interaction crashed it. From console, same scenario:

$ boswars -d /usr/share/games/boswars
Can't open file 'preferences.lua': No such file or directory
...
libpng warning: iCCP: known incorrect sRGB profile
libpng error: IDAT: invalid distance too far back
Error reading the PNG file.
Can't load the graphic `graphics/ui/ui_minimap.png'
$
----------------------------------------------------
AFTER update:
 boswars-2.7-10.20170903.1.mga6
 boswars-data-2.7-10.20170903.1.mga6
Launching from menu worked fine, tried various short paths but not the game.
From console (changed language to French once started):

$ boswars -d /usr/share/games/boswars
Bos Wars V2.7.0, (c) 1998-2013 by the Bos Wars and Stratagus Project.
  written by Lutz Sammer, Fabrice Rossi, Vladi Shabanski, Patrice Fortier,
Jon Gabrielson, Andreas Arens, Nehal Mistry, Jimmy Salmon, Francois Beerten and others.
...
libpng warning: iCCP: known incorrect sRGB profile
Merci d'avoir joué à Bos Wars.
$

Update good. OKing, validating, doing advisory from comment 4.

Whiteboard: MGA6-32-OK => MGA6-32-OK MGA6-64-OK
Keywords: (none) => advisory, validated_update
CC: (none) => lewyssmith, sysadmin-bugs

Comment 7 Mageia Robot 2018-11-28 06:55:20 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2018-0176.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.