Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

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

Open
jtfrom9 opened this issue Apr 17, 2020 · 14 comments
Open

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

jtfrom9 opened this issue Apr 17, 2020 · 14 comments

Comments

@jtfrom9
Copy link

jtfrom9 commented Apr 17, 2020

SPECIFIC ISSUE ENCOUNTERED

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

VERSIONS USED

  • Unity: 2019.3.10f1
  • ARCore SDK for Unity: 1.16
  • Device manufacturer, model, and O/S: MacOS 10.14.6
  • ARCore: 1.16.200302046
    On Windows, use: adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"
    On macOS, use: adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
  • Output of adb shell getprop ro.build.fingerprint: samsung/dreamqltezh/dreamqltechn:8.0.0/R16NW/G9500ZHU3CRG5:user/release-keys

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
Copy link

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

@jtfrom9
Copy link
Author

jtfrom9 commented Jul 5, 2020

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
Copy link

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

@jtfrom9
Copy link
Author

jtfrom9 commented Jul 27, 2020

@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).

@jtfrom9 jtfrom9 changed the title Unity Editor crash when just start Instant Preview with latest Unity and 1.16.0. Instant Preview does not work on Mac (Unity Editor crash) Jul 27, 2020
@Gjohnson6
Copy link

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
Copy link
Author

jtfrom9 commented Sep 1, 2020

@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
Copy link
Author

jtfrom9 commented Sep 1, 2020

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
Copy link
Author

jtfrom9 commented Sep 1, 2020

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
Copy link

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 Gjohnson6 reopened this Sep 2, 2020
@Gjohnson6
Copy link

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
Copy link
Author

jtfrom9 commented Sep 19, 2020

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

@jtfrom9
Copy link
Author

jtfrom9 commented Sep 19, 2020

And please provide whole project that works correctly if possible

@Gjohnson6
Copy link

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

@jtfrom9
Copy link
Author

jtfrom9 commented Sep 30, 2020

arcore_unity_editor_bug_report_20200930_050911.txt
@Gjohnson6 Sorry for late, attached.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants