Comments (3)
It looks like nstates should only be 0 when neither midend_new_game()
nor midend_deserialise()
has ever completed successfully on this midend. In this case the reporter says a game was played to completion and then New Game was pressed. We only save on a DONE
message or onPause()
, and then only if gameRunning
is false and progress
is null. Therefore either the prefs save was invalid before New Game was pressed (despite the game as played being valid) or these events/conditions held at some point after the press, and before midend_new_game()
completed.
More importantly, what was I doing giving samegame a key to process if midend_new_game()
hadn't completed successfully? :-(
from sgtpuzzles.
A report of this on 2010-02-09 on v8853.4, Nexus One, 2.1-update1. "I had just. Finished a game of map and was trying to start a new game." Annotations added below.
02-09 11:01:49.197 77 81 I NotificationService: enqueueToast pkg=name.boyle.chris.sgtpuzzles [...]
# "COMPLETED!"
02-09 11:01:50.957 23370 23370 W KeyCharacterMap: No keyboard for id 65540
02-09 11:01:50.957 23370 23370 W KeyCharacterMap: Using default keymap: /system/usr/keychars/qwerty.kcm.bin
02-09 11:01:53.457 77 3322 D dalvikvm: GC freed 18198 objects / 2096872 bytes in 133ms
02-09 11:01:54.217 77 3319 W InputManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44c7d188
02-09 11:01:56.437 23370 23370 D SGTPuzzles: saved game was:
02-09 11:01:56.437 23370 23370 D SGTPuzzles: SAVEFILE:41:Simon Tatham's Portable Puzzle Collection
02-09 11:01:56.437 23370 23370 D SGTPuzzles: VERSION :1:1
02-09 11:01:56.437 23370 23370 D SGTPuzzles: GAME :3:Map
02-09 11:01:56.437 23370 23370 D SGTPuzzles: PARAMS :10:20x15n30dn
02-09 11:01:56.437 23370 23370 D SGTPuzzles: CPARAMS :10:20x15n30dn
02-09 11:01:56.437 23370 23370 D SGTPuzzles: SEED :15:418118655392026
02-09 11:01:56.437 23370 23370 D SGTPuzzles: NSTATES :1:0
02-09 11:01:56.437 23370 23370 D SGTPuzzles: STATEPOS:2:17
# again, invalid...
02-09 11:01:56.437 23370 23370 D SGTPuzzles: GameView has seen 318 keys since init
02-09 11:01:56.437 23370 23370 W System.err: java.lang.RuntimeException: crashed here (native trace should follow after the Java trace)
02-09 11:01:56.447 23370 23370 W System.err: at name.boyle.chris.sgtpuzzles.SGTPuzzles.nativeCrashed(SGTPuzzles.java:985)
02-09 11:01:56.457 23370 23370 W System.err: at name.boyle.chris.sgtpuzzles.SGTPuzzles.keyEvent(Native Method)
02-09 11:01:56.457 23370 23370 W System.err: at name.boyle.chris.sgtpuzzles.SGTPuzzles.sendKey(SGTPuzzles.java:723)
02-09 11:01:56.457 23370 23370 W System.err: at name.boyle.chris.sgtpuzzles.GameView.onKeyDown(GameView.java:135)
# outer frames not interesting
02-09 11:01:56.527 49 49 I DEBUG : Build fingerprint: 'google/passion/passion/mahimahi:2.1-update1/ERE27/24178:user/release-keys'
02-09 11:01:56.527 49 49 I DEBUG : pid: 23370, tid: 23370 >>> name.boyle.chris.sgtpuzzles <<<
02-09 11:01:56.527 49 49 I DEBUG : signal 11 (SIGSEGV), fault addr 00000000
02-09 11:01:56.527 49 49 I DEBUG : r0 003721af r1 00124c17 r2 00000002 r3 00000003
02-09 11:01:56.527 49 49 I DEBUG : r4 0000020c r5 00464c98 r6 0013e160 r7 ffffff8f
02-09 11:01:56.527 49 49 I DEBUG : r8 80a9b554 r9 00000000 10 00000000 fp 00000001
02-09 11:01:56.527 49 49 I DEBUG : ip 00000001 sp be8fd808 lr 00000001 pc 80a45d94 cpsr 80000010
02-09 11:01:56.577 49 49 I DEBUG : # 00 pc 00045d94 /data/data/name.boyle.chris.sgtpuzzles/lib/libpuzzles.so
# http://github.com/chrisboyle/sgtpuzzles/blob/8853.4/map.c#L2401
02-09 11:01:56.577 49 49 I DEBUG : # 01 pc 0004c51c /data/data/name.boyle.chris.sgtpuzzles/lib/libpuzzles.so
# http://github.com/chrisboyle/sgtpuzzles/blob/8853.4/midend.c#L566
02-09 11:01:56.577 49 49 I DEBUG : # 02 pc 0004ca04 /data/data/name.boyle.chris.sgtpuzzles/lib/libpuzzles.so
# http://github.com/chrisboyle/sgtpuzzles/blob/8853.4/midend.c#L794
02-09 11:01:56.577 49 49 I DEBUG : # 03 pc 0000ecb4 /system/lib/libdvm.so
# http://github.com/chrisboyle/sgtpuzzles/blob/8853.4/bridges.c#L1252
# bogosity alert...
02-09 11:01:56.577 49 49 I DEBUG :
02-09 11:01:56.577 49 49 I DEBUG : code around pc:
02-09 11:01:56.577 49 49 I DEBUG : 80a45d84 e3a0e001 e585e01c e585e020 e5854024
02-09 11:01:56.577 49 49 I DEBUG : 80a45d94 e5993000 e5950014 e3540f83 e0831fa3
02-09 11:01:56.577 49 49 I DEBUG : 80a45da4 e0223390 e0822e51 0a0000c1 e3a03f82
02-09 11:01:56.577 49 49 I DEBUG :
02-09 11:01:56.577 49 49 I DEBUG : code around lr:
02-09 11:01:56.577 49 49 I DEBUG :
02-09 11:01:56.577 49 49 I DEBUG : stack:
02-09 11:01:56.577 49 49 I DEBUG : be8fd7c8 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd7cc 84090341
02-09 11:01:56.577 49 49 I DEBUG : be8fd7d0 be8fd8a8 [stack]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7d4 0011c748 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7d8 be8fd878 [stack]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7dc 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd7e0 0011f160 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7e4 a9d1410d /system/lib/libutils.so
02-09 11:01:56.577 49 49 I DEBUG : be8fd7e8 0013e348 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7ec 0011f160 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7f0 be8fd81c [stack]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7f4 0000020c
02-09 11:01:56.577 49 49 I DEBUG : be8fd7f8 00464c98 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd7fc 0013e160 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd800 e3a07077
02-09 11:01:56.577 49 49 I DEBUG : be8fd804 ef900077
02-09 11:01:56.577 49 49 I DEBUG : # 00 be8fd808 003721b0 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd80c 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd810 00000130
02-09 11:01:56.577 49 49 I DEBUG : be8fd814 0011c774 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd818 00000034
02-09 11:01:56.577 49 49 I DEBUG : be8fd81c 0013e2f8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd820 be8fd840 [stack]
02-09 11:01:56.577 49 49 I DEBUG : be8fd824 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd828 0011c7e8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd82c 00000004
02-09 11:01:56.577 49 49 I DEBUG : be8fd830 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd834 a9d9e15d /system/lib/libbinder.so
02-09 11:01:56.577 49 49 I DEBUG : be8fd838 0011c7e8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd83c 45e2f028 /dev/binder
02-09 11:01:56.577 49 49 I DEBUG : be8fd840 00000004
02-09 11:01:56.577 49 49 I DEBUG : be8fd844 0011c7e8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd848 0011c7e8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd84c a9d9e1b5 /system/lib/libbinder.so
02-09 11:01:56.577 49 49 I DEBUG : be8fd850 0011c7e8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd854 45e2f02c /dev/binder
02-09 11:01:56.577 49 49 I DEBUG : be8fd858 00000004
02-09 11:01:56.577 49 49 I DEBUG : be8fd85c 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd860 0011c748 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd864 0011c7e8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd868 0011c774 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd86c a9d98b29 /system/lib/libbinder.so
02-09 11:01:56.577 49 49 I DEBUG : be8fd870 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd874 a9d98a09 /system/lib/libbinder.so
02-09 11:01:56.577 49 49 I DEBUG : be8fd878 0011c748 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd87c a9d98505 /system/lib/libbinder.so
02-09 11:01:56.577 49 49 I DEBUG : be8fd880 a9da9208 /system/lib/libbinder.so
02-09 11:01:56.577 49 49 I DEBUG : be8fd884 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd888 00002bb4
02-09 11:01:56.577 49 49 I DEBUG : be8fd88c 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd890 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd894 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd898 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd89c 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd8a0 000003e8
02-09 11:01:56.577 49 49 I DEBUG : be8fd8a4 00000004
02-09 11:01:56.577 49 49 I DEBUG : be8fd8a8 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd8ac 45e2f028 /dev/binder
02-09 11:01:56.577 49 49 I DEBUG : be8fd8b0 45e2f02c /dev/binder
02-09 11:01:56.577 49 49 I DEBUG : be8fd8b4 84090341
02-09 11:01:56.577 49 49 I DEBUG : be8fd8b8 0000005a
02-09 11:01:56.577 49 49 I DEBUG : be8fd8bc 0011c748 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd8c0 0011c7e8 [heap]
02-09 11:01:56.577 49 49 I DEBUG : be8fd8c4 00000000
02-09 11:01:56.577 49 49 I DEBUG : be8fd8c8 00000010
02-09 11:01:56.587 49 49 I DEBUG : be8fd8cc a9d990b5 /system/lib/libbinder.so
02-09 11:01:56.587 49 49 I DEBUG : be8fd8d0 0000000b
02-09 11:01:56.587 49 49 I DEBUG : be8fd8d4 0011c820 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd8d8 afe3db74
02-09 11:01:56.587 49 49 I DEBUG : be8fd8dc afe0f110 /system/lib/libc.so
02-09 11:01:56.587 49 49 I DEBUG : be8fd8e0 00000000
02-09 11:01:56.587 49 49 I DEBUG : be8fd8e4 afe0f028 /system/lib/libc.so
02-09 11:01:56.587 49 49 I DEBUG : be8fd8e8 afe3d9bc
02-09 11:01:56.587 49 49 I DEBUG : be8fd8ec afe3da60
02-09 11:01:56.587 49 49 I DEBUG : be8fd8f0 0036f518 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd8f4 00452e48 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd8f8 0000020c
02-09 11:01:56.587 49 49 I DEBUG : be8fd8fc afe0bc07 /system/lib/libc.so
02-09 11:01:56.587 49 49 I DEBUG : be8fd900 afe3db74
02-09 11:01:56.587 49 49 I DEBUG : be8fd904 afe0f110 /system/lib/libc.so
02-09 11:01:56.587 49 49 I DEBUG : be8fd908 0000bd18 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd90c 00000001
02-09 11:01:56.587 49 49 I DEBUG : be8fd910 0011f160 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd914 7f4906f9
02-09 11:01:56.587 49 49 I DEBUG : be8fd918 0000f424 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd91c 84090341
02-09 11:01:56.587 49 49 I DEBUG : be8fd920 00130fd8 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd924 80a9dd38
02-09 11:01:56.587 49 49 I DEBUG : be8fd928 fffffffa
02-09 11:01:56.587 49 49 I DEBUG : be8fd92c ffffff8f
02-09 11:01:56.587 49 49 I DEBUG : be8fd930 00452e48 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd934 0000020c
02-09 11:01:56.587 49 49 I DEBUG : be8fd938 00130fd8 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd93c 0000000c
02-09 11:01:56.587 49 49 I DEBUG : be8fd940 00000000
02-09 11:01:56.587 49 49 I DEBUG : be8fd944 80a4c520 /data/data/name.boyle.chris.sgtpuzzles/lib/libpuzzles.so
02-09 11:01:56.587 49 49 I DEBUG : # 01 be8fd948 fffffffa
02-09 11:01:56.587 49 49 I DEBUG : be8fd94c 0000020c
02-09 11:01:56.587 49 49 I DEBUG : be8fd950 00000006
02-09 11:01:56.587 49 49 I DEBUG : be8fd954 0000020c
02-09 11:01:56.587 49 49 I DEBUG : be8fd958 4186bb18
02-09 11:01:56.587 49 49 I DEBUG : be8fd95c 00452e48 [heap]
02-09 11:01:56.587 49 49 I DEBUG : be8fd960 ffffff8f
02-09 11:01:56.587 49 49 I DEBUG : be8fd964 4186bb1c
02-09 11:01:56.587 49 49 I DEBUG : be8fd968 fffffffa
02-09 11:01:56.587 49 49 I DEBUG : be8fd96c 80a4ca08 /data/data/name.boyle.chris.sgtpuzzles/lib/libpuzzles.so
from sgtpuzzles.
Not seen in years, reopen if seen.
from sgtpuzzles.
Related Issues (20)
- New game: normal/unboxed sudoku i.e. without sub-blocks?
- Option to check correctness of partially solved puzzle
- "Map" bug HOT 5
- Start generating next game before finishing the current one HOT 1
- Add a stopwatch that stops when you solve the puzzle HOT 1
- Light Up: Night mode instructions wording HOT 1
- Untangle: show number of crossed lines
- All games request HOT 2
- Flip: add shape type "neighbors" (crosses + diagonals)
- Map coloring puzzle doesn't permit recoloring small areas
- Can't open "Mosaic" HOT 7
- Chooser highlight missing on Android < 10 due to <selector> support
- Tracks: "Solve unavailable" in all cases HOT 2
- Night mode broken on API 28
- In night mode certain highlight features are invisible and icons are barely visible HOT 1
- Show Best Times For Puzzles
- Train tracks: columns selected from below HOT 3
- Solo (& others?): button to erase all pencil marks HOT 2
- Night mode not active after app standby
- Undo action performed when leaving app HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sgtpuzzles.