Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Crash application when open AR Screen

Discussion in 'AR' started by MunMeow, Oct 9, 2018.

  1. MunMeow

    MunMeow

    Joined:
    Oct 9, 2018
    Posts:
    2
    I creating an application with ARKit, I using XCode 10 and iOS 12. My application crashed when I open AR screen, and I checked log, it show like this :

    Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MTLDebugRenderCommandEncoder setTextures:withRange:]: unrecognized selector sent to instance 0x1100cc000'

    When I remove Metal in Graphics APIs, application will not crash, but it can not display camera ( only a pink screen).

    Please help me. Thank you ^^
     
  2. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
    Hi @MunMeow ,

    1) What type of device are you running on?
    2) What is the callstack at the time of the crash?
    3) What is the full console log when you are running the app and it crashes?
    4) Are you able to run the existing sample applications included in the Unity ARKit plugin?
    5) What version of Unity?

    Todd
     
    Last edited: Oct 9, 2018
  3. MunMeow

    MunMeow

    Joined:
    Oct 9, 2018
    Posts:
    2
    Hi Todd, thank you for your help.

    1) I'm running on iPhone 7 Plus with iOS 12.0
    2) I attached an image below
    3) I attached an text file below
    4) I'm able to run the existing sample applications included in the Unity ARKit plugin
    5) I using latest version of Unity is 2018.2.11f1

    Thank you so much for your help and I hope you will response for me soon.

    Screen Shot 2018-10-10 at 1.24.17 PM.png Screen Shot 2018-10-10 at 1.24.29 PM.png
     

    Attached Files:

  4. jimmya

    jimmya

    Joined:
    Nov 15, 2016
    Posts:
    793
    Actually looks like something wrong with one or more of your shaders or textures - this is not ARKit specific. You should be able to reproduce this on a project without this plugin in it.
     
  5. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
    Hi @MunMeow ,

    As previously mentioned, the issue is not related to ARKit. The mobile platform team would like to take a look.

    If you would please file a bug report, they would be the best to help you with your issue.

    https://unity3d.com/unity/qa/bug-reporting


    Todd