App Crashes when casting to one TV but not another

16 views
Skip to first unread message

Steve S

unread,
Oct 30, 2025, 6:53:10 PMOct 30
to OpenSongApp
Casting to my Kindle Fire stick works fine but OpenSong App crashes when casting to a friends Smart TV directly as soon as I start the App.  Everything else seems to cast fine.
I updated to 6.5.8 after I got home so I am not sure if it would still happen after updating. 
Thought I'd give this to you anyway.
Steve

Here is the Crash Log:
OpenSongApp version: V6.5.7
Android API: 34
Device: mid1108_ms_64
Crash time: Oct 28, 2025 4:37:08 PM

If possible, please give a brief description of what you were doing when the app crashed:

=============================
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:385)
at java.util.ArrayList.get(ArrayList.java:434)
at com.garethevans.church.opensongtablet.songprocessing.ProcessSong.columnSplitAlgorithm(ProcessSong.java:3049)
at com.garethevans.church.opensongtablet.songprocessing.ProcessSong.addViewsToScreen(ProcessSong.java:3390)
at com.garethevans.church.opensongtablet.secondarydisplay.SecondaryDisplay.showAllSections(SecondaryDisplay.java:1263)
at com.garethevans.church.opensongtablet.secondarydisplay.SecondaryDisplay.lambdaMethodAndArgsCaller.run(RuntimeInit.java:573)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1058)




Lester Darigan

unread,
Oct 30, 2025, 6:56:10 PMOct 30
to Steve S, OpenSongApp
I had a terrible experience with my open song app last night at band practice. couldn't get anything off of ultimate guitar, setlist display kept glanking out each song on the list with a white field, not sure if I missed an update or something as it was powered off for about a week until I turned it on just before I went to practice ... 

Lester Darigan
Empire P&H
Po box 94
Limerick Me 04048
207 415 0479
empir...@gmail.com

--
When responding to a post on the forum using your email, please make sure to click on the 'Reply all' button so that your response is also sent to the forum for other people to see the full conversation.
---
You received this message because you are subscribed to the Google Groups "OpenSongApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensongapp...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/opensongapp/cf47144a-721c-4ed6-9f49-823fbe9faf03n%40googlegroups.com.

Gareth Evans

unread,
Oct 31, 2025, 1:45:11 PMOct 31
to Steve S, OpenSongApp
Thanks for this Steve,

This crash looks like it was caused by the app trying to measure the height of a song section that didn't exist (specifically for an image/pdf).  I've put in a catch to try and fix this.  I wonder if the song you were casting was a normal OpenSong file when casting worked with the Fire stick, but then you tried to cast to the smart TV using an image/pdf song?

I don't have a fire stick to test, but as long as you can connect to a device, it shouldn't matter as the coding used is identical (the app simply sends a view to be displayed), but if the view has caused a crash, casting will stop along with the app.

Let me know if the next update fixes this issue

Gareth


Gareth Evans

unread,
Oct 31, 2025, 1:56:56 PMOct 31
to Lester Darigan, Steve S, OpenSongApp
Hi Lester,

I've tested UG import and as far as I can see it is working fine.  Make sure you select songs from UG listed as CRD (chord) files and if you see the popup for cookies, allow them.  Also, you will occasionally see a popup trying to get you to use the UltimateGuitar app.  Make sure you don't click on 'Open', but 'Continue' to use the web browser.

There have been some updates around theming of the app (true light/dark mode including the menus).  However, using Android's built in light/dark mode code there were issues whenever you returned to a song after using a WebView (what the UG import uses).  Android wrongly ignores the dark/light theme chosen in the app and tries to base it on your device default.  I then had to rewrite the app theme to implement dark/light modes manually.  This was fixed in v6.5.5 on 15th October, but the current version v6.5.8 released yesterday has a few more minor theme fixes.

Gareth


Reply all
Reply to author
Forward
0 new messages