Monday, 27 August 2018

crash log: InternalError in MediaPlayer.setSubtitleAnchor

Seeing the following crash log pop up quite often:

java.lang.InternalError: 
  at java.lang.Thread.nativeCreate (Native Method)
  at java.lang.Thread.start (Thread.java:733)
  at android.media.MediaPlayer.setSubtitleAnchor (MediaPlayer.java:3039)
  at android.media.MediaPlayer.scanInternalSubtitleTracks (MediaPlayer.java:3240)
  at android.media.MediaPlayer.prepare (MediaPlayer.java:1442)
  at android.media.MediaPlayer.create (MediaPlayer.java:1046)
  at android.media.MediaPlayer.create (MediaPlayer.java:1012)
  ...

I call MediaPlayer.create with the context/resource parameters. It works fine for me and for 95% of users. One thing to note is that I do get the dreaded

 E/MediaPlayer: Should have subtitle controller already set

log message which is the topic of many, many StackOverflow questions. I currently have been ignoring it like most answers tell me to - but if scanInternalSubtitleTracks is creating InternalError crashes, maybe I shouldn't?



from crash log: InternalError in MediaPlayer.setSubtitleAnchor

No comments:

Post a Comment