question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: {Name} has stopped, open app again

See original GitHub issue
  • App crashes without an error after selecting image from album or clicking camera.

Description

It had been worked properly but suddenly start giving error. App crash line of console.log(‘Camera open’), only this line print in debug. ImagePicker.showImagePicker(options, (response) not responding anything.

How to repeat issue and example

import ImagePicker from 'react-native-image-picker';

onPressUploadProfileImageButton = () => {
    console.log('Camera open');
    this.setState({ isDone: true });
    ImagePicker.showImagePicker(options, (response) => {
      console.log('Response = ', response);

      if (response.didCancel) {
        this.setState({ isDone: false });
      	console.log('camera picture did cancel');
      }
      else if (response.error) {
        this.setState({ isDone: false });
        console.log('camera picture did error');
      }
      else {
        console.log('camera picture else condition');
        this.setState({ isDone: false });
        let source = { uri: response.uri };
        console.log('source ===>>', source);
        let sourceData = { uri: `data:image/jpeg;base64,${response.data}`, isStatic: true, data: response.data };
				this.setState({ file:sourceData.data });
        this.setState({
          avatarSource: source
        });
      }
    });
};

AndroidManifest.xml

   <uses-permission android:name="android.permission.INTERNET" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
   <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
   <uses-permission android:name="android.permission.CAMERA" />
   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Additional Information

  • React Native version: “0.41.0”
  • react-native-image-picker@latest
  • Platform: iOS, Android Both
  • Development Operating System: MacOS
  • Dev tools: Xcode 8.3.2 and Android Studio 2.3 , iOS 10 or Android SDK version more than 7.1

All step of installation

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
stale[bot]commented, Jul 27, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a “discussion” and I will leave this open.

0reactions
stale[bot]commented, Aug 3, 2019

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Error Unfortunately App Has Stopped on Android - EaseUS
Common Ways to Fix The Error "Unfortunately app has stopped" · Method 1. Re-install the app. We suggest you take the method for...
Read more >
Fix: Unfortunately, (App Name) Has Stopped - Appuals
Go to Settings. Navigate to the device's Application Manager. Look for and tap on the affected app. Press Uninstall updates. Run the app....
Read more >
7 Ways to Fix 'Unfortunately, App Has Stopped' Error on Android
2. Force Stop the App · Open the Settings on your phone · Go to App & Notifications and tap See all apps....
Read more >
Fixed “Unfortunately App Has Stopped” Error On Android [11 ...
Open the Settings app. Go to the Apps. Tap on the app that is experiencing the problem. Hit on the “Storage” option. You...
Read more >
How to Fix Unfortunately App has Stopped Error on Android
Steps to perform a factory reset to fix “Unfortunately, <app name> has stopped” error. Step #1: Open the Settings menu on your Android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found