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.

Runtime Error: SIGABRT on fileprivate var connectedDevices = Dictionary<UUID, Peripheral>()

See original GitHub issue

I get this runtime error Runtime Error: SIGABRT on fileprivate var connectedDevices = Dictionary<UUID, Peripheral>() in BleClientManager:

screen shot 2017-05-03 at 3 19 12 pm

My code is:

class BluetoothList extends Component {
    componentWillMount() {
        this.manager = new BleManager(); // <------ HERE
        this.manager.onStateChange((newState) => {
          console.log("State changed: " + newState)
        })
        console.log('will mount test');
    }

    componentWillUnmount() {
        this.manager.destroy();
        delete this.manager;
    }

    render() {
       ...
    }
}

I am running on my device using Expo as a detached app. My dependencies are:

"dependencies": {
    "expo": "16.0.0",
    "react": "16.0.0-alpha.6",
    "react-native": "https://github.com/expo/react-native/archive/sdk-16.0.0.tar.gz",
    "react-native-ble-plx": "^0.4.0",
    "react-native-elements": "^0.11.2"
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Cierpliwycommented, May 10, 2017

Alternatively from root of your project you can execute below commands

cd node_modules/react-native-ble-plx/
./build_ios_frameworks.sh

to force rebuild of native libraries. Let me know if it helped.

0reactions
watadarkstarcommented, May 11, 2017

@Cierpliwy Yup that worked! Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Runtime Error: SIGABRT on fileprivate var connectedDevices ...
I get this runtime error Runtime Error: SIGABRT on fileprivate var ... fileprivate var connectedDevices = Dictionary<UUID, Peripheral>() #64.
Read more >
signal sigabrt error? | Apple Developer Forums
A SIGABRT (signal abort) error means that the app was deliberately crashed due to some really bad problem, like a runtime error during...
Read more >
So You Want to Build a Bluetooth App with React Native ... - G2i
Runtime Error : SIGABRT on fileprivate var connectedDevices = Dictionary<UUID, Peripheral>() — see this Github issue; RCTDefines not found ...
Read more >
How to start an app with Bluetooth using JavaScript (React ...
Hey there! As for now, we suggest using react-native-ble-plx as the best solution for making the connection between a React Native app and...
Read more >
Where am I causing this SIGABRT error when calling ...
Currently getting a SIGABRT crash exception thrown when my player changes teams ... struct PlayerInLobbyMenu: View { @EnvironmentObject var ...
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