siramix / buzzwords

A mobile word game that will change the word.
www.siramix.com/buzzwords
GNU General Public License v3.0
10 stars 1 forks source link

Crash during Remove Pack #97

Closed edwardrowe closed 11 years ago

edwardrowe commented 11 years ago

I ran the latest release on P's Droid X, went into credits, came back to Title, then clicked credits again and it crashed. I think I may have some installed packs it doesn't recognize, due to testing shuffling. See how it says REMOVING PACK: X? I'm just writing this down to look at it, we should really just get the branch finished and then do some exhaustive testing. Here is the stack trace:

12-02 12:54:56.582 6370 6408 D CardJSONIterator: hasNext 12-02 12:54:56.582 6370 6408 D CardJSONIterator: next 12-02 12:54:56.582 6370 6408 D PackParser: stringToCard 12-02 12:54:56.582 6370 6408 D PackParser: --> {"title" : "Drumstick", "badwords" : "WOOD,CHICKEN,HIT,BAND,SNARE", "_id" : 124} 12-02 12:54:56.582 6370 6408 D Deck : updateCard(Drumstick) 12-02 12:54:56.589 6370 6408 D CardJSONIterator: hasNext 12-02 12:54:56.589 6370 6408 D Deck : upsertPack(Starter) 12-02 12:54:56.886 6370 6370 D Credits : BackKeyUp() 12-02 12:54:56.902 6370 6370 D Credits : onPause() 12-02 12:54:56.902 6370 6370 D BuzzWordsApplication: GetMusicPlayer() 12-02 12:54:56.910 6370 6408 D Deck : DONE loading words. 12-02 12:54:56.918 1391 1391 D RadioSignalLevel: evdo dbmLevel: 4, snrLevel: 4 12-02 12:54:56.933 6370 6370 D Title : onResume() 12-02 12:54:56.933 6370 6370 D BuzzWordsApplication: GetMusicPlayer() 12-02 12:54:56.988 6370 6408 D PackPurchase: SYNCING PACK: Basic 12-02 12:54:56.988 6370 6408 D Deck : REMOVING PACK: 2 12-02 12:54:56.988 6370 6408 D Deck : getPackFromDB(2) 12-02 12:54:57.043 6370 6408 D Deck : PackId 2 not found in database. 12-02 12:54:57.152 6370 6408 D PackPurchase: SYNCING PACK: Facebook 12-02 12:54:57.152 6370 6408 D Deck : REMOVING PACK: 3 12-02 12:54:57.168 6370 6408 D Deck : getPackFromDB(3) 12-02 12:54:57.238 6370 6408 D Deck : PackId 3 not found in database. 12-02 12:54:57.269 6370 6408 D PackPurchase: SYNCING PACK: Amazon2 12-02 12:54:57.269 6370 6408 D Deck : REMOVING PACK: 4 12-02 12:54:57.277 6370 6408 D Deck : getPackFromDB(4) 12-02 12:54:57.379 6370 6408 D Deck : PackId 4 not found in database. 12-02 12:54:57.472 6370 6408 D PackPurchase: SYNCING PACK: Winter Holidays 12-02 12:54:57.472 6370 6408 D Deck : REMOVING PACK: 5 12-02 12:54:57.480 6370 6408 D Deck : getPackFromDB(5) 12-02 12:54:57.527 6370 6408 D Deck : PackId 5 not found in database. 12-02 12:54:57.699 6370 6370 D PackPurchase: refreshAllPackLayouts 12-02 12:54:57.699 6370 6370 D Deck : getLocalPacks() 12-02 12:54:57.699 6370 6370 D Deck : getAllPacksFromDB() 12-02 12:54:57.707 6370 6370 D Pack : constructor Pack(args) 12-02 12:54:57.707 6370 6370 D Deck : countCards(Starter) 12-02 12:54:57.714 6370 6370 D Deck : countNumSeen(Starter) 12-02 12:54:57.730 6370 6370 D szipinf : Initializing inflate state 12-02 12:54:57.738 6370 6370 D PackPurchase: removeLocalPacks 12-02 12:54:57.769 6370 6370 D AndroidRuntime: Shutting down VM 12-02 12:54:57.769 6370 6370 W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40018560) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: FATAL EXCEPTION: main 12-02 12:54:57.777 6370 6370 E AndroidRuntime: java.lang.IllegalArgumentException: View not attached to window manager 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.view.Window$LocalWindowManager.removeView(Window.java:432) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.app.Dialog.dismissDialog(Dialog.java:278) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.app.Dialog.access$000(Dialog.java:71) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.app.Dialog$1.run(Dialog.java:111) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.app.Dialog.dismiss(Dialog.java:268) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at com.buzzwords.PackPurchaseActivity$PackSyncronizer.onPostExecute(PackPurchaseActivity.java:580) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at com.buzzwords.PackPurchaseActivity$PackSyncronizer.onPostExecute(PackPurchaseActivity.java:1) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:417) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.os.AsyncTask.access$300(AsyncTask.java:127) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.os.Looper.loop(Looper.java:130) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:3806) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:507) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 12-02 12:54:57.777 6370 6370 E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method) 12-02 12:54:57.777 1320 1485 W ActivityManager: Force finishing activity com.buzzwords/.TitleActivity 12-02 12:54:57.910 6370 6433 D skia : --- SkImageDecoder::Factory returned null

lucasrowe commented 11 years ago

Closing this as code has been heavily refactored and a new round of testing should run into this again if it's a real issue.