Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes on android device when running localhost project #4396

Closed
rok-tel opened this issue Jun 3, 2019 · 17 comments
Closed

App crashes on android device when running localhost project #4396

rok-tel opened this issue Jun 3, 2019 · 17 comments
Assignees
Labels
bug needs more info To be used when awaiting reporter response

Comments

@rok-tel
Copy link

rok-tel commented Jun 3, 2019

馃悰 Bug Report

App crashes on android device (not emulator) when running localhost project

Environment

expo app version on device 2.11.0
expo version on project 32.0.2

app target Android

Steps to Reproduce

running expo start on project,
opening expo app on my android device.

Expected Behavior

app should load, and render the main screen.

Actual Behavior

bug screen that is described on following image appears immediately.

WhatsApp Image 2019-06-04 at 02 28 06

@rok-tel rok-tel added the bug label Jun 3, 2019
@rok-tel rok-tel changed the title App crashes on android when running localhost project App crashes on android device when running localhost project Jun 4, 2019
@oriharel
Copy link

oriharel commented Jun 4, 2019

Same here

@MathieuCh
Copy link

Hi, yeah last expo client seems broken. i can't even get to that error screen my expo client is crashing on run.

Using sdk32

@oriharel
Copy link

oriharel commented Jun 4, 2019

Happens also when running a release channel, not only local.

@cruzach
Copy link
Contributor

cruzach commented Jun 4, 2019

Looks like this is a duplicate of #4382, which is a duplicate of #4371- continuing conversation there (although it seems to resolved, just waiting on Apple submission now)

@cruzach cruzach closed this as completed Jun 4, 2019
@rok-tel
Copy link
Author

rok-tel commented Jun 4, 2019

Looks like this is a duplicate of #4382, which is a duplicate of #4371- continuing conversation there (although it seems to resolved, just waiting on Apple submission now)

I see that the change you made was to ios, does it affect android expo client as well?

@cruzach
Copy link
Contributor

cruzach commented Jun 4, 2019

Ah you鈥檙e right, thanks for pointing that out. Reopening!

@cruzach cruzach reopened this Jun 4, 2019
@sjchmiela sjchmiela assigned sjchmiela and unassigned tsapeta Jun 5, 2019
@sjchmiela
Copy link
Contributor

Does this issue also happen on Snack or only on expo-cli projects? Are you able to create a demo reproducing the error?

@sjchmiela
Copy link
Contributor

sjchmiela commented Jun 5, 2019

If somebody were to try to reproduce, please:

  • open Snack,
  • change SDK version to 32,
  • change import Constants from 'expo-constants'; to import { Constants } from 'expo';
  • run the Snack on the latest Expo Client
  • see if it crashed

We have to change the Constants import to change SDK33 project template back to SDK32.

@bot19
Copy link

bot19 commented Jun 12, 2019

Hi guys, no idea what Snack is, otherwise would try. I also have this problem. Using expo-cli.

My expo version on project is 32.0.0

We have 2 Pixel 2 XLs, both on Android version 9. The one running expo app client version 2.10.4 works, while the one running 2.11.2 doesn't. I read in related issues that even as early as 2.11.0 is failing and 2.10.6 still works.

Is there a fix in the works? There's no way to rollback expo app versions on android right?

If we are using expo to deploy, will this affect the android package generated? Thanks.

@picklechips
Copy link

Hi, yeah last expo client seems broken. i can't even get to that error screen my expo client is crashing on run.

Using sdk32

I am experiencing the same issue.

For me the Expo Client just crashes after finishing downloading the javascript bundle, however one of the other developers on the same project is experiencing the issue reported in the original post.

Using sdk32, expo android app v2.11.2.

If we revert back to v2.10.6 of the expo client then we experience no issues.

@MonasteryJohn
Copy link

I am also experiencing the issue with the "backgroundColor" error. In my case it happens after navigating to a particular screen within my app. Unfortunately, I have not been able to narrow down exactly what is causing the issue in that screen and it's children, but it seems to be related to our use of animation in this screen.

This is only impacting Android, and builds done through expo work on the device just fine. Can anyone explain how to revert the expo client version while we wait for a fix for this?

@cruzach
Copy link
Contributor

cruzach commented Jun 15, 2019

@MonasteryJohn here are links to the old Expo client versions:

Android: https://exp-android-apks.s3.amazonaws.com/Exponent-2.10.6.apk

iOS: https://exp-ios-simulator-apps.s3.amazonaws.com/Exponent-2.10.0.tar.gz

@MonasteryJohn
Copy link

Thanks to @cruzach for providing a link to the old expo client apk. That helped me find the issue for our app. In our case the problem was with setting backgroundColor: null in some of our native-base button styles. changing those to backgroundColor: 'transparent' got the app working with the latest expo client.

@picklechips
Copy link

Any update on this?

@cruzach
Copy link
Contributor

cruzach commented Aug 12, 2019

still need a reproducible example, using a snack would be best

@picklechips
Copy link

Just resolved this issue for us. We were using a native-base button with the transparent prop, which sets backgroundColor to null.

They recently released a fix which just changes null to transparent in order to fix it. It would seem the new client doesn't like backgroundColor: null.

Here's the related github issue:
GeekyAnts/NativeBase#2673
and resulting PR:
GeekyAnts/NativeBase#2799

@cruzach cruzach added the needs more info To be used when awaiting reporter response label Aug 13, 2019
@sjchmiela
Copy link
Contributor

Given some time has passed since the issue has been posted and it seems it was caused by NativeBase library I'll close this issue tentatively. Thank you for helping everyone out find the root cause of the problem!

@lock lock bot added the outdated label May 20, 2020
@lock lock bot locked and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug needs more info To be used when awaiting reporter response
Projects
None yet
Development

No branches or pull requests

9 participants