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 application crash at startup - Production #70

Closed
totorototo opened this issue Oct 26, 2017 · 3 comments
Closed

Android application crash at startup - Production #70

totorototo opened this issue Oct 26, 2017 · 3 comments

Comments

@totorototo
Copy link
Owner

totorototo commented Oct 26, 2017

Issue while testing the release build of the application.
Got the same behavior on physical device.

Here is the stack trace:

10-26 21:52:25.764 8656 8678 E AndroidRuntime: Process: com.lybitos, PID: 8656
10-26 21:52:25.764 8656 8678 E AndroidRuntime: com.facebook.react.common.JavascriptException: undefined is not an object (evaluating 'u.View.propTypes.style'), stack:
10-26 21:52:25.764 8656 8678 E AndroidRuntime: @687:1062
10-26 21:52:25.764 8656 8678 E AndroidRuntime: i@2:565
10-26 21:52:25.764 8656 8678 E AndroidRuntime: n@2:348
10-26 21:52:25.764 8656 8678 E AndroidRuntime: t@2:210
10-26 21:52:25.764 8656 8678 E AndroidRuntime: @686:251
10-26 21:52:25.764 8656 8678 E AndroidRuntime: i@2:565
10-26 21:52:25.764 8656 8678 E AndroidRuntime: n@2:348
10-26 21:52:25.764 8656 8678 E AndroidRuntime: t@2:210
10-26 21:52:25.764 8656 8678 E AndroidRuntime: @408:292
10-26 21:52:25.764 8656 8678 E AndroidRuntime: i@2:565
10-26 21:52:25.764 8656 8678 E AndroidRuntime: n@2:348
10-26 21:52:25.764 8656 8678 E AndroidRuntime: t@2:210
10-26 21:52:25.764 8656 8678 E AndroidRuntime: @344:253
10-26 21:52:25.764 8656 8678 E AndroidRuntime: i@2:565
10-26 21:52:25.764 8656 8678 E AndroidRuntime: n@2:348
10-26 21:52:25.764 8656 8678 E AndroidRuntime: t@2:210
10-26 21:52:25.764 8656 8678 E AndroidRuntime: @303:143
10-26 21:52:25.764 8656 8678 E AndroidRuntime: i@2:565
10-26 21:52:25.764 8656 8678 E AndroidRuntime: n@2:348
10-26 21:52:25.764 8656 8678 E AndroidRuntime: t@2:210
10-26 21:52:25.764 8656 8678 E AndroidRuntime: @12:38
10-26 21:52:25.764 8656 8678 E AndroidRuntime: i@2:565
10-26 21:52:25.764 8656 8678 E AndroidRuntime: n@2:278
10-26 21:52:25.764 8656 8678 E AndroidRuntime: t@2:210
10-26 21:52:25.764 8656 8678 E AndroidRuntime: global code@1013:9
10-26 21:52:25.764 8656 8678 E AndroidRuntime:
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:56)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:40)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:363)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
10-26 21:52:25.764 8656 8678 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761)
10-26 21:52:25.845 1671 2158 W ActivityManager: Force finishing activity com.lybitos/.MainActivity
10-26 21:52:25.858 1304 1304 W SurfaceFlinger: couldn't log to binary event log: overflow.
10-26 21:52:25.881 8656 8673 D EGL_emulation: eglMakeCurrent: 0xa07469a0: ver 2 0 (tinfo 0xa077d8d0)
10-26 21:52:25.975 1671 1877 W InputMethodManagerService: Focus gain on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@11db04d (uid=10091 pid=8656)
10-26 21:52:25.982 1671 5510 I OpenGLRenderer: Initialized EGL, version 1.4
10-26 21:52:25.982 1671 5510 D OpenGLRenderer: Swap behavior 1
10-26 21:52:25.983 1671 5510 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
10-26 21:52:25.983 1671 5510 D OpenGLRenderer: Swap behavior 0
10-26 21:52:25.987 1671 1684 I WindowManager: Failed to capture screenshot of Token{a568e ActivityRecord{e9e2689 u0 com.lybitos/.MainActivity t24 f}} appWin=Window{96e92ec u0 com.lybitos/com.lybitos.MainActivity} drawState=4

After having looking for the root cause for few minutes, it seems the issue comes from:

Card.propTypes = {
children: PropTypes.any,
flexDirection: PropTypes.string,
containerStyle: ViewPropTypes.style,
wrapperStyle: ViewPropTypes.style,
overlayStyle: ViewPropTypes.style,
title: PropTypes.string,
titleStyle: NativeText.propTypes.style,
featuredTitle: PropTypes.string,
featuredTitleStyle: Text.propTypes.style,
featuredSubtitle: PropTypes.string,
featuredSubtitleStyle: Text.propTypes.style,
dividerStyle: ViewPropTypes.style,
image: Image.propTypes.source,
imageStyle: ViewPropTypes.style,
imageWrapperStyle: ViewPropTypes.style,
fontFamily: PropTypes.string,
};

import { View, ViewPropTypes as RNViewPropTypes } from 'react-native';
const ViewPropTypes = RNViewPropTypes || View.propTypes;
export default ViewPropTypes;

@totorototo
Copy link
Owner Author

totorototo commented Oct 27, 2017

@totorototo totorototo changed the title Android application crash at startup Android application crash at startup - Production Oct 27, 2017
@YeshanJay
Copy link

@totorototo
Copy link
Owner Author

dependency update + remove faulty component. (countdown).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants