Search Unity

Video Unity video broke the program, unity bug?!?

Discussion in 'Audio & Video' started by Ikaro88, Feb 19, 2020.

  1. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    97
  2. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    155
    Hi!

    From what I understand, after an hour of play-and-stop for 2 seconds, there's a JNI table overflow leading to the crash shown in your logcat. It's hard to tell the exact cause, but if you submit a bug with the exact config (Unity version, device model, build setup) and media you're using, we'll be able to give this a try and possibly repair.

    It'd be useful to know if it happens on many devices, or just the one you've used for demonstration. Also, if by any chance you can have the problem scenario cause the trouble faster than 1h, it'll help a lot for trying to repeat over here. Maybe play for 0.5s instead of 2s, or possibly playing 2 clips at a time instead of one (although playing multiple clips may bring complexity in the evaluation...).

    Thanks for reporting this, and hope we can fix this quickly!

    Dominique Leroux
    A/V developer at Unity
     
    Ikaro88 likes this.
  3. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    97
    Hi, sorry for the delay, my boss don't belived me when I told him about this problem, so so i had problem last week to post a reply....



    This is the link to the project to an example project with this problem.
    https://drive.google.com/open?id=104ruHG9qXq5F5U2Ym8NuVmD8R2TgSQDX

    this is the relative apk It crash after 30 minutes of work
    https://drive.google.com/open?id=1KJJ-XARD_Yb3DYZ6YDtbkFto7AgPz7G2

    The problem occurs on my Huawei G7 and 2 rkm devices

    Can you please help me to understand the problem?
     
  4. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    97
    Hi I am very sorry about the delay in my reply, can you please help me?
     
  5. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    97
    Really? no one can help me? this problem is a unity bug?
     
  6. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    155
    Hi again,

    This issue (https://issuetracker.unity3d.com/is...minutes-of-playing-video-and-switching-scenes) appears to be the same problem you are describing. If you are not the one who submitted it, please do make sure you upvote it in order to help with bugfix prioritization.

    The reason for this bug is not fully understood yet. I'm not sure how much this can help, but there is a possibility that disabling "Multithreaded Rendering" on Android will work around the problem if this is acceptable in your context. You can disable this in the project settings, in the Player tab. This is under the "Other Settings" tab, in the Rendering section.

    Hope this helps,

    Dominique
     
  7. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    97
    Hi, since you replied to me I wanted to be sure of that, but also disabling "Multithreaded Rendering" the app still crash...
     
  8. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    155
    OK, thanks for the info; I will join this additional info to the bug report to help direct the research.

    Dominique
     
  9. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    97
    Hi, any news about how to fi this issue?

    I am making all the app with android studio but it take me a LOT of work...
     
unityunity