Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Etar is crashing. #176

Closed
natackx opened this issue Feb 21, 2017 · 24 comments
Closed

Etar is crashing. #176

natackx opened this issue Feb 21, 2017 · 24 comments
Labels

Comments

@natackx
Copy link

natackx commented Feb 21, 2017

Yesterday everything was fine with etar, today it´s crashing instantly. I don´t know what could be the problem, i didn´t changed anything ( major ) on my phone. ( Android 7.1.1 )

I deisntalled the app and installed it again, but the app is crashing instantly, after asking for calender access, with im allowing.

EDIT: Stock calender is still working.

@Gitsaibot
Copy link
Contributor

Which Etar version runs on your phone ? In a few days there will be version 1.0.10. Without a debug log it would be hard to determine why Etar crashes on your phone and I don't have a 7.1.1 device.

@natackx
Copy link
Author

natackx commented Feb 21, 2017

I have etar version 1.0.9 from F-Droid installed. The problem with the log is, that the app crashes before a have any chance to enter it. Is there any other way to enable the log?

@jspricke
Copy link
Member

you can use adb logcat or Catlog (in F-Droid), if you have root. There should be a backtrace in there. Would be great if you could send that (make sure it doesn't contain any personal data).

@natackx
Copy link
Author

natackx commented Feb 22, 2017

Here is the log of one failed startup with catlog. I filtered it for just etar events. If you need all of the log, pls ask.

rect4496

@jspricke
Copy link
Member

The red E is the error, but you need to press it, to toggle the information. Also, if you long press on the error, you can copy it the the clipboard and paste it here.

@natackx
Copy link
Author

natackx commented Feb 22, 2017

There are not more information given by catlog. You can see, i toggled everything by pressing the second button on the top.

I tested it again and the same errors appeared, but additionally this error was displayed:

02-22 21:13:16.244 E/InputDispatcher(2514): channel '52df068 ws.xsoh.etar/com.android.calendar.AllInOneActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

@jspricke
Copy link
Member

There should be a backtrace in there, maybe catlog can't show it. Do you have access through adb?
Also, can you try Etar 1.0.8 to see if the error is gone there?
I tried searching for the "Channel" problem, but it was only related to memory problems.

@natackx
Copy link
Author

natackx commented Feb 22, 2017

I tried Version 1.0.8 from F-Droid and it´s working. Afterwards i tried to install 1.0.9 again, but it´s crashing again at start up.

Ich could try adb tomorow.

@Gitsaibot
Copy link
Contributor

I tried it with the 7.1.1 simulator but there are no crashing after start up. So we need full debug log.

@chteufleur
Copy link

Got the same problem here.

Etar is working fine on version 1.0.8, and don't work on versions 1.0.9 and 1.0.10 on my phone (Android 7.1.1 me too).
I still can view and edit an existing event without crashing, but when I go to the principal view, Etar is crashing.

Here is logcat when I start Etar version 1.0.10 :

chteufleur@tank ~ $ adb logcat | grep etar02-24 20:14:06.017 743 1249 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=ws.xsoh.etar/com.android.calendar.AllInOneActivity (has extras)} from uid 10030 on display 0
02-24 20:14:06.070 743 793 I ActivityManager: Start proc 22996:ws.xsoh.etar/u0a147 for activity ws.xsoh.etar/com.android.calendar.AllInOneActivity
02-24 20:14:06.230 22996 22996 W System : ClassLoader referenced unknown path: /data/app/ws.xsoh.etar-2/lib/arm
02-24 20:14:06.733 22996 22996 E AndroidRuntime: Process: ws.xsoh.etar, PID: 22996
02-24 20:14:06.735 743 1949 W ActivityManager: Force finishing activity ws.xsoh.etar/com.android.calendar.AllInOneActivity
02-24 20:14:07.242 743 894 W ActivityManager: Activity pause timeout for ActivityRecord{5bf1784 u0 ws.xsoh.etar/com.android.calendar.AllInOneActivity t1148 f}
02-24 20:14:07.250 743 894 I WindowManager: Failed to capture screenshot of Token{f9f6b6d ActivityRecord{5bf1784 u0 ws.xsoh.etar/com.android.calendar.AllInOneActivity t1148 f}} appWin=Window{6e766d9 u0 ws.xsoh.etar/com.android.calendar.AllInOneActivity} drawState=1

Here is logcat of Etar version 1.0.8 which is working :

chteufleur@tank ~ $ adb logcat | grep etar
02-24 20:04:38.018 743 1949 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.APP_CALENDAR] flg=0x10000000 cmp=ws.xsoh.etar/com.android.calendar.AllInOneActivity bnds=[24,317][88,381]} from uid 10054 on display 0
02-24 20:04:38.068 743 1936 I ActivityManager: Start proc 22399:ws.xsoh.etar/u0a147 for activity ws.xsoh.etar/com.android.calendar.AllInOneActivity
02-24 20:04:38.167 22399 22399 W System : ClassLoader referenced unknown path: /data/app/ws.xsoh.etar-1/lib/arm
02-24 20:04:38.730 743 953 I ActivityManager: Displayed ws.xsoh.etar/com.android.calendar.AllInOneActivity: +688ms

@jspricke
Copy link
Member

@chteufleur thanks for your report as well! Is one of you able to build Etar from git and do a bisect? Otherwise, please contact me via mail (in my profile) and I will send you debug builds. Thanks!

@zoff99
Copy link

zoff99 commented Feb 25, 2017

you could add a very simple crash capture like i did with Antox:

https://github.com/zoff99/Antox/blob/zoff99/Antox_v0.25.2_fullsource/app/src/main/java/chat/tox/antox/MainApplication.java

its just 1 small function and a line in the AndroidManifest.xml added to the <application> tag:

android:name="chat.tox.antox.MainApplication"

it will save the crashlog file to SD card (works without root)

@jspricke
Copy link
Member

Interesting, the other option would be https://github.com/ACRA/acra, that's what f-droid is using, for example.

@zoff99
Copy link

zoff99 commented Feb 25, 2017

oh no, please don't use ACRA.

@jspricke
Copy link
Member

Any reason why (email is fine, as well)?

@jspricke jspricke added the bug label Feb 26, 2017
@jspricke
Copy link
Member

Thanks to @chteufleur for helping with the bisect of this one. Most probably the broken commit is: b79f09d. @Gitsaibot could check if there is something wrong with it or if you find other commits related to it?

@chteufleur
Copy link

Thanks to the commit message, I check if my Android system allow Etar to acces the stockage. The permission was not allowed.
I just enable it, and Etar version 1.0.10 is working fine for me.

@Gitsaibot
Copy link
Contributor

@N3dal can you confirm this ?

@natackx
Copy link
Author

natackx commented Feb 28, 2017

Sorry for answering so late and for not helping solving the problem. I was very busy and had no time for this.
But im glad to say that @chteufleur solution is working for me as well. Thank you.

@N07070
Copy link

N07070 commented Mar 9, 2017

Same probleme here with the last version.

@natackx
Copy link
Author

natackx commented Mar 9, 2017

@N07070 Have you tried the work around? Didn´t that work for you?

@N07070
Copy link

N07070 commented Mar 23, 2017

@N3dal indeed, the permission was not put in place.
Still, there is a bug : Etar should not crash without warning in case of a missing permission.
Thanks for the fix.

jspricke added a commit to jspricke/Etar-Calendar that referenced this issue May 14, 2017
The ImportActivity needs READ_EXTERNAL_STORAGE upon start if
EXPORT_SDCARD_DIRECTORY (/sdcard/CalendarEvents) exists. As we need
write permission for export anyhow, this simply asks for both
permissions at startup.
@jspricke
Copy link
Member

I think I was able to reproduce this. We need storage permission if the directory /sdcard/CalendarEvents exists. This should be fixed by 5a9b46b.

@N3dal @chteufleur can you check if you have that directory?

@natackx
Copy link
Author

natackx commented May 14, 2017

@jspricke yes, i have this directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants