google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 403 forks source link

Instant Preview does not work on Mac (Unity Editor crash) #710

Open jtfrom9 opened 4 years ago

jtfrom9 commented 4 years ago

SPECIFIC ISSUE ENCOUNTERED

Unity Editor crash when just start Instant Preview with latest Unity and 1.16.0.

VERSIONS USED

STEPS TO REPRODUCE THE ISSUE

  1. Create New Project
  2. Setup ARCore SDK according to here
  3. Open HelloAR Scene
  4. Play

WORKAROUNDS (IF ANY)

No problem with 2019.3.0f6. After 2019.3.1 seems to have problems

ADDITIONAL COMMENTS

attached detailed crash log

crash.log Editor.log

z-a-p-k-i-n-g commented 4 years ago

Even I am facing the same issue, with SDK v1.18

jtfrom9 commented 4 years ago

according to https://github.com/googlesamples/arcore-depth-lab Instant Preview is not enabled for Depth API yet. so 1.18 has another problems

Gjohnson6 commented 4 years ago

This issue should be fixed in 1.19. Feel free to reopen this issue if you have any more problems.

jtfrom9 commented 3 years ago

@Gjohnson6 Do you mean the only thing that will be fixed in 1.19 is the point mentioned in https://github.com/googlesamples/arcore-depth-lab that instant preview is not enabled for the Depth API yet ? I'm hoping that the issue I first pointed out in 1.16 (same issue in 1.17) will be fixed. Instant Preview doesn't work at all on mac (except for 2019.3.0f6 and earlier).

Gjohnson6 commented 3 years ago

The editor crashing when running Instant Preview on Mac is what will be fixed with 1.19, sorry for not being specific. The Depth API will still not be enabled when using Instant Preview.

jtfrom9 commented 3 years ago

@Gjohnson6 not fixed yet with 1.19. please reopen this issue. Error message is completely same with my first report. Please try to repro according to my step.

first messages on crash log are..

Process: Unity [33445] Path: /Applications/Unity/*/Unity.app/Contents/MacOS/Unity Identifier: com.unity3d.UnityEditor5.x Version: Unity version 2019.4.8f1 (2019.4.8f1) Code Type: X86-64 (Native) Parent Process: Unity Hub [69666] Responsible: Unity [33445] User ID: 502

Date/Time: 2020-09-01 11:14:35.594 +0900 OS Version: Mac OS X 10.14.6 (18G6020) Report Version: 12 Anonymous UUID: 788A264A-C4A1-C179-37FA-48B2C49BAA04

Sleep/Wake UUID: F9DC4923-82DC-4D75-B8AB-1820D3396DFC

Time Awake Since Boot: 1500000 seconds Time Since Wake: 330000 seconds

System Integrity Protection: enabled

Crashed Thread: 37 UnityGfxDeviceWorker

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information: -[MTLIGAccelCommandBuffer blitCommandEncoder]:380: failed assertion `Already have uncommitted encoder'

jtfrom9 commented 3 years ago
Screen Shot 2020-09-01 at 11 59 46

When I saw this, editor did not cash (but black screen). Has the use of instant preview changed? I don't think the Switch Platform was needed before. If so, I hope this page is updated

https://developers.google.com/ar/develop/unity/instant-preview

jtfrom9 commented 3 years ago

Screen Shot 2020-09-01 at 12 15 33 And crash case (Switch Platform to Android), I saw this for a second, then CRASH

Gjohnson6 commented 3 years ago

The Instant Preview documentation does mention setting the build target to Android in the troubleshooting section, although it might be good if we moved it to the Using Instant Preview section: "In Unity's Build Settings, your build platform is set to Android and you have player settings enabled for ARCore. If not, see the Unity quickstart guide for configuration details."

As for the crash, I will have to look into this and see if I can reproduce it.

Gjohnson6 commented 3 years ago

Hey, sorry for the long delay, I haven't been able to reproduce this issue with ARCore 1.19. Can you go to the Help menu in the Unity Editor and generate a bug report using the Capture ARCore Bug Report button and attach the file here? Thanks.

jtfrom9 commented 3 years ago

Let me make sure your environment. What version your mac is ?

jtfrom9 commented 3 years ago

And please provide whole project that works correctly if possible

Gjohnson6 commented 3 years ago

I'm running macOS 10.15.6 and I'm using the sample scenes in the 1.19 SDK likeHelloAR to test.

jtfrom9 commented 3 years ago

arcore_unity_editor_bug_report_20200930_050911.txt @Gjohnson6 Sorry for late, attached.