Author Topic: Samsung calendar app crashes when viewing exchange calendar items  (Read 5559 times)

chris3g

  • Newbie
  • *
  • Posts: 8
As it says in in the subject...

This is the native Samsung calendar app on a galaxy s6.
The calendar items sync correctly and show in the daily,weekly, or monthly view, but the calendar crashes when trying to open an individual item.
The crash only occurs with events synced from aqua mail ( i have a single EWS account).
If i download Google's calendar app, it works ok.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #1 on: November 25, 2015, 08:37:36 pm »
What did they fuck up this time? :)

I have an S6, so hopefully will be able to see the issue.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #2 on: November 25, 2015, 08:59:11 pm »
Wasn't able to reproduce.

Samsung S6
Android 5.1.1
ROM version G925FXXU3COI9
S Planner version 3.1.1.15071611 (system settings -> apps)

Is there any pattern?

All day events, repeating events, with reminders (I've tried all of these)? Something else?

Any way for you to capture a log file (stack trace) for the crash (since it's not AquaMail crashing, it's not recorded in my app's crash log)?


Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

chris3g

  • Newbie
  • *
  • Posts: 8
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #3 on: November 25, 2015, 09:24:09 pm »
Thank you for looking into it.

My device info is:
Android 5.1.1
Build LMY47X.G925TUVU3D0J7
S Calendar version 3.1.1.15101211

There is no pattern, it happens with every event synced from my EWS account. I tried all-day, repeating/non-repeating, reminder/no reminder - they all crash.

I took a screen capture although i guess it will not be helpful in determining anything - https://youtu.be/sOI8yGSEYzs [nofollow]

i'm not sure if there is any way to capture a trace, being unrooted.



Wasn't able to reproduce.

Samsung S6
Android 5.1.1
ROM version G925FXXU3COI9
S Planner version 3.1.1.15071611 (system settings -> apps)

Is there any pattern?

All day events, repeating events, with reminders (I've tried all of these)? Something else?

Any way for you to capture a log file (stack trace) for the crash (since it's not AquaMail crashing, it's not recorded in my app's crash log)?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #4 on: November 25, 2015, 09:49:37 pm »
Yep that's a crash alright, but without a stack trace from S Planner -- I'm completely blind.

And that's a slightly different S Planner version, too, the one you have is newer.

Since 4.1, apps can't read other app's entries from the system log -- and so all the "view system log" apps became useless.

Getting around requires either a rooted device, or commands that need to be run through "adb" (a component of Android development tools), they really made it complicated.

---

Getting back to my trying to reproduce:

What if you create an event which: has no attendees, no reminders, no location, no category (color) does not repeat?

Would that crash too?

What about with an attendee, and the rest the same?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

chris3g

  • Newbie
  • *
  • Posts: 8
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #5 on: November 26, 2015, 12:23:28 am »
Both scenarios crash for me. I actually can't find any combination of event settings which does not crash.

I will look into logging through adb.

chris3g

  • Newbie
  • *
  • Posts: 8
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #6 on: November 26, 2015, 12:42:11 am »
Ok i was able to get an ADB log.

I see some stuff in there that looks relevant, so maybe it will be helpful.

E/AndroidRuntime( 5284): FATAL EXCEPTION: main
E/AndroidRuntime( 5284): Process: com.android.calendar, PID: 5284
E/AndroidRuntime( 5284): java.lang.ArrayIndexOutOfBoundsException: length=12; index=12

If there is anything else that can help please let me know.

Thanks again for looking into this.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #7 on: November 26, 2015, 12:50:31 am »
Wow! Thanks, found the stack trace.

E/AndroidRuntime( 5284): java.lang.ArrayIndexOutOfBoundsException: length=12; index=12
E/AndroidRuntime( 5284):    at com.android.calendar.event.bv.l(EditEventView.java:5568)
E/AndroidRuntime( 5284):    at com.android.calendar.event.bv.a(EditEventView.java:4025)
E/AndroidRuntime( 5284):    at com.android.calendar.event.bv.a(EditEventView.java:3734)
E/AndroidRuntime( 5284):    at com.android.calendar.event.bb.a(EditEventFragment.java:1572)
E/AndroidRuntime( 5284):    at com.android.calendar.event.bb.f(EditEventFragment.java:1552)
E/AndroidRuntime( 5284):    at com.android.calendar.event.bb.f(EditEventFragment.java:95)
E/AndroidRuntime( 5284):    at com.android.calendar.event.br.onQueryComplete(EditEventFragment.java:1217)


The code is obfuscated, so all I can tell is:

- It's loaded the event's data and is doing *something* with that data

- It's running out of bounds on an array access -- the array has 12 elements (numbered 0..11), the code is trying to access #12, past the end

I just pulled up Google's original file, EditEventView.java, it has just 1851 lines, while the stack trace from Samsung's version has line numbers all over 3000 and more (*a lot* of stuff added). I'm not finding much to do with arrays either.

So let me ask then:

What does this event (or something else related to AquaMail) has twelve of? Or maybe eleven or thirteen?
« Last Edit: November 26, 2015, 12:53:02 am by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

chris3g

  • Newbie
  • *
  • Posts: 8
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #8 on: November 26, 2015, 12:57:23 am »
yes, that's it!

It's the categories. I have 13 of them. None are assigned to the event, but they exist.

For testing, i deleted a few (so now there are <12), and i can view events without crash.

The deleted categories are going to sync back though, we run some software on exchange that pushes the category list out to the clients.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Samsung calendar app crashes when viewing exchange calendar items
« Reply #9 on: November 26, 2015, 01:06:45 am »
Wow.

Debugging someone else's app, remotely, and getting a result.

You should be proud of yourself -- and I am too.

FWIW, I just expanded my Exchange Calendar's list of categories to 13, and still worked, no crash, on my S6.

Tried 12 and 11, still no crash.

Must really be something they did in the newer version.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/