Open ribbon-libs opened 8 years ago
I got the same problem, too. AP crashed after Progress.CircleSnail start running few minutes later.
same problem too. so i compiling in release mode. not crashed. i think this problem debug mode. but i don't know what this problem.
Same problem :(
@ruslan-kurkebayev @ribbon-libs & @CrystalRanita: Does it crash in release mode too?
+1
it also crashed few mins later when I played around with the example after I fixed this issue: https://github.com/facebook/react-native/issues/11389
My implementation of Progress Circle is crashing on Android. I tried the example app too, but that's also crashing.
I'm using React Native v0.39.2 and React Native Progress v3.2.0. Both apps work fine when I run them in debug mode though
@oblador: How can I compile the library in release mode?
Same here ! Crash on Android 0.41.2
RN v0.41.2 crashes in debug mode. In release mode it's ok.
<Progress.Circle indeterminate ={true} size ={30}>
crashed in debug mode .I think the key indeterminate
is 'murderer'
i got the similar problem, it's not like crash but it was freezed & white screen & i cannot do any interaction on the screen, both on debug & release version.
{
"name": "test",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"bundle:ios": "react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios",
"copy:ios": "curl http://localhost:8081/index.ios.bundle?platform=ios -o ./ios/CassiCoupon/main.jsbundle",
"bundle:android": "react-native bundle --entry-file index.android.js --bundle-output ./android/app/src/main/assets/main.jsbundle --dev false --platform android --assets-dest ./android/app/src/main/res/",
"copy:android": "curl http://localhost:8081/index.android.bundle?platform=android -o ./android/app/src/main/assets/index.android.bundle",
"build:android": "npm run clear:android && npm run copy:android && npm run bundle:android && cd android && ./gradlew assembleRelease",
"build:ios": "",
"clear:android": "rm -rf ./android/app/src/main/assets/*.* ./android/app/build/intermediates/res/merged/release/drawable-*/*.* ./android/app/src/main/res/drawable-*/*.* ./android/app/build/outputs/apk/*.apk",
"test": "jest"
},
"dependencies": {
"immutable": "^3.8.1",
"react": "15.4.2",
"react-native": "0.42.0",
"react-native-android-keyboard-adjust": "^1.0.0",
"react-native-camera": "git+https://github.com/lwansbrough/react-native-camera.git",
"react-native-device-info": "^0.10.1",
"react-native-fbsdk": "^0.5.0",
"react-native-keyboard-aware-scrollview": "^1.1.5",
"react-native-looped-carousel": "^0.1.5",
"react-native-progress": "^3.2.0",
"redux-persist-immutable": "^4.2.0"
},
"devDependencies": {
"babel-jest": "19.0.0",
"babel-plugin-module-resolver": "^2.7.0",
"babel-preset-react-native": "1.9.1",
"i": "^0.3.5",
"immutable": "^3.8.1",
"jest": "19.0.2",
"react-native-maps": "^0.14.0",
"react-native-menu": "^0.20.2",
"react-redux": "^5.0.3",
"react-test-renderer": "15.4.2",
"redux": "^3.6.0",
"redux-form": "^6.6.1",
"redux-immutablejs": "0.0.8",
"redux-logger": "^2.8.2",
"redux-persist": "^4.6.0",
"redux-thunk": "^2.2.0"
},
"jest": {
"preset": "react-native"
}
}
my loading component like this
/*
@flow
*/
"use strict";
import React from 'react';
import { View, TouchableOpacity, Text } from 'react-native';
import StyleSheet from './Style';
import StyleDefault from './StyleDefault';
import * as Progress from 'react-native-progress';
import {connect} from 'react-redux';
class Loading extends React.Component {
props: {
isLoading: boolean;
}
constructor(props) {
super(props);
}
render() {
const {isLoading} = this.props;
if(isLoading)
return(
<View style={StyleDefault.loadingContainerStyle}>
<Progress.CircleSnail duration={500} color={['#ccc']}/>
</View>
);
return null;
}
}
const mapStateToProps = (store) => {
return {
isLoading: store.getIn(["loading", "isLoading"])
}
}
export default connect(mapStateToProps)(CassiLoading);
Test Device: Gennymotion Google Nexus 5X - 7.0.0 - API 24 - 1080x1920
It's crashing for me too. I can't even find a relevant Stacktrace of what caused it. The bar works but Pie and Circle don't so I think it is some sort of GPU problem ? Maybe this helps:
07-03 21:54:18.416 1314 1369 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 290816
07-03 21:54:18.420 17908 17908 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0xe07b3000 in tid 17908 (estapp)
07-03 21:54:18.522 1381 1381 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-03 21:54:18.522 1381 1381 F DEBUG : Build fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:6.0/MASTER/4088240:userdebug/test-keys'
07-03 21:54:18.522 1381 1381 F DEBUG : Revision: '0'
07-03 21:54:18.522 1381 1381 F DEBUG : ABI: 'x86'
07-03 21:54:18.522 1381 1381 F DEBUG : pid: 17908, tid: 17908, name: estapp >>> com.testapp <<<
07-03 21:54:18.522 1381 1381 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xe07b3000
07-03 21:54:18.534 1381 1381 F DEBUG : eax 00046aa4 ebx ea1caeb4 ecx 0000faa9 edx ca573bfc
07-03 21:54:18.534 1381 1381 F DEBUG : esi cc259000 edi e07b3000
07-03 21:54:18.534 1381 1381 F DEBUG : xcs 00000023 xds 0000002b xes 0000002b xfs 00000007 xss 0000002b
07-03 21:54:18.534 1381 1381 F DEBUG : eip ea1c4a38 ebp 003fffc4 esp ffcc7ff4 flags 00210206
07-03 21:54:18.535 1381 1381 F DEBUG :
07-03 21:54:18.535 1381 1381 F DEBUG : backtrace:
07-03 21:54:18.535 1381 1381 F DEBUG : #00 pc 00002a38 /system/lib/libOpenglSystemCommon.so (goldfish_dma_write(goldfish_dma_context*, void*, unsigned int)+56)
07-03 21:54:18.535 1381 1381 F DEBUG : #01 pc 00003853 /system/lib/libOpenglSystemCommon.so (ExtendedRCEncoderContext::lockAndWriteDma(void*, unsigned int)+67)
07-03 21:54:18.535 1381 1381 F DEBUG : #02 pc 00003062 /system/lib/lib_renderControl_enc.so
07-03 21:54:18.535 1381 1381 F DEBUG : #03 pc 0000311e /system/lib/hw/gralloc.ranchu.so
07-03 21:54:18.535 1381 1381 F DEBUG : #04 pc 0000a351 /system/lib/libui.so (android::GraphicBufferMapper::unlockAsync(native_handle const*, int*)+113)
07-03 21:54:18.535 1381 1381 F DEBUG : #05 pc 000086f1 /system/lib/libui.so (android::GraphicBuffer::unlockAsync(int*)+49)
07-03 21:54:18.535 1381 1381 F DEBUG : #06 pc 0006bae6 /system/lib/libgui.so (android::Surface::unlockAndPost()+70)
07-03 21:54:18.535 1381 1381 F DEBUG : #07 pc 000b6b00 /system/lib/libandroid_runtime.so
07-03 21:54:18.535 1381 1381 F DEBUG : #08 pc 73320746 /data/dalvik-cache/x86/system@framework@boot.oat (offset 0x1eb2000)
07-03 21:54:18.867 1661 18371 W ActivityManager: Force finishing activity com.testapp/.MainActivity
07-03 21:54:18.867 1381 1381 F DEBUG :
07-03 21:54:18.867 1381 1381 F DEBUG : Tombstone written to: /data/tombstones/tombstone_05
07-03 21:54:18.867 1381 1381 E DEBUG : AM write failed: Broken pipe
07-03 21:54:18.867 1661 1678 I BootReceiver: Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
07-03 21:54:18.879 1314 1346 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 1019904
07-03 21:54:18.885 1661 18371 D : HostConnection::get() New Host Connection established 0x7f07e3cf4740, tid 18371
07-03 21:54:18.886 1661 18371 W : Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
07-03 21:54:18.887 1314 1314 E EGL_emulation: tid 1314: eglCreateSyncKHR(1881): error 0x3004 (EGL_BAD_ATTRIBUTE)
07-03 21:54:18.909 1661 2087 I AccountManagerService: getTypesVisibleToCaller: isPermitted? true
07-03 21:54:18.912 2021 2860 W UdcContextManagerHelper: Empty context buffer. Thus might mean that the context is not synced down.
07-03 21:54:18.912 2021 2860 W GetDeviceDataUploadOptInStatusOp: Empty context model while retrieving upload opt-in status!
07-03 21:54:18.917 1661 2086 I AccountManagerService: getTypesVisibleToCaller: isPermitted? true
07-03 21:54:18.920 2021 2860 W UdcContextManagerHelper: Empty context buffer. Thus might mean that the context is not synced down.
07-03 21:54:18.920 2021 2860 W GetDeviceDataUploadOptInStatusOp: Empty context model while retrieving upload opt-in status!
07-03 21:54:18.923 1661 9075 I OpenGLRenderer: Initialized EGL, version 1.4
07-03 21:54:18.936 1661 9075 D EGL_emulation: eglCreateContext: 0x7f07e3a8f3c0: maj 2 min 0 rcv 2
07-03 21:54:18.938 1661 9075 D EGL_emulation: eglMakeCurrent: 0x7f07e3a8f3c0: ver 2 0 (tinfo 0x7f07e3a8e7e0)
07-03 21:54:18.945 1661 9075 D EGL_emulation: eglMakeCurrent: 0x7f07e3a8f3c0: ver 2 0 (tinfo 0x7f07e3a8e7e0)
07-03 21:54:18.970 1661 1695 W InputDispatcher: channel 'f24261d com.testapp/com.testapp.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
07-03 21:54:18.970 1661 1695 E InputDispatcher: channel 'f24261d com.testapp/com.testapp.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-03 21:54:18.978 1661 1758 I WindowState: WIN DEATH: Window{f24261d u0 com.testapp/com.testapp.MainActivity}
07-03 21:54:18.978 1661 1758 W InputDispatcher: Attempted to unregister already unregistered input channel 'f24261d com.testapp/com.testapp.MainActivity (server)'
07-03 21:54:18.978 1661 1672 D GraphicsStats: Buffer count: 4
07-03 21:54:18.978 1391 1391 I Zygote : Process 17908 exited due to signal (11)
@nico1510 I have the exactly same situation. And once I switched progress indicator from Circle to Bar, it works on Android. Circle still works on iOS though. Had been debugging this mystery crash for hours, and wouldn't have guessed that without seeing your thread...thank you!
same exception
The same with newest RN all libs
I was experiencing a crash with Progress.Circle; I fixed it by installing ART from https://github.com/react-native-community/art (the react-native-progress docs do mention this, easy to miss though).
Hi guys, I have a problem with library, it is crashed after few minutes running. This is code that I'm using:
`
<Image style={styles.mark} source={require('./res/ic_mark.png')}/>