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

App freezes #27

Open
suhlrich opened this issue Apr 12, 2023 · 21 comments
Open

App freezes #27

suhlrich opened this issue Apr 12, 2023 · 21 comments
Assignees
Labels
bug Something isn't working

Comments

@suhlrich
Copy link
Member

The app freezes during collection sometimes. The video on device screen freezes, and it stops pinging the server. Fine with close and restart. Any ideas @xhardcorex?

@suhlrich suhlrich added the bug Something isn't working label Apr 12, 2023
@xhardcorex
Copy link
Collaborator

I will investigate it

@xhardcorex
Copy link
Collaborator

Have someone faced this bug recently and could provide more details how to reproduce it? Unfortunately, I still can't reproduce it

@suhlrich
Copy link
Member Author

It has been a few weeks since someone has told us about it. We will check.

@suhlrich
Copy link
Member Author

The app froze for me today. Here's how it happened:

I had scanned a qr code, and after a few minutes, i got the "disable portrait mode" warning. The phone was oriented horizontally. I swiped up to see if portrait lock was on, and it was not. I then swiped up out of the app (did not close), then came back in. The "disable portrait mode" warning went away, but then the video viewfinder was frozen. I was able to press the gear, start a new session, and everything worked ok after that.

@xhardcorex
Copy link
Collaborator

@suhlrich I have configured observer for tracking capture session errors which can help us to catch freeze error. Do I need to present alert with the error description for this case or maybe do you have API which can I use to send logs on the backend? Thanks!

@suhlrich
Copy link
Member Author

suhlrich commented May 3, 2023 via email

@suhlrich
Copy link
Member Author

@xhardcorex - i got the app to freeze again today. I just stopped a recording and the viewfinder froze (it was also not uploading videos). Buttons were still working. Can we add a button to send logs when this happens? I did not get an alert on the device.

@suhlrich
Copy link
Member Author

@xhardcorex, if we want to send logs to server, we can upload a txt file the same way we do a video. Get an S3 link, then post using same parameters as we do for a video.

@xhardcorex
Copy link
Collaborator

Got it and will do. Now we have in the build 1.6(25) observer to catch this error and presents alert.

@suhlrich
Copy link
Member Author

suhlrich commented May 15, 2023

Thanks! Had the phones freeze this weekend, here is what I noticed.

  1. we got something like 'AVCapture Runtime Error' several times. On many of these, if you closed the app and re-opened, you could not get the camera viewer (just a fully blue screen). You couldn't even use the native camera app. It's like the app died without releasing the AVCapture socket or something. Restarting phone solved it. I can't say this for sure, but I have not seen this type of freezing behavior happen prior to release 1.6(25), but I haven't stress tested (24).
  2. sometimes it froze with no error shown. It looked like this happened when we stopped a recording (the person was still in frame)

@xhardcorex
Copy link
Collaborator

xhardcorex commented May 15, 2023

Could you please provide device model and iOS version of device you tested? Will you have a chance to record the screen(approximately for 10-15 seconds) when you stuck the freeze next time and share with me the video? Thanks!

@suhlrich
Copy link
Member Author

suhlrich commented May 15, 2023

It happened on these two devices:

iphone 12 Pro. ios 16.4.1 (20E252)
iphone 12. ios 16.4.1(a) (20E252)

And yes, next time I will take a video of the screen. Good idea.

@suhlrich
Copy link
Member Author

@xhardcorex would it be possible to have a button on the error dialog that shows up that says "send error message to developers." when they press it, we upload to the database just like a video?

Let's not push this before this weekend (we have a big data collection over the weekend and I'd like to use a stable build), but if we could have it sometime next week, that'd be awesome!

@xhardcorex
Copy link
Collaborator

@suhlrich Yes, I can implement it next week.

@xhardcorex
Copy link
Collaborator

@suhlrich Could I implement error dialog with possibility to send message with error?

@suhlrich
Copy link
Member Author

suhlrich commented May 25, 2023 via email

@xhardcorex
Copy link
Collaborator

Got it. Unfortunatelly Apple blocked possibility to send mails automatically without using "MFMailComposeViewController".
image

But we can connect API for sending messages like Brevo, Postmark or similar.

Also, I like to use Firebase Crashlytics for this case. We can track crashes, warnings, not critical issues. It's really powerful service that easy to setup and for free. Please take a look screenshot Crashlytics screenshot from one of my project. Let me know your thoughts.
Screenshot 2023-05-29 at 12 59 39

@suhlrich
Copy link
Member Author

Firebase Crashlytics seems like a great platform. Go ahead and set it up.

@suhlrich
Copy link
Member Author

suhlrich commented May 30, 2023

Here are the 2 types of crashes we've been getting.

First: the viewer freezes, seemingly after trial stopped and in process of uploading (person still in view). Without closing the app, you can get out of it by starting a new session. This crash has been happening for several months.

Video.May.21.1.44.42.PM.mp4

Second: the viewer freezes, you cannot get viewer to reappear with start new session or closing/restarting the app. The iphone camera app also will not work. Only sol'n I've found is restarting phone. The first version I noticed this crash on was 1.6 (24)

Video.May.21.4.10.31.PM.mp4

@xhardcorex
Copy link
Collaborator

Ok, I will integrate Firebase Crashlytics to the project and sort out crashes you provided above.

@xhardcorex
Copy link
Collaborator

@suhlrich Could you please provide list of emails of users to whom I should invite to Firebase?

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

2 participants