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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Release build crashes immediately upon starting #8727

Closed
c-h- opened this issue Jul 13, 2016 · 4 comments
Closed

[Android] Release build crashes immediately upon starting #8727

c-h- opened this issue Jul 13, 2016 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@c-h-
Copy link

c-h- commented Jul 13, 2016

I recently upgraded from React Native 22 to 29 and went through every single step in between. The app runs perfectly fine in debug mode but crashes immediately upon starting when a signed release version is installed. The previous version (RN 22) had no issues and is live in production.

Proguard is disabled (def enableProguardInReleaseBuilds = false) so it should not be the problem.

The device is an Android Samsung Galaxy S5. I'm running a Mac machine.

from adb logcat

W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
I/Adreno-EGL( 3513): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build:  ()
I/Adreno-EGL( 3513): OpenGL ES Shader Compiler Version: E031.25.01.03
I/Adreno-EGL( 3513): Build Date: 10/28/14 Tue
I/Adreno-EGL( 3513): Local Branch: LA.BF.1.1_RB1_20141028_021_patches2
I/Adreno-EGL( 3513): Remote Branch: 
I/Adreno-EGL( 3513): Local Patches: 
I/Adreno-EGL( 3513): Reconstruct Branch: 
I/OpenGLRenderer( 3513): Initialized EGL, version 1.4
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
I/OpenGLRenderer( 3513): HWUI protection enabled for context ,  &this =0xaef0a1a0 ,&mEglDisplay = 1 , &mEglConfig = 8 
D/OpenGLRenderer( 3513): Enabling debug mode 0
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
W/unknown:React( 3513): Unable to dispatch keyboard events in JS as the react instance has not been attached
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
D/InputMethodManagerService(  898): windowGainedFocus mCurrentFocusedUserId - 0 and mSecureKeypadEnabled-false
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
W/ContextImpl(  898): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1687 com.android.server.InputMethodManagerService$6.run:2724 java.lang.Thread.run:818 <bottom of call stack> <bottom of call stack> 
I/Timeline( 3513): Timeline: Activity_idle id: android.os.BinderProxy@23fe9b8f time:87659493
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
I/ActivityManager(  898): Displayed com.test/.MainActivity: +151ms
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.github.xinthink.rnmk.MKTouchableManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.github.xinthink.rnmk.MKSpinnerManager
W/unknown:ViewManagerPropertyUpdater( 3513): Could not find generated setter for class com.github.xinthink.rnmk.TickViewManager

Any ideas? Thank you!

@c-h-
Copy link
Author

c-h- commented Jul 13, 2016

Problem had to do with having a different name than main.android.jsbundle for the JS bundle and the auto updater plugin I'm using was not finding it. The RN update to 29 overwrote the method that names the js bundle, clearing the changes I needed for the app to work.

I still get a bunch of Could not find generated setter for class ... but the app appears to be fully functional.

@c-h- c-h- closed this as completed Jul 13, 2016
@booboothefool
Copy link

booboothefool commented Jan 22, 2017

@c-h- Hi could you elaborate / explain like I'm 5? My adb logcat looks similar to this with a crash and I'm not sure what I need to change. #12013

@c-h-
Copy link
Author

c-h- commented Jan 22, 2017

@booboothefool still need help? I see you closed your issue.

@booboothefool
Copy link

@c-h- Nah, I'm good! Thanks though, appreciate it. 😄 Mine was a react-native-config related issue.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants