tomthecarrot / arcore-for-all

Google ARCore (dev preview 1) for "unsupported" Android devices
GNU General Public License v3.0
1.04k stars 145 forks source link

Not working on Samsung S8+ (SM-G9550) #76

Closed m0o0scar closed 1 year ago

m0o0scar commented 6 years ago

About the phone

About the problem

What happened?

  1. Successfully build and deploy the Hello ARCore Unity example scene following these guides: Getting Started with Unity | ARCore and ARCore for all - Unity Installation;
  2. Hello ARCore app runs on the phone;
  3. "Made with Unity" splash screen is shown;
  4. The app crash.
  5. Restart or reinstall the app won't solve.

What's in the log?

These are what I saw in the logcat during the app crash:

Force finishing activity com.oscartong.xr.helloar/com.unity3d.player.UnityPlayerActivity
Exception thrown during pause
android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
    at android.os.BinderProxy.transactNative(Native Method)
    at android.os.BinderProxy.transact(Binder.java:628)
    at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:876)
    at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1465)
    at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:4415)
    at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:4207)
    at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2354)
    at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:735)
    at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:571)
    at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:407)
    at com.android.server.am.AppErrors.crashApplication(AppErrors.java:346)
    at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:17238)
    at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)

Process com.oscartong.xr.helloar (pid 14968) has died(113,1053)
m0o0scar commented 6 years ago

So is there a plan or ETA for supporting S8+? Or we have to wait for further release of ARCore from Google?

tomthecarrot commented 6 years ago

It works on my S8+ and IIRC other people have confirmed it working on S8+. However, some S8+ devices do not work. We have an experiment that IMO is getting close to making ARCore run on most devices, albeit without accurate calibration at first. Please feel free to jump into the branch referenced in the README and help us!

pennomi commented 6 years ago

I can also confirm it works on my S8+. I found the app crashed when I didn't follow Google's Unity setup instructions to the letter. (For instance, you have to turn off multithreaded rendering in Unity.)

m0o0scar commented 6 years ago

@pennomi I did follow Google's instruction when setting up the unity project. I'll try the branch then :blush:

detomato commented 6 years ago

It works on my S8+(South East Asia) too.

hanqingzhen commented 6 years ago

Unlucky, my S8+(NRD90M.G9550ZCU1AQH6) does not work.It was stoped at screen with "Searching for surfaces ..."

January23 commented 6 years ago

S8+ G9550ZCU1AQF7 dose not work.

09-26 17:59:48.439 5010-5010/com.google.ar.core.examples.java.helloar D/SurfaceView: Relayout returned: oldFrame=[0,63][1080,2220] newFrame=[0,0][1080,2220] result=0x21 surface={Surface(name=null)/@0xb5466e7 isValid=true 546920659968} 09-26 17:59:48.471 5010-5010/com.google.ar.core.examples.java.helloar V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@d967aed nm : com.google.ar.core.examples.java.helloar ic=null 09-26 17:59:49.041 5010-5051/com.google.ar.core.examples.java.helloar W/System.err: android.os.DeadObjectException 09-26 17:59:49.041 5010-5051/com.google.ar.core.examples.java.helloar W/System.err: at android.os.BinderProxy.transactNative(Native Method) 09-26 17:59:49.041 5010-5051/com.google.ar.core.examples.java.helloar W/System.err: at android.os.BinderProxy.transact(Binder.java:628) 09-26 17:59:49.041 5010-5051/com.google.ar.core.examples.java.helloar W/System.err: at com.google.atap.tangoservice.ITangoVhs$Stub$Proxy.getTrackingSurface(ITangoVhs.java:111) 09-26 17:59:49.041 5010-5051/com.google.ar.core.examples.java.helloar W/System.err: at com.google.atap.tangoservice.TangoVhs.getTrackingSurface(TangoVhs.java:81) 09-26 17:59:49.042 5010-5051/com.google.ar.core.examples.java.helloar W/System.err: at com.google.tango.jni.TangoCameraNative$2.run(TangoCameraNative.java:88) 09-26 17:59:49.042 5010-5051/com.google.ar.core.examples.java.helloar W/System.err: at java.lang.Thread.run(Thread.java:762) 09-26 17:59:49.042 5010-5051/com.google.ar.core.examples.java.helloar I/tango_camera_native_jni: jint Java_com_google_tango_jni_TangoCameraNative_ConnectVhs(JNIEnv*, jobject, jobject, jobject) 09-26 17:59:49.042 5010-5051/com.google.ar.core.examples.java.helloar W/tango_camera_native_jni: tracking_surface == nullptr! Could break AR usecases

tschussler commented 6 years ago

I have successfully deployed using a Samsung SM-G955U1 model S8+ (unlocked model)

It's important that you remember to include the correct modified unitygar.aar file and remove the original one! Don't just rename it.

solidcinu commented 6 years ago

tschussler could You please explain me step by step what do You mean by that please??:)

detomato commented 6 years ago

I have 2 S8+, works on one, but not the other. Guessed its depends on your luck.

m0o0scar commented 6 years ago

@detomato Any difference on system version and other stuffs?