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

Crashes app when backgrounded on iOS #1

Closed
BWhiteApps opened this issue Dec 7, 2022 · 3 comments
Closed

Crashes app when backgrounded on iOS #1

BWhiteApps opened this issue Dec 7, 2022 · 3 comments

Comments

@BWhiteApps
Copy link

This package causes my iOS app to crash in the background with an exc_bad_access error:

'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x16b95bf70)
frame #0: 0x00000001d3767e38 UIKitCore-[UIView(Internal) _presentationControllerToNotifyOnLayoutSubviews] + 4 UIKitCore-[UIView(Internal) _presentationControllerToNotifyOnLayoutSubviews]:

This error is resolved when I remove the no_screenshot package from my app.

One thing to note is that it crashes on background even if it isn't being used with AppLifecycleState.

@MrShafqatNadeem
Copy link

I have got the same issue, it crashes my app after a while. erroring that app consumes so much space,
XPC connection interrupted

  • thread Crashes app when backgrounded on iOS #1, queue = 'com.apple.main-thread', stop reason = EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=2098 MB, unused=0x0)
    frame #0: 0x00000001d061016c libsystem_malloc.dylibsmall_free_list_add_ptr + 268 libsystem_malloc.dylibsmall_free_list_add_ptr:
    -> 0x1d061016c <+268>: strb w13, [x2, #0x8]
    0x1d0610170 <+272>: str xzr, [x2]
    0x1d0610174 <+276>: eor x13, x9, x0
    0x1d0610178 <+280>: eor x12, x13, x12
    Target 0: (Runner) stopped.

@fonkamloic
Copy link
Contributor

Thank you, @BWhiteApps and @MrShafqatNadeem, for raising this issue.

We will be pushing a fix by the end of the day.

fonkamloic added a commit to fonkamloic/no_screenshot that referenced this issue Jan 7, 2023
@fonkamloic
Copy link
Contributor

Issue fixed. https://pub.dev/packages/no_screenshot

Thank you again for your contributions

fonkamloic added a commit that referenced this issue Jan 7, 2023
…n_ios

fix: fixed issue #1, crashed app when backgrounded on ios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants