Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 [iOS] app is killed with signal 9 when put in background #336

Closed
noway opened this issue Mar 24, 2022 · 5 comments · Fixed by #340
Closed

🐞 [iOS] app is killed with signal 9 when put in background #336

noway opened this issue Mar 24, 2022 · 5 comments · Fixed by #340
Assignees
Labels

Comments

@noway
Copy link

noway commented Mar 24, 2022

Configuration

  • App Version: N/A
  • SDK Version: Mapbox-iOS-SDK 6.3.0
  • OS Version: 15.3.1
  • Device: iPhone 7 Plus

Steps to Reproduce
I'm using react-native-mapbox-gl and trying to play audio in background. The map is shown when the audio starts playing.

  1. Start playing audio
  2. Lock the phone
  3. Wait about a minute or so
  4. App is killed with "Message from debugger: Terminated due to signal 9" message.

I have both location and audio UIBackgroundModes yet it still happens.
image

I suspect the app is killed because of the background task that MapboxMobileEvents creates. See the logs bellow.

Expected

  1. The app not to be killed by OS

Logging
2022-03-24 11:54:31.101062+1300 myapp[8916:3189929] [BackgroundTask] Background Task 27 ("Called by MapboxMobileEvents, from -[MMEUIApplicationWrapper beginBackgroundTaskWithExpirationHandler:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.

@noway noway added the bug label Mar 24, 2022
@noway noway changed the title 🐞 [iOS] risk of termination due to background task 🐞 [iOS] app is killed with signal 9 when put in background Mar 24, 2022
@vayesh vayesh self-assigned this Mar 24, 2022
@vayesh
Copy link
Contributor

vayesh commented Mar 24, 2022

@noway Could you specify the version of MapboxMobileEvents.xcframework you are using?

@noway
Copy link
Author

noway commented Mar 24, 2022

@vesh93 I'm using version 0.10.13.

@vayesh
Copy link
Contributor

vayesh commented Mar 25, 2022

@noway Thanks. There are no similar known issues for this version. I'll investigate it and get back to you.

@vayesh
Copy link
Contributor

vayesh commented Apr 6, 2022

The issue is reproduced locally, looking for a fix.

@vayesh
Copy link
Contributor

vayesh commented Apr 21, 2022

@noway The issue should be fixed in v1.0.8. Could you please validate the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants