Android app created by unity3d is more likely to crash after playing a video -
i'm creating android app can play videos , view models. decide use unity3d finish it.
set 2 functions in several scenes , each scene has funciton. enter different scene, when want see different video or model. if see models, no matter how many models, can run successfully. if app more crashed when view models after see video(maybe 10m).
use handheld.playfullscreenmovie()
play videos in unity3d. error in android following.
11-05 22:33:51.589 14794-14807/? i/adreno: dequeuebuffer: dequeuebuffer failed
11-05 22:33:51.609 14794-14807/? w/adreno-gsl: : ioctl fd 29 code 0xc0140933 (ioctl_kgsl_timestamp_event) failed: errno 24 many open files
11-05 22:33:51.609 14794-14807/? w/adreno-gsl: : (1e, 14, 92844) fail 24 many open files
11-05 22:33:51.619 14794-14807/? e/surface: dequeuebuffer: igraphicbufferproducer::requestbuffer failed: -2147483646
it maybe there may open files? there video , should has been removed memory when change scene in unity3d. if have ideas it, please contact me. thank much!
added: think question same the question. bug of unity3d?
try this:
void start() { startcoroutine(showmotion()); } ienumerator showmotion() { handheld.playfullscreenmovie("motion.mp4", color.black, fullscreenmoviecontrolmode.canceloninput); yield return new waitforendofframe(); yield return new waitforendofframe();//not writing second yield return causes failure. }
Comments
Post a Comment