Frustrating iOS Segmentation Fault
See original GitHub issueI am receiving a never ending and very frustrating segfault:
(UIKitApplication:org.nativescript.Mixx[0x64a1][1198][21655]): Service exited due to signal: Segmentation fault: 11 sent by exc handler[0]
Every now and then, i get:
(UIKitApplication:org.nativescript.Mixx[0x37aa][1198][24108]): Service exited due to signal: Trace/BPT trap: 5 sent by exc handler[0]
I found 2 solutions that exhibiting similar issues, but unfortunately didn’t resolve. The two closest cases I could find were: https://github.com/NativeScript/NativeScript/issues/4985 https://github.com/NativeScript/NativeScript/issues/4187
Tell us about the problem
iOS randomly crashes on load. I can’t get anything out of the logs that has any meaning. Sometimes the app will run for 30 seconds, then crash. Sometimes it crashes immediately when I try to switch tabs.
I’ve tried refactoring all my code to make sure there are no recursive calls or memory leaks. I’ve uninstalled all plugins, platforms, tried re-installing nativescript, etc to no avail. I even added the accordion fix recommended for the TabView here: https://github.com/NativeScript/NativeScript/issues/4821
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 4.0.0
- My Package.json
{
"description": "Mixx",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "https://github.com/ogmedia/Mixx/README.md",
"repository": "https://github.com/ogmedia/Mixx",
"nativescript": {
"id": "org.nativescript.Mixx",
"tns-android": {
"version": "3.4.2"
},
"tns-ios": {
"version": "4.0.1"
}
},
"scripts": {
"dev": "tns run android --bundle --env.snapshot",
"build": "tns build android --bundle"
},
"dependencies": {
"child-process-promise": "^2.2.1",
"nativescript-accordion": "^5.0.3",
"nativescript-bitmap-factory": "^1.7.1",
"nativescript-carousel": "^3.1.1",
"nativescript-geolocation": "^4.2.3",
"nativescript-google-maps-sdk": "^2.5.0",
"nativescript-imagepicker": "^5.0.0",
"nativescript-permissions": "^1.2.3",
"nativescript-plugin-firebase": "^5.2.0",
"nativescript-theme-core": "^1.0.4",
"tns-core-modules": "^4.0.0-2018-04-10-01"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"chai": "^4.1.2",
"copy-webpack-plugin": "~4.3.0",
"css-loader": "~0.28.7",
"express": "^4.16.2",
"extract-text-webpack-plugin": "~3.0.2",
"fs-extra": "^5.0.0",
"karma": "^2.0.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-junit-reporter": "^1.2.0",
"karma-mocha": "^1.3.0",
"karma-nativescript-launcher": "^0.4.0",
"lazy": "1.0.11",
"mocha": "^5.0.4",
"nativescript-dev-webpack": "^0.9.2",
"nativescript-worker-loader": "~0.8.1",
"node-sass": "^4.8.1",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~2.2.1",
"uglifyjs-webpack-plugin": "~1.1.6",
"webpack": "~3.10.0",
"webpack-bundle-analyzer": "^2.9.1",
"webpack-sources": "~1.1.0"
}
}
I have removed just about every JS component, and it’ll still crash after a certain amount of time, which leads me to believe this is some sort of configuration error, or related to the google-maps-sdk plugin, firebase crash reporting or maybe even the cocoapods.
Everything was running fine up until about a week ago. I’m nearly at my wits end here. Unfortunately I can’t share the code, as it’s in a private repo, but after the giant cleanup I went through, i highly doubt this is a code issues, and probably a plugin/config issue.
I’m going to try gutting the whole thing and reinstalling all the plugins and platforms, but no joke I must have done it about 100 times over the last week.
My Tab XML:
<Page
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:customTab="views/tabs"
class="page" navigatingTo="navigatingTo"
id="homePage"
actionBarHidden="true"
xmlns:maps="nativescript-google-maps-sdk"
>
<TabView id="tabViewMain" class="tab-view">
<TabView.items>
<customTab:map />
<customTab:search />
</TabView.items>
</TabView>
</Page>
and the map page:
<TabViewItem android:title="HOME"
loaded="mapTabLoaded" ios:title="HOME"
xmlns:maps="nativescript-google-maps-sdk"
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:accordion="nativescript-accordion"
>
<TabViewItem.view >
<AbsoluteLayout width="100%" height="100%">
<StackLayout top="0" left="0" height="100%" width="100%" backgroundImage="res://skeletonmap">
<accordion:Accordion height="720" id="accordionLayout" items="{{items}}" visibility="hidden">
<accordion:Accordion.itemTemplate>
<StackLayout backgroundColor="#efefef" height="720" width="100%" backgroundImage="res://skeletonmap">
<maps:mapView mapReady="onMapReady"
height="100%"
width="100%"
zoomGesturesEnabled="false"
scrollGesturesEnabled="false"
myLocationButtonEnabled="false"
/>
</StackLayout>
</accordion:Accordion.itemTemplate>
</accordion:Accordion>
</StackLayout>
<StackLayout top="0" left="0" margin="8" width="100%">
<StackLayout backgroundColor="#FFFFFF">
<TextField onFocus="clearAddress" required="required" height="40" id="placeAddress" class="input" hint="Location"></TextField>
</StackLayout>
<StackLayout>
<StackLayout orientation="vertical" background="transparent">
<StackLayout id="placeAutoFill" visibility="collapse" backgroundColor="#FFFFFF" height="auto" tap="clearTextfieldFocus"></StackLayout>
</StackLayout>
</StackLayout>
</StackLayout>
<StackLayout left="0" top="0" marginTop="330" width="100%">
<ScrollView orientation="horizontal" height="240" backgroundColor="transparent">
<StackLayout orientation="horizontal" id="event-sv">
<StackLayout height="220" width="140" margin="4">
<Image src="res://skeletoncard" />
</StackLayout>
<StackLayout height="220" width="140" margin="4">
<Image src="res://skeletoncard" />
</StackLayout>
<StackLayout height="220" width="140" margin="4">
<Image src="res://skeletoncard" />
</StackLayout>
</StackLayout>
</ScrollView>
</StackLayout>
</AbsoluteLayout>
</TabViewItem.view>
</TabViewItem>
PS. This runs PERFECT on android. There must be something going on here, because even if I comment and remove ALL JS. the app will STILL crash after a few moments.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Thanks, I found it: https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/664
It’s an issue with the firebase config. Feel free to close.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.