Closed Eladossa closed 5 years ago
We are automatically closing this issue because it does not appear to follow any of the provided issue templates.
Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.
If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose.
I get this error few seconds after the app is loaded (but not always, sometimes after few minutes).
Exception '-[NSNull length]: unrecognized selector sent to instance 0x1e6c059b0' was thrown while invoking multiSet on target AsyncLocalStorage with params ( ( ( "@Ye-Music:songs", "" ) ), 483 ) callstack: ( 0 CoreFoundation 0x00000001b646feb8 + 252 1 libobjc.A.dylib 0x00000001b5641a40 objc_exception_throw + 56 2 CoreFoundation 0x00000001b6388d04 + 0 3 CoreFoundation 0x00000001b64757b8 + 1412 4 CoreFoundation 0x00000001b647745c _CF_forwarding_prep_0 + 92 5 Exponent 0x0000000102d9bcc4 ABI28_0_0RCTFBQuickPerformanceLoggerConfigureHooks + 1608368 6 Exponent 0x0000000102d9c4b8 ABI28_0_0RCTFBQuickPerformanceLoggerConfigureHooks + 1610404 7 CoreFoundation 0x00000001b6477600 + 144 8 CoreFoundation 0x00000001b6355530 + 292 9 CoreFoundation 0x00000001b6356114 + 60 10 Exponent 0x0000000102dfd83c ABI29_0_0RCTFBQuickPerformanceLoggerConfigureHooks + 351016 11 Exponent 0x0000000102e04a5c ABI29_0_0RCTFBQuickPerformanceLoggerConfigureHooks + 380232 12 Exponent 0x0000000102e047b8 ABI29_0_0RCTFBQuickPerformanceLoggerConfigureHooks + 379556 13 libdispatch.dylib 0x00000001b5ea96c8 + 24 14 libdispatch.dylib 0x00000001b5eaa484 + 16 15 libdispatch.dylib 0x00000001b5e84fb0 + 548 16 libdispatch.dylib 0x00000001b5e85af4 + 412 17 libdispatch.dylib 0x00000001b5e8df14 + 584 18 libsystem_pthread.dylib 0x00000001b608c0dc _pthread_wqthread + 312 19 libsystem_pthread.dylib 0x00000001b608ecec start_wqthread + 4 ) ABI28_0_0RCTFBQuickPerformanceLoggerConfigureHooks ABI29_0_0RCTFBQuickPerformanceLoggerConfigureHooks ABI29_0_0RCTFBQuickPerformanceLoggerConfigureHooks
_pthread_wqthread start_wqthread
The function with AsyncStorage:
allSongs = () => { console.log('hello function!'); fetch(URL + "/SongsList", { body: null, //// sending null because its a view from SQL db method: "POST", headers: { Accept: 'application/json', "Content-type": "application/json; charset=UTF-8" } }) .then(res => { return res.json()}) .then((songsResult) => { AsyncStorage.setItem("@Ye-Music:songs", songsResult.d); }) .catch(err => { console.error(err); }); };
package.json :
"dependencies": { "@expo/samples": "2.1.1", "expo": "29.0.0", "react": "16.3.1", "react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz", "react-native-elements": "^0.19.1", "react-native-material-cards": "^1.0.9", "react-native-music-control": "^0.7.3", "react-native-music-player-service": "^0.1.4-beta", "react-native-search-header": "^0.3.0", "react-native-sound": "^0.10.9", "react-native-track-player": "^0.2.5", "react-navigation": "^2.9.3" },
if more details are needed and/or editing - please tell me and I'll make them.