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 crash opening camera #85

Open
wayne800 opened this issue Sep 21, 2021 · 7 comments
Open

iOS crash opening camera #85

wayne800 opened this issue Sep 21, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@wayne800
Copy link

iOS: This crash is gone without starting Atlantis.

Screen Shot 2021-09-21 at 4 00 50 PM

@NghiaTranUIT NghiaTranUIT self-assigned this Sep 22, 2021
@NghiaTranUIT NghiaTranUIT added the bug Something isn't working label Sep 22, 2021
@NghiaTranUIT
Copy link
Member

Thanks, I will check out this week 👍

@NghiaTranUIT
Copy link
Member

@wayne800 Just wondering: Have you still encountered this crash on the latest Atlantis version 🤔

and what iOS version are you using? I test on iOS 15 and I could not reproduce it anymore 😄

@swiatrzyk
Copy link

swiatrzyk commented Jan 24, 2022

I'm also experiencing app crashes inside Atlantis after Proxyman update to 3.0.0. Crashes doesn't occur on the previous version (v2.35.4)

@wayne800
Copy link
Author

We do have the crash in iOS 15 or above.

@zhejia0428
Copy link

Working with @wayne800 we discovered the crash breakpoint is inside a Proxyman method.
Screen Shot 2022-03-17 at 1 16 28 PM

@NghiaTranUIT
Copy link
Member

Thanks @zhejia0428 @wayne800. I'm working on it now 👍

@NghiaTranUIT
Copy link
Member

@zhejia0428 @wayne800

I tested with iOS Simulator 15.2 and My iPad 15.2, but I could not reproduce it. The code is successfully executed without crashing.

Screen Shot 2022-03-18 at 13 36 23

Code

    @IBAction func uploadBtnOnClick(_ sender: Any) {
        let data = "123".data(using: .utf8)!

        DispatchQueue.global(qos: DispatchQoS.QoSClass.background).async {
            let request = try! URLRequest(url: "https://httpbin.org/anything", method: .post, headers: nil)
            let task = URLSession.shared.uploadTask(with: request, from: data) { data, _, _ in
                if let data = data {
                    print(String(data: data, encoding: .utf8))
                }
            }
            task.resume()
        }

    }

  1. It seems you're using the old Atlantis version, please try to upgrade to Atlantis 1.6.0 and test again 👍
  2. If you don't mind, please share with me Upload Swift code? I would like to run on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants