x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Android, UMF] MediaPlayer crashes on play

We're getting a crash directly when trying to play a video, using Unreal Media Framework, on an HTC Android device with version 5.0.1.

The crash involves JNI, see example line below.

      JNI ERROR (app bug): attempt to use stale local reference 0x900001 (should be 0x200001)

We found in several stack overflow threads that the stale local reference issue is common after switching from older APIs to the newer ones.

http://stackoverflow.com/questions/14765776/jni-error-app-bug-accessed-stale-local-reference-0xbc00021-index-8-in-a-tabl

We also noticed the same problem appearing on several Android 4.x devices when we deployed with minimum API version 14. Going back to API version 9 solves the problem, but not for Android 5.0.

Is it possible that the older API attempts to correct the stale reference by using backward compatibility, but that the feature may be gone in Android 5.0? Is this perhaps fixed in UE4.8? We are using Engine version 4.7.5.

See this text file with parts of the android log.

Some relevant log cat information

Product Version: Not Selected
Tags:
net.txt (2.9 kB)
more ▼

asked Apr 23 '15 at 04:09 PM in Bug Reports

avatar image

BaderThanBad
664 21 18 177

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This is likely due to the issue mentioned on stackoverflow; there is likely a missing NewGlobalRef in the movie code which is why using the older version in compatibility mode is working.

This isn't fixed in 4.8 at this time, but I'll see if I can track it down and fix it before it is released.

more ▼

answered Apr 23 '15 at 04:44 PM

avatar image

Chris Babcock STAFF
1k 11 110 35

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question