facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.19k stars 24.33k forks source link

What are the reasons for the react-native application crash? #29432

Closed a1005342094 closed 1 year ago

a1005342094 commented 4 years ago

The application may crash after running for a while.

Error:

java.lang.IllegalStateException: closed at okio.RealBufferedSink.write(RealBufferedSink.java:39) at okio.ForwardingSink.write(ForwardingSink.java:35) at com.facebook.react.modules.network.ProgressRequestBody$1.write(ProgressRequestBody.java:58) at okio.RealBufferedSink.flush(RealBufferedSink.java:216) at com.facebook.react.modules.network.ProgressRequestBody.writeTo(ProgressRequestBody.java:48) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:62) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:784)

React-Native dependencies & version:

{ "buffer": "^4.0.0", "react": "16.0.0", "react-dedux": "^0.4.0-beta.4", "react-native": "0.51.0", "react-native-animatable": "^1.3.1", "react-native-bluetooth-serial": "^1.0.0-rc1", "react-native-camera": "^1.4.1", "react-native-exception-handler": "^2.10.8", "react-native-image-crop-picker": "^0.21.3", "react-native-image-zoom-viewer": "^3.0.1", "react-native-linear-gradient": "^2.5.6", "react-native-page-scrollview": "^1.0.2", "react-native-restart": "0.0.13", "react-native-secharts": "^1.4.5", "react-native-swipe-list-view": "^1.5.3", "react-native-swiper": "^1.5.13", "react-navigation": "^2.12.1", "react-navigation-redux-helpers": "^3.0.2", "realm": "^3.0.0-beta.1", "redux-thunk": "^2.3.0" }

github-actions[bot] commented 4 years ago
:warning: Missing Environment Information
:information_source: Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.
a1005342094 commented 4 years ago

⚠️ Missing Environment Information ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.

This is a crash error caught by the application running after release packaging.

Symous commented 4 years ago

@a1005342094 any progress here?

github-actions[bot] commented 4 years ago
:warning: Missing Reproducible Example
:information_source: It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner.
github-actions[bot] commented 4 years ago
:warning: Missing Required Fields
:information_source: It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a new issue is created. Could you go back and make sure to fill out the template? You may edit this issue, or close it and open a new one.
stale[bot] commented 3 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue was closed because the author hasn't provided the requested feedback after 7 days.