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

Crash when navigating to a calendar event day #8

Closed
nizarus opened this issue Apr 21, 2024 · 19 comments
Closed

Crash when navigating to a calendar event day #8

nizarus opened this issue Apr 21, 2024 · 19 comments

Comments

@nizarus
Copy link

nizarus commented Apr 21, 2024

I successfully selected a calendar (see #7). When I return to the main window and navigate to a day containing an event from that calendar the application crashes.
With my calendar application I add an event to the selected calendar (today date) and the application crashes on start.

@newhinton
Copy link
Owner

Can you capture android-logs by any chance? I can help you out if you need help.

@nizarus
Copy link
Author

nizarus commented Apr 21, 2024

How to do that ?

@newhinton
Copy link
Owner

You need to install the "android debug bridge (adb)". You can either use the standalone tools if you are comfortable using the command line, or directly by installing android studio. I really do recommend to use android studio, it provides a gui to actually access the logs.

After installing you need to enable usb-debugging on your device (possibly also enable developer tools first), and after connecting it to the pc with android studio, you can start the app so that it crashes, and then you should be able to copy the log.

Feel free to ask questions when you are getting stuck at some point, i am glad to help.

@nizarus
Copy link
Author

nizarus commented Apr 21, 2024

I used adb before to install custom ROM on my old smartphones. Never used to debug applications. I will try and come back to you.

@nizarus
Copy link
Author

nizarus commented Apr 22, 2024

I'm connected to my device with adb, but can't figure how to launch the application and get the log.

@newhinton
Copy link
Owner

You can use the following:

adb -s "deviceid" logcat | grep time

the -s "deviceid" is only required if you have more than one device attached.

| grep time is optional, but it makes finding the appropriate logs more easy

The minimal example would be:

adb logcat

which should immediately start showing your device's logs if you have debug mode enabled.
Then you can start the app and the crash-log should just show up.

@nizarus
Copy link
Author

nizarus commented Apr 22, 2024

Log file attached
logTimedSilence.txt

@newhinton
Copy link
Owner

Is it only an specific calendar? Or all of them?

@newhinton
Copy link
Owner

Did you use grep on the log?

@nizarus
Copy link
Author

nizarus commented Apr 22, 2024

1 - I only tested with calendar. The application don't crash when the calendar is not added.
2 - Yep.

@newhinton
Copy link
Owner

Can you check if this also occurs with other calendars?

Could you get a log without grep? I think it cut out some stuff.

Thanks!

@nizarus
Copy link
Author

nizarus commented Apr 23, 2024

Tested with one other calendar and it crashes.
Full log : https://pastebin.com/Dn1RcaR0

@newhinton
Copy link
Owner

Can you test this build:

TimedSilence-release-v3.1.2-debug.zip

This should at least capture the exception itself, and log which calendar event breaks this. It's a bit hard to debug because i obviously dont have access to your device, but this will let us get a bit closer.

The build is signed as the release, so you can just install it as an update, but i have not published it's sources.

@notIkibo
Copy link

logcat.txt

  1. Samsung Galaxy S22, Android 14
  2. It was the only rule
  3. Now that it's Wednesday (for me), I can't open the app completely. It instantly crashes
  4. Will test the APK, but not now
  5. What a weird bug indeed

@nizarus
Copy link
Author

nizarus commented Apr 24, 2024

@newhinton : No more crashes with 3.1.2.
But, the DND status is well activated at the beginning of the event, and remain active after its end.

@newhinton
Copy link
Owner

newhinton commented Apr 24, 2024

@nizarus This is expected. You should now have more logging output, especially with the StateGenerator-tag.

It should look something like this:
VolumeState(startTime=x, endTime=y, duration=z, state=a, reason=b, reasonDescription=c)

Could you post that? Please check that reasonDescription does not contain sensitive private information!

Thank you for your patience!

@newhinton
Copy link
Owner

@nizarus I have an idea what might cause this. Can you confirm that the event that is problematic starts at the selected day, but ends on the next one?

@notIkibo
Copy link

It does fix it

@nizarus
Copy link
Author

nizarus commented Apr 29, 2024

Sorry for the late reply.
2- No, the event starts and ends in the same day.
1- Found this in the log file:
VolumeState(startTime=16:47, endTime=00:00, duration=25979790, state=UNSET, reason=UNDEFINED, reasonDescription='')
The concerned event should start at 15:47 and ends at 16:47

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

No branches or pull requests

3 participants