Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums will be revoked at the discretion of Oculus staff.
New to the forums? Click here to read the How To guide. -- Developers click here.

[GearVR / Go] Pressing back button crashes the app only in distribution UE4 4.19.2

maro87mqmaro87mq Posts: 12
NerveGear
Hello,

I'm having trouble with back button functionality. If user presses it shortly I execute command (through blueprints) 'vr.oculus.ShowQuitMenu', otherwise it is handled by oculus SDK to display global menu and it works fine in development, but when I prepare the app for distribution and send it to review process I get back that the app is crashing when back is pressed.

Has anyone encountered such isssue? 
I've read that it was the case in earlier versions of the engine because JNI was detaching, but it was fixed, but maybe there's also a place where this is happening?

I'm using binary distribution of UE4 4.19.2 and testing the development build on Samsung Galaxy S7.

Tagged:

Comments

  • imperativityimperativity Posts: 3,587 Valuable Player
    Hi,

    Let me check with our integrations team and see if they can add context to this crash you are experiencing. If this turns out to be a new bug report, I may need a copy of your project to evaluate internally.
  • imperativityimperativity Posts: 3,587 Valuable Player
    @maro87mq

    Could you try replacing your libOVRPlugin.so with the attached file below and let me know if your issue is resolved?

    https://www.dropbox.com/s/bngotaoi8lm9mrr/libOVRPlugin.rar?dl=0

  • maro87mqmaro87mq Posts: 12
    NerveGear
    Ok, thank you. I will replace it and send a new build for review.
  • maro87mqmaro87mq Posts: 12
    NerveGear
    Sorry to keep you waiting but I've just got back the results and it looks like the entitlements check that worked before isn't working anymore. Review result:

    "Due to a technical issue in our test results reporting system, we're unable to provide a formal test result at this time. The VRC failures and feedback below is from our technical review team:

    VRC.Mobile.Security.1 - Entitlements check"

    The check is performed with Verify Entitlements blueprint node if it's true the game loads if false, the message is displayed about wrong entitlements and after 3 seconds the app is closed.

    Should I assume this is the only problem or no other tests were performed so the issue with back button could still be present?
  • imperativityimperativity Posts: 3,587 Valuable Player
    @maro87mq

    Just to confirm here: your previous issue has been resolved with the replacement file, correct?

    Can you verify that your DefaultEngine.ini file has the settings mentioned in this blog?
  • maro87mqmaro87mq Posts: 12
    NerveGear
    @imperativity

    Yes, it looks like the replacement file did solve the back button issue since it wasn't mentioned in the review results.

    I have the entry present in DefaultEngine.ini file with correct app ID. I didn't make any changes there because it wasn't an issue in previous submissions.
  • imperativityimperativity Posts: 3,587 Valuable Player
    @maro87mq

    OK--can you try running an adb logcat on your device as it boots up?

    There should be information there pointing to the issue being encountered.
  • maro87mqmaro87mq Posts: 12
    NerveGear
    @imperativity

    I've attached logs. I don't see there anything suspicious, but during our tests, the app runs fine, the entitlements check is failing when logged on a different account (the app quits) and passing if logged on a dev account (app starts as usual).
    I'm not really sure what's the issue during review process because it looks like it works correctly.

  • imperativityimperativity Posts: 3,587 Valuable Player
    @maro87mq

    Thanks for providing this for me so quickly. You're right I'm not seeing anything in your logs that would show this failing for entitlement. I may need to source your project for internal review and sync with our QA team on what they are seeing fail on their end.
  • maro87mqmaro87mq Posts: 12
    NerveGear
    @imperativity
     I've sent you a PM regarding the sources.
  • maro87mqmaro87mq Posts: 12
    NerveGear
    edited July 2018
    @imperativity ;
    Before sending you build sources, I've also pushed to certification new version without any changes and I've just go message about it passing the review.

    So either there was some wierd issue that I cannot explain or the review process is not fully deterministic.

    Either way, thank you for your help.

    The replacement file is the resolution to this back button crash issue.

    libOVRPlugin replacement file for UE4 4.19:
    https://www.dropbox.com/s/bngotaoi8lm9mrr/libOVRPlugin.rar?dl=0
  • motorsepmotorsep Posts: 1,298 Oculus Start Member
    maro87mq said:
    @imperativity ;
    Before sending you build sources, I've also pushed to certification new version without any changes and I've just go message about it passing the review.

    So either there was some wierd issue that I cannot explain or the review process is not fully deterministic.

    Either way, thank you for your help.

    The replacement file is the resolution to this back button crash issue.

    libOVRPlugin replacement file for UE4 4.19:
    https://www.dropbox.com/s/bngotaoi8lm9mrr/libOVRPlugin.rar?dl=0
    I'd be surprised if anyone will download DLL from someone's dropbox (in this age of Internet security issues). Where did you get this DLL file originally (so that I could get it from the original source and not from the dropbox) ?
  • maro87mqmaro87mq Posts: 12
    NerveGear
    It was uploaded by imperativity who is an oculus staff member.
    I know it was risky but he's a member of oculus and I think it was in mutual interest to solve issues that arise, that's what this forum is about.
  • bologendhengbologendheng Posts: 2
    NerveGear
    Hi, I have same issue. I tried to download dropbox file but I can't open the libOVRPlugin since there's warning on rar file "the archieve damaged" message. Can you re-upload the updated file again. Thanks!
Sign In or Register to comment.