TCMP: IllegalStateException if to view full screen video as last track, close & reopen TCMP, tap that track

Support for Android version of Total Commander

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1625
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

TCMP: IllegalStateException if to view full screen video as last track, close & reopen TCMP, tap that track

Post by *DrShark »

To reproduce:
0. Open TC Media Player, put the video file as a last queue track.
1. If last queue track is a horizontal video, rotate the screen to horizontal orientation,
and if it's vertical one, continue in vertical orientatton.
2. Start the playback of that last queue track. It will start in full screen mode. Let player to play it completely.
3. When playback is finished, press Back Android key. This will close the player and switch you to TC4A if you started the player from it.
4. Open TC Media Player again (e.g. with internal command 137), it will be opened in playlist mode.
5. Tap on the last track in playlist: TCMP won't play the file, instead IllegalStateException toast error will appear.
Since this moment and until the restart of TC4A (better with internal command 155/killProcess), this IllegalStateException may appear on different tracks of playlist.

Reproduced on devices running Android 5.1 and 10.
Android 4.3.1 no root, kernel 08.09.2016; Win7 Home Premium SP1 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39988
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TCMP: IllegalStateException if to view full screen video as last track, close & reopen TCMP, tap that track

Post by *ghisler(Author) »

Not confirmed on Android 10, but reproduced on Android 6.0. I will try to fix it.
Author of Total Commander
http://www.ghisler.com
User avatar
matixx
Power Member
Power Member
Posts: 1079
Joined: 2003-03-21, 02:37 UTC
Location: ....
Contact:

Re: TCMP: IllegalStateException if to view full screen video as last track, close & reopen TCMP, tap that track

Post by *matixx »

Have this exception so many times before but Do not know how to reproduce this.

Thank you 2DrShark

Android10
#101512
User avatar
DrShark
Power Member
Power Member
Posts: 1625
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: TCMP: IllegalStateException if to view full screen video as last track, close & reopen TCMP, tap that track

Post by *DrShark »

history2.txt wrote:2020-08-31 Fixed: Media Player: close player after last track ends, otherwise playing the same track again may fail
I cannot reproduce IllegalStateException anymore on Android 10 device with TC4A 3.10 beta 8, and usually I don't get it on Android 5.1 device now (though during many tests I encountered it twice, but so far I can't get a reproduce way for it, maybe somehow it is related to another device issue mentioned in the topic https://ghisler.ch/board/viewtopic.php?f=22&t=72707).
Android 4.3.1 no root, kernel 08.09.2016; Win7 Home Premium SP1 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
Post Reply