phikal / ReGeX

A Regular Expression game for Android
https://f-droid.org/en/packages/com.phikal.regex/
GNU General Public License v3.0
101 stars 10 forks source link

Doesen't work #27

Closed CrimsonFork closed 7 years ago

CrimsonFork commented 7 years ago

ReGeX does not start since the last upgrade on F-Droid. Android 5.1.1 .

phikal commented 7 years ago

Do you have any logs? I conscious how ironic this may sound, but it works on my device. Or could you describe how it's not working? Does the screen blank, or is nothing loading?

YgrekIx commented 7 years ago

I confirm, first run all ok, second run, just screen flash and nothing. Great idea/game. Thank You

YgrekIx commented 7 years ago

Another tip, after clearing "data", app works again.

phikal commented 7 years ago

@Ygreklx what Android version are you running?

YgrekIx commented 7 years ago

Android 6.0 Huawei P9 eva-l9 If your application store somewhere logs, tell me where and I paste it to you :)

phikal commented 7 years ago

No, I'm sorry, the application doesn't store logs on files, but you might be able to catch the error with adb logcat.

This site might help you, in case you don't have too mich experience on the subject: http://wiki.cyanogenmod.org/w/Doc:_debugging_with_logcat

YgrekIx commented 7 years ago

True, I must force app crashing again :)

CrimsonFork commented 7 years ago

The backgroud color appears for maybe 200ms then I see my launcher again. I've solved this problem by deleting any apps data, now it works, thanks, @Ygreklx .

phikal commented 7 years ago

@YgrekIx So, could you make a log? I'm just asking because there could be a connection to #29, and I still don't know what's wrong.

YgrekIx commented 7 years ago

RegExLog.txt

Got IT! :) This started in random game mode.

phikal commented 7 years ago

Great, thanks for the log.

All in all the following lines seem to be relevant:

11-10 18:37:00.118  2285  3291 W PGApi_client: recv actoionId = 10000, action = com.huawei.pgmng.PGAction@7ac87ab actionId =10000 pkg =com.phikal.regex extend1 =2114 extend2 = flag =3 type =1
11-10 18:37:00.154 25467 25467 W System  : ClassLoader referenced unknown path: /data/app/com.phikal.regex-1/lib/arm64
11-10 18:37:00.165 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.168 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.174 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.175 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.176 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.177 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.179 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.180 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.180 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.182 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.184 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.187 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.191 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.192 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.193 25467 25467 W ZipFileCache: Open zip file:com.phikal.regex failed!
11-10 18:37:00.215   562  1022 I logserver: extract_appname, forward search, appname=com.phikal.regex
11-10 18:37:00.216   562  1022 I logserver: get_fault_appname, appname=com.phikal.regex
11-10 18:37:00.217   562  1021 I logserver: handle_notify_event, send msg [submit:trigger=0,bugtype=2,modulename=com.phikal.regex,level=1,testtype=NORMAL,path=/data/log/unzip/EVA-L09_EVA-L09C432B180_0000000000_20161110183700_crash,mode=1;]

The most prominent error being ZipFileCache: Open zip file:... failed, and then looking this kind of error up, I found this stackoverflow post. It seems to be tied, to Huawei devices, so it's not going to be easy to fix that. I know a guy with a Huawei, so I'll ask him if he could help me.

So all in all, I would further conclude there being no obvious tie to #29.

@OffifialMITX what device were you using when this happened? As far as I understood, it crashed after updating from 1.2, so was it totally fixed after @YgrekIx's suggestion to clear app data?

CrimsonFork commented 7 years ago

Yes, you go that right, I've updated from 1.2 to 1.3 directly after F-Droid released it. After I have cleared app data it never had problems with it anymore.

I'm using the Neffos C5L from TP-LINK .

the0ne commented 7 years ago
11-22 10:10:07.922 I/ActivityManager(881): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.phikal.regex/.Activities.GameActivity bnds=[111,1440][309,1656] (has extras)} from uid 10303 on display 0
11-22 10:10:07.972 I/ActivityManager(881): Start proc 839:com.phikal.regex/u0a181 for activity com.phikal.regex/.Activities.GameActivity
11-22 10:10:08.072 W/System  (839): ClassLoader referenced unknown path: /data/app/com.phikal.regex-1/lib/arm
11-22 10:10:08.145 E/AndroidRuntime(839): Process: com.phikal.regex, PID: 839
11-22 10:10:08.145 E/AndroidRuntime(839): java.lang.RuntimeException: Unable to resume activity {com.phikal.regex/com.phikal.regex.Activities.GameActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
11-22 10:10:08.145 E/AndroidRuntime(839):         at com.phikal.regex.Activities.GameActivity.getName(Unknown Source)
11-22 10:10:08.145 E/AndroidRuntime(839):         at com.phikal.regex.Activities.GameActivity.onResume(Unknown Source)
11-22 10:10:08.146 W/ActivityManager(881):   Force finishing activity com.phikal.regex/.Activities.GameActivity
11-22 10:10:08.741 W/ActivityManager(881): Activity pause timeout for ActivityRecord{9f98210 u0 com.phikal.regex/.Activities.GameActivity t424077 f}
11-22 10:10:09.605 I/ActivityManager(881): Process com.phikal.regex (pid 839) has died
11
phikal commented 7 years ago

Since @the0ne's log also refers to #29, and that is "closed" (see last comment), I'm going to close this issue too for now.