After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755321 - Crash if no save file exists
Crash if no save file exists
Status: RESOLVED FIXED
Product: gnome-2048
Classification: Other
Component: general
3.17.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-2048 maintainer(s)
gnome-2048 maintainer(s)
: 755658 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-09-20 19:33 UTC by Michael Catanzaro
Modified: 2015-10-12 16:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix starting the game for the first time (1.34 KB, patch)
2015-09-20 19:35 UTC, Michael Catanzaro
committed Details | Review
fix on top of master (1.79 KB, patch)
2015-09-26 10:38 UTC, Yanko Kaneti
none Details | Review

Description Michael Catanzaro 2015-09-20 19:33:27 UTC
The game crashes the first time you run it and it's impossible to start. To reproduce, delete ~/.local/share/gnome-2048.

Pushing a workaround....
Comment 1 Michael Catanzaro 2015-09-20 19:35:34 UTC
Created attachment 311719 [details] [review]
Fix starting the game for the first time

The game crashes if this function returns false, and it always returns
false if you don't have a save file already.
Comment 2 Michael Catanzaro 2015-09-20 19:36:42 UTC
Leaving the bug open because my patch is just a hack; someone needs to study this properly and remove the FIXME.
Comment 3 Yanko Kaneti 2015-09-26 10:38:56 UTC
Created attachment 312187 [details] [review]
fix on top of master
Comment 4 Yanko Kaneti 2015-09-26 10:39:23 UTC
*** Bug 755658 has been marked as a duplicate of this bug. ***
Comment 5 Arnaud B. 2015-10-12 16:44:37 UTC
Pushed, thanks (for the patches and the reminder ;·) ).