Android Expo app crashes after Facebook login

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): Android

Hi everyone, I’m having some problems with Facebook login on Android.
Expo client app crashes after login both on real device and the emulator, on iOS everything is fine.
I followed the instructions found in the expo-facebook documentation and I can’t find nothing wrong inside my project.

This is my code

import React, { useState } from 'react';
import { StyleSheet, Text, View, Image, TouchableOpacity, ActivityIndicator, Dimensions } from 'react-native';
import * as Facebook from 'expo-facebook';

var { height, width } = Dimensions.get("window");


export default function FacebookAuth() {

    const [isLoggedin, setLoggedinStatus] = useState(false);
    const [userData, setUserData] = useState(null);
    const [isImageLoading, setImageLoadStatus] = useState(false);

    facebookLogIn = async () => {
        try {
            const {
                type,
                token,
                expires,
                permissions,
                declinedPermissions,
            } = await Facebook.logInWithReadPermissionsAsync('xxxxxxxx', {
                permissions: ['public_profile'],
            });
            if (type === 'success') {
                // Get the user's name using Facebook's Graph API
                fetch(`https://graph.facebook.com/me?access_token=${token}&fields=id,name,email,picture.height(500)`)
                    .then(response => response.json())
                    .then(data => {
                        setLoggedinStatus(true);
                        setUserData(data);
                    })
                    .catch(e => console.log(e))
            } else {
                // type === 'cancel'
            }
        } catch ({ message }) {
            alert(`Facebook Login Error: ${message}`);
        }
    }

    logout = () => {
        setLoggedinStatus(false);
        setUserData(null);
        setImageLoadStatus(false);
    }

    return (
        isLoggedin ?
            userData ?
                <View style={styles.container}>
                    <View style={styles.userBox}>
                        <View style={styles.profileImage}>
                            <Image
                                style={{ flex: 1, borderRadius: 100 }}
                                source={{ uri: userData.picture.data.url }}
                                onLoadEnd={() => setImageLoadStatus(true)}
                            />
                            <ActivityIndicator size="large" color="#0000ff" animating={!isImageLoading} style={{ position: "absolute" }} />

                        </View>
                        <View style={{ flex: 1 }}>
                            <Text style={styles.textUserBoldStyle}>{userData.name.toUpperCase()}</Text>
                            <Text style={styles.textUserRegularStyle}>Utente n° 99999</Text>
                        </View>
                        <TouchableOpacity style={styles.logoutBtn} onPress={logout}>
                            <Text style={{ color: "#fff" }}>Logout</Text>
                        </TouchableOpacity>


                    </View>
                </View>

                :
                null
            :
            <View style={styles.container}>
                <TouchableOpacity style={styles.loginBtn} onPress={facebookLogIn}>
                    <Text style={{ color: "#fff" }}>Login with Facebook</Text>
                </TouchableOpacity>
            </View>
    );
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        alignItems: 'center',
        justifyContent: 'center',
    },
    loginBtn: {
        backgroundColor: '#4267b2',
        paddingVertical: 10,
        paddingHorizontal: 20,
        borderRadius: 20
    },
    logoutBtn: {
        backgroundColor: '#bababa',
        paddingVertical: 10,
        paddingHorizontal: 20,
        borderRadius: 20,
        position: "absolute",
        bottom: 0,
        height: '20%'
    },
    userBox: {
        flex: 1,
        justifyContent: "center",
        alignItems: "center",
        flexDirection: "row",
      },
      textUserBoldStyle: {
        color: "#000",
        fontFamily: "MontserratBold",
        fontSize: height * 0.018,
      },
      textUserRegularStyle: {
        color: "#121212",
        fontFamily: "MontserratRegular",
        fontSize: height * 0.013,
      },
      profileImage: {
        marginLeft: 30,
        marginRight: 20,
        marginVertical: height * 0.04,
        width: "20%",
        height: undefined,
        aspectRatio: 1,
        alignSelf: "center",
        backgroundColor: "yellow",
        borderRadius: 100,
      },
});

This is my app.json

{
  "expo": {
    "name": "GOWASH",
    "slug": "GOWASH",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "facebookScheme": "xxxxx",
    "facebookAppId": "xxxxxx",
    "facebookDisplayName": "xxxxx",
    "splash": {
      "image": "./assets/3x/Asset3x.png",
      "resizeMode": "contain"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "android" : {
      "permissions": ["ACCESS_COARSE_LOCATION", "ACCESS_FINE_LOCATION"]
   }
  }
}

1 Like

Hey @miknoup, Have you been able to get any error information from crash logs?

Cheers,
Adam

Hello @adamjnav!
I work with @miknoup on the project.
In terminal we can’t see any error log apparently. The problem only persists on Android devices as shown below:

ezgif.com-video-to-gif

I had to cut from the gif the process of opening that modal because of my fb login info shown, but there is the problem at the press on Login button on the Facebook login page, the moment it redirects to the app, it suddenly dies and no error log is shown in the console.

Can you try using adb logcat to get into the device logs? Device logs will provided better information regarding crashes compared to the console logs you’re looking at.

Done the adb logcat and there is the result:

07-28 10:48:29.538 12264 12313 I chatty  : uid=10133(host.exp.exponent) RenderThread identical 19 lines
07-28 10:48:29.564 12264 12313 D EGL_emulation: eglMakeCurrent: 0xe12c1ba0: ver 3 0 (tinfo 0xd5ca69f0)
07-28 10:48:29.599  2121  2213 E InputDispatcher: Window handle Window{6bdceec u0 host.exp.exponent/com.facebook.FacebookActivity} has no registered input channel
07-28 10:48:29.631  2121  3843 E InputDispatcher: Window handle Window{6bdceec u0 host.exp.exponent/com.facebook.FacebookActivity} has no registered input channel
07-28 10:48:34.874 12264 12313 D EGL_emulation: eglMakeCurrent: 0xe12c1ba0: ver 3 0 (tinfo 0xd5ca69f0)
07-28 10:48:35.281  2121  3843 W InputReader: Device has associated, but no associated display id.
07-28 10:48:35.281  2121  3843 I chatty  : uid=1000(system) Binder:2121_18 identical 8 lines
07-28 10:48:35.281  2121  3843 W InputReader: Device has associated, but no associated display id.
07-28 10:48:35.324 12264 12313 D EGL_emulation: eglMakeCurrent: 0xe12c1ba0: ver 3 0 (tinfo 0xd5ca69f0)
07-28 10:48:35.373  2121  3843 W InputReader: Device has associated, but no associated display id.
07-28 10:48:35.386  2121  3843 I chatty  : uid=1000(system) Binder:2121_18 identical 18 lines
07-28 10:48:35.386  2121  3843 W InputReader: Device has associated, but no associated display id.
07-28 10:48:35.423 12264 12450 W chromium: [WARNING:spdy_session.cc(3180)] Received WINDOW_UPDATE for invalid stream 45
07-28 10:48:35.423 12264 12264 D k       : WARNING: getPackageName called on ScopedContext
07-28 10:48:35.423 12264 12264 I chatty  : uid=10133(host.exp.exponent) identical 2 lines
07-28 10:48:35.423 12264 12264 D k       : WARNING: getPackageName called on ScopedContext
07-28 10:48:35.464 12264 12264 D AndroidRuntime: Shutting down VM
07-28 10:48:35.466 12264 12264 E AndroidRuntime: FATAL EXCEPTION: main
07-28 10:48:35.466 12264 12264 E AndroidRuntime: Process: host.exp.exponent, PID: 12264
07-28 10:48:35.466 12264 12264 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=-1, data=Intent { (has extras) }} to activity {host.exp.exponent/host.exp.exponent.experience.ExperienceActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4845)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4886)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.expo.modules.facebook.FacebookModule$2.onSuccess(FacebookModule.java:3)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.expo.modules.facebook.FacebookModule$2.onSuccess(FacebookModule.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.login.LoginManager.finishLogin(LoginManager.java:7)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.login.LoginManager.onActivityResult(LoginManager.java:13)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.login.LoginManager$1.onActivityResult(LoginManager.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.internal.CallbackManagerImpl.onActivityResult(CallbackManagerImpl.java:2)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.expo.modules.facebook.FacebookModule.onActivityResult(FacebookModule.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.host.exp.exponent.modules.universal.ScopedUIManagerModuleWrapper$1.onActivityResult(ScopedUIManagerModuleWrapper.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at g.a.a.b.a(Exponent.java:16)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at host.exp.exponent.experience.n.onActivityResult(ReactNativeActivity.java:2)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.Activity.dispatchActivityResult(Activity.java:8110)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4838)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	... 11 more
07-28 10:48:35.489  2121  3843 W ActivityTaskManager:   Force finishing activity host.exp.exponent/.experience.HomeActivity
07-28 10:48:35.495  2121 12502 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
07-28 10:48:35.500  2121  3843 W ActivityTaskManager:   Force finishing activity host.exp.exponent/.experience.ExperienceActivity
07-28 10:48:35.535  2121  2149 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
07-28 10:48:35.535  2121  2149 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
07-28 10:48:35.557 12264 12264 I Process : Sending signal. PID: 12264 SIG: 9
07-28 10:48:35.669  2121  2141 W Looper  : Slow dispatch took 113ms android.ui h=com.android.server.am.ActivityManagerService$UiHandler c=null m=53
07-28 10:48:35.753  2121  2134 I system_server: Background young concurrent copying GC freed 91879(4193KB) AllocSpace objects, 24(848KB) LOS objects, 26% free, 13MB/18MB, paused 3.939ms total 217.620ms
07-28 10:48:35.810  2121  2234 W InputDispatcher: channel 'da95fff host.exp.exponent/com.facebook.FacebookActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
07-28 10:48:35.810  2121  2234 E InputDispatcher: channel 'da95fff host.exp.exponent/com.facebook.FacebookActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-28 10:48:35.817  2121  2234 W InputDispatcher: channel '596e010 host.exp.exponent/host.exp.exponent.experience.ExperienceActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
07-28 10:48:35.817  2121  2234 E InputDispatcher: channel '596e010 host.exp.exponent/host.exp.exponent.experience.ExperienceActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-28 10:48:35.822  2121  2234 W InputDispatcher: channel '813524a host.exp.exponent/host.exp.exponent.experience.ExperienceActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
07-28 10:48:35.822  2121  2234 E InputDispatcher: channel '813524a host.exp.exponent/host.exp.exponent.experience.ExperienceActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-28 10:48:35.822  2121  2234 W InputDispatcher: channel '2af6bec host.exp.exponent/host.exp.exponent.experience.HomeActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
07-28 10:48:35.822  2121  2234 E InputDispatcher: channel '2af6bec host.exp.exponent/host.exp.exponent.experience.HomeActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-28 10:48:35.832  2121  3843 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=73, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ], android.os.BinderProxy@bd4828b)
07-28 10:48:35.832  2121  3091 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=74, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND Uid: 10133] ], android.os.BinderProxy@bc41f68)
07-28 10:48:35.833  2121  6962 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=75, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ], android.os.BinderProxy@6833f81)
07-28 10:48:35.833  2121  2213 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=71, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ], android.os.BinderProxy@586bc67)
07-28 10:48:35.833  2121  3843 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=76, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND Uid: 10133] ], android.os.BinderProxy@2018826)
07-28 10:48:35.834  2121  2139 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=72, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ], android.os.BinderProxy@66fca14)
07-28 10:48:35.835  2121  5271 I WindowManager: WIN DEATH: Window{da95fff u0 host.exp.exponent/com.facebook.FacebookActivity}
07-28 10:48:35.835  2121  5271 W InputDispatcher: Attempted to unregister already unregistered input channel 'da95fff host.exp.exponent/com.facebook.FacebookActivity (server)'
07-28 10:48:35.844  2121  6962 I WindowManager: WIN DEATH: Window{596e010 u0 host.exp.exponent/host.exp.exponent.experience.ExperienceActivity}
07-28 10:48:35.844  2121  6962 W InputDispatcher: Attempted to unregister already unregistered input channel '596e010 host.exp.exponent/host.exp.exponent.experience.ExperienceActivity (server)'
07-28 10:48:35.850  2121  2271 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=73, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ] (release request)
07-28 10:48:35.853  2121  3329 I ActivityManager: Process host.exp.exponent (pid 12264) has died: vis+99 TOP 
07-28 10:48:35.845  2121  2151 I libprocessgroup: Successfully killed process cgroup uid 10133 pid 12264 in 4ms
07-28 10:48:35.857  2121  3382 I WindowManager: WIN DEATH: Window{2af6bec u0 host.exp.exponent/host.exp.exponent.experience.HomeActivity}
07-28 10:48:35.857  2121  3382 W InputDispatcher: Attempted to unregister already unregistered input channel '2af6bec host.exp.exponent/host.exp.exponent.experience.HomeActivity (server)'
07-28 10:48:35.862  2121  2271 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=75, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ] (release request)
07-28 10:48:35.863  2121  2271 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=71, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ] (release request)
07-28 10:48:35.864  2121  2271 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=72, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10133] ] (release request)
07-28 10:48:35.868  1842  1842 I Zygote  : Process 12264 exited due to signal 9 (Killed)
07-28 10:48:35.868  2121  4066 I WindowManager: WIN DEATH: Window{813524a u0 host.exp.exponent/host.exp.exponent.experience.ExperienceActivity}
07-28 10:48:35.868  2121  4066 W InputDispatcher: Attempted to unregister already unregistered input channel '813524a host.exp.exponent/host.exp.exponent.experience.ExperienceActivity (server)'
07-28 10:48:35.940  2121  3329 W InputReader: Device has associated, but no associated display id.
07-28 10:48:35.955  2121  3329 I ActivityManager: Killing 12452:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0/u0a133i5 (adj 0): isolated not needed
07-28 10:48:35.944  2121  3329 I chatty  : uid=1000(system) Binder:2121_10 identical 8 lines
07-28 10:48:35.944  2121  3329 W InputReader: Device has associated, but no associated display id.
07-28 10:48:35.958  2121  2151 I libprocessgroup: Successfully killed process cgroup uid 99005 pid 12452 in 1ms
07-28 10:48:35.960  1858  1858 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 17051648
07-28 10:48:35.978  2552  2552 I Zygote  : Process 12452 exited cleanly (0)
07-28 10:48:36.025  2121  2143 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{16e5a19 u0 host.exp.exponent/.experience.ExperienceActivity t-1 f}
07-28 10:48:36.030  1858  1858 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 17051648
07-28 10:48:36.077  1858  1940 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 17051648
07-28 10:48:36.083  2121  2143 W ActivityManager: setHasOverlayUi called on unknown pid: 12264
07-28 10:48:36.104  3621  3698 D EGL_emulation: eglMakeCurrent: 0xe12f3b60: ver 3 0 (tinfo 0xe13846a0)
07-28 10:48:36.115  1858  1940 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 17051648
07-28 10:48:36.164  1858  1940 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 17051648
07-28 10:48:36.187  2872  3543 D EGL_emulation: eglMakeCurrent: 0xd911ae40: ver 3 0 (tinfo 0xd910fba0)
07-28 10:48:36.188  1858  1858 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 17051648
07-28 10:48:36.215  3621  3621 W ThreadPoolDumper: Queue length for executor EventBus is now 11. Perhaps some tasks are too long, or the pool is too small.
07-28 10:48:36.269  2121  2121 W ActivityManager: Unable to start service Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } U=0: not found
07-28 10:48:36.269  2121  2121 W RemoteAppPredictionService: could not bind to Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } using flags 67108865
07-28 10:48:36.274  3621  3774 W SessionLifecycleManager: Handover failed. Creating new session controller.
07-28 10:48:36.282  2339  2361 I ndroid.systemu: Background young concurrent copying GC freed 191033(4470KB) AllocSpace objects, 0(0B) LOS objects, 42% free, 6071KB/10MB, paused 11.517ms total 240.886ms
07-28 10:48:36.413  3621  9452 W LocationOracle: No location history returned by ContextManager
07-28 10:48:36.471  3621  3774 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
07-28 10:48:36.481  3621  3774 W ErrorReporter: reportError [type: 211, code: 393244, bug: 0]: errorCode: 393244, engine: 0
07-28 10:48:36.483  3621  3774 I MicroDetector: Keeping mic open: false
07-28 10:48:36.484  3621  3774 I MicroDetectionWorker: #onError(false)
07-28 10:48:36.573  2320 12436 W ctxmgr  : [AclManager] No 3 for (accnt=account#-517948760#, com.google.android.gms(10098):UserVelocityProducer, vrsn=200414022, 0, 3pPkg = null ,  3pMdlId = null ,  pid = 2320). Was: 3 for 1, account#-517948760# [CONTEXT service_id=47 ]
07-28 10:48:36.656  2320 12439 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.729  2320 12436 I ctxmgr  : [ProducerStatusImpl] updateStateForNewContextData: inactive, contextName=7 [CONTEXT service_id=47 ]
07-28 10:48:36.772  2320  2320 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
07-28 10:48:36.778  2320  2320 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
07-28 10:48:36.803  2320 12510 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.804  2320 12509 I PlaceInferenceEngine: [anon] Changed inference mode: 0
07-28 10:48:36.805  2320 12513 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.860  2320 12436 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.868  2320 12513 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.906  2320 12509 I Places  : ?: PlacesBleScanner start() with priority 2
07-28 10:48:36.908  2320 12509 I PlaceInferenceEngine: [anon] Changed inference mode: 1
07-28 10:48:36.927  2320 12512 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.935  2320 12509 I Places  : Converted 1 out of 1 WiFi scans
07-28 10:48:36.951  2320  2320 E BeaconBle: Missing BluetoothAdapter
07-28 10:48:36.951  2320  2320 I BeaconBle: BLE 'KK+' software access layer enabled
07-28 10:48:36.955  2320 12510 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.956  2320 12512 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.960  2320 12509 I PlaceInferenceEngine: [anon] Changed inference mode: 1
07-28 10:48:36.963  2320 12510 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.996  2320 12510 I Places  : ?: Couldn't find platform key file.
07-28 10:48:36.999  2320 12436 I PlaceInferenceEngine: No beacon scan available - ignoring candidates.
07-28 10:48:37.023  2320  2320 I BeaconBle: Client requested scan, settings=BleSettings [scanMode=ZERO_POWER, callbackType=ALL_MATCHES, reportDelayMillis=0, 1 filters, 0 clients, callingClientName=Places]
07-28 10:48:37.024  2320  2320 I BeaconBle: Scan : No clients left, canceling alarm.
07-28 10:48:37.025  2320  2320 E BeaconBle: Scan couldn't start for Places
07-28 10:48:37.026  2320  2320 W Places  : BLE failure while scanning - code 5
07-28 10:48:37.038  2320 12436 I Places  : ?: Couldn't find platform key file.
07-28 10:48:37.060  2320  2336 I .gms.persisten: Background young concurrent copying GC freed 71323(3794KB) AllocSpace objects, 27(1656KB) LOS objects, 26% free, 10MB/14MB, paused 3.625ms total 147.772ms
07-28 10:48:41.494  3621  3774 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
07-28 10:48:41.498  3621  3774 W ErrorReporter: reportError [type: 211, code: 393244, bug: 0]: errorCode: 393244, engine: 0
07-28 10:48:41.502  3621  3774 I MicroDetector: Keeping mic open: false
07-28 10:48:41.502  3621  3774 I MicroDetectionWorker: #onError(false)
07-28 10:48:41.502  3621 11790 I DeviceStateChecker: DeviceStateChecker cancelled
07-28 10:48:46.505  3621  3774 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
07-28 10:48:46.510  3621  3774 W ErrorReporter: reportError [type: 211, code: 393244, bug: 0]: errorCode: 393244, engine: 0
07-28 10:48:46.511  3621  3774 I MicroDetector: Keeping mic open: false
07-28 10:48:46.511  3621  3774 I MicroDetectionWorker: #onError(false)
07-28 10:48:46.511  3621 11790 I DeviceStateChecker: DeviceStateChecker cancelled
07-28 10:48:51.517  3621  3774 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
07-28 10:48:51.520  3621  3774 W ErrorReporter: reportError [type: 211, code: 393244, bug: 0]: errorCode: 393244, engine: 0
07-28 10:48:51.522  3621  3774 I MicroDetector: Keeping mic open: false
07-28 10:48:51.522  3621  3774 I MicroDetectionWorker: #onError(false)
07-28 10:48:52.830  2016  2016 E netmgr  : Failed to open QEMU pipe 'qemud:network': Invalid argument
07-28 10:48:52.830  2018  2018 E wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
07-28 10:48:56.530  3621  3774 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
07-28 10:48:56.532  3621  3774 W ErrorReporter: reportError [type: 211, code: 393244, bug: 0]: errorCode: 393244, engine: 0
07-28 10:48:56.536  3621  3774 I MicroDetector: Keeping mic open: false
07-28 10:48:56.536  3621  3774 I MicroDetectionWorker: #onError(false)


I guess the problem is somewhere around here here:

07-28 10:48:35.464 12264 12264 D AndroidRuntime: Shutting down VM
07-28 10:48:35.466 12264 12264 E AndroidRuntime: FATAL EXCEPTION: main
07-28 10:48:35.466 12264 12264 E AndroidRuntime: Process: host.exp.exponent, PID: 12264
07-28 10:48:35.466 12264 12264 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=-1, data=Intent { (has extras) }} to activity {host.exp.exponent/host.exp.exponent.experience.ExperienceActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4845)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4886)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.expo.modules.facebook.FacebookModule$2.onSuccess(FacebookModule.java:3)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.expo.modules.facebook.FacebookModule$2.onSuccess(FacebookModule.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.login.LoginManager.finishLogin(LoginManager.java:7)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.login.LoginManager.onActivityResult(LoginManager.java:13)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.login.LoginManager$1.onActivityResult(LoginManager.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at com.facebook.internal.CallbackManagerImpl.onActivityResult(CallbackManagerImpl.java:2)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.expo.modules.facebook.FacebookModule.onActivityResult(FacebookModule.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at abi38_0_0.host.exp.exponent.modules.universal.ScopedUIManagerModuleWrapper$1.onActivityResult(ScopedUIManagerModuleWrapper.java:1)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at g.a.a.b.a(Exponent.java:16)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at host.exp.exponent.experience.n.onActivityResult(ReactNativeActivity.java:2)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.Activity.dispatchActivityResult(Activity.java:8110)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4838)
07-28 10:48:35.466 12264 12264 E AndroidRuntime: 	... 11 more
07-28 10:48:35.489  2121  3843 W ActivityTaskManager:   Force finishing activity host.exp.exponent/.experience.HomeActivity

Hi @adamjnav!

Have you got any news about it?

Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.