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

arcore not working for s8 Hong Kong (SM-G9500) #64

Open ttommyth opened 6 years ago

ttommyth commented 6 years ago

I have installed the modified ARcore service apk and replaced the arcore_client.aar but the app showing the tango core keeps stopping message with the error log below.

09-10 12:47:31.189 17349-17349/com.google.ar.core.examples.java.helloar E/ACameraMetadata: getConstEntry: cannot find metadata tag 1310721 09-10 12:47:31.189 17349-17349/com.google.ar.core.examples.java.helloar E/ACameraMetadata: getConstEntry: cannot find metadata tag 1638401 09-10 12:47:31.190 17349-17349/com.google.ar.core.examples.java.helloar E/ACameraMetadata: getConstEntry: cannot find metadata tag 1310721 09-10 12:47:31.190 17349-17349/com.google.ar.core.examples.java.helloar E/ACameraMetadata: getConstEntry: cannot find metadata tag 1638401 09-10 12:47:31.190 17349-17349/com.google.ar.core.examples.java.helloar E/tango_camera_native: 2 is not a valid camera index. 09-10 12:47:31.190 17349-17349/com.google.ar.core.examples.java.helloar E/tango_camera_native: 3 is not a valid camera index.

paopao-yu commented 6 years ago

@tomthecarrot , I use the same phone, do the same thing as @ttommyth , but there is not error, just black screen , and showing "searching for surface"

Logs:

09-27 18:35:54.954 6279-6279/com.google.ar.core.examples.java.helloar V/ActivityThread: performLaunchActivity: mActivityCurrentConfig={0 1.0 themeSeq = 0 showBtnBg = 0 460mcc1mnc [zhCN#Hans] ldltr sw360dp w360dp h668dp 480dpi nrml long port ?dc finger -keyb/v/h -nav/h mkbd/h desktop/d s.5} E/SupportedDevices: Device calibration unavailable. Just kidding! ;) E/SupportedDevices: Device calibration unavailable. Just kidding! ;) I/tango_camera_native_jni: Attaching texture_window 0x7f8ba2cc10 D/TangoVhs: about to bind as vhs D/TangoVhs: finished bind as vhs I/SemDesktopModeManager: registerListener: android.view.ViewRootImpl$3@fc4ca0d D/ViewRootImpl@f682dc2[HelloArActivity]: ThreadedRenderer.create() translucent=false D/InputTransport: Input channel constructed: fd=65 D/ViewRootImpl@f682dc2[HelloArActivity]: setView = DecorView@358c7d3[HelloArActivity] touchMode=true D/ViewRootImpl@f682dc2[HelloArActivity]: dispatchAttachedToWindow D/ViewRootImpl@f682dc2[HelloArActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1080,2220] result=0x27 surface={isValid=true 548000875008} surfaceGenerationChanged=true D/ViewRootImpl@f682dc2[HelloArActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 548000875008} hwInitialized=true D/SurfaceView: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,72][1080,2076] result=0x7 surface={Surface(name=null)/@0xeb88c3c isValid=true 547803555840} D/ViewRootImpl@f682dc2[HelloArActivity]: Relayout returned: oldFrame=[0,0][1080,2220] newFrame=[0,0][1080,2220] result=0x1 surface={isValid=true 548000875008} surfaceGenerationChanged=false D/SurfaceView: Relayout returned: oldFrame=[0,72][1080,2076] newFrame=[0,72][1080,2076] result=0x1 surface={Surface(name=null)/@0xeb88c3c isValid=true 547803541504} W/art: Suspending all threads took: 6.108ms D/ViewRootImpl@f682dc2[HelloArActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 2220) ci=Rect(0, 72 - 0, 144) vi=Rect(0, 72 - 0, 144) or=1 D/ViewRootImpl@f682dc2[HelloArActivity]: MSG_WINDOW_FOCUS_CHANGED 1 D/ViewRootImpl@f682dc2[HelloArActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 548000875008} V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@57b10ac nm : com.google.ar.core.examples.java.helloar ic=null I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus D/InputTransport: Input channel constructed: fd=66 D/ViewRootImpl@f682dc2[HelloArActivity]: Relayout returned: oldFrame=[0,0][1080,2220] newFrame=[0,0][1080,2220] result=0x1 surface={isValid=true 548000875008} surfaceGenerationChanged=false D/SurfaceView: Relayout returned: oldFrame=[0,72][1080,2076] newFrame=[0,0][1080,2220] result=0x21 surface={Surface(name=null)/@0xeb88c3c isValid=true 547803877888}

hexicle commented 6 years ago

Move the call to location permission request from onResume to onMapReady. Full explanation on StackOverflow https://stackoverflow.com/a/47658545/2333621

tomthecarrot commented 6 years ago

@hexicle what is the location permission in relation to?