-
-
Notifications
You must be signed in to change notification settings - Fork 35
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 lifecycle problems #26
Comments
Hey @clbemre, thanks for this ticket! I'm currently busy developing an update for our other library (NavigationView), but I'll be back here as soon as I finish that task (probably at the end of this week). I hope it suits you, thanks again for your ticket and have a nice day, |
Hello again @FulcrumOne, thank you for your interest. Additionally, when there is a CameraPreview screen displayed, if I display an alert on the screen with The alert appears on the preview screen, but this situation when the cancel button is pressed. So, disappeared preview screen. I think this alert problem and the background/foreground problem of the application that I mentioned before are caused by the same problem. Additionally, I’m just curious, why do you use |
Hello again @FulcrumOne, when will you fix these issues? or will? Thank you. |
hey @clbemre, Sorry, had a lot of work related to our other libraries. In my calendar, work on this library is scheduled to start this Thursday Apologies for the "communication issues" once again; I believe creating a Discord / Slack channel would help us stay better connected and updated on things related to libraries. I'll try to organize it this week 😉 Have a great day, |
Thank you @FulcrumOne , I will be waiting for your response. Have a nice day. |
Hello again, @FulcrumOne , have you started this issues solutions? I'm sorry for bothering you but its a little important for me :) |
Hey, I'm starting this evening😉 Hope it will be ready by the weekend |
This is great! Thank you :) Good luck :) |
hey @clbemre, just to confirm - you're telling that you experienced a crash when you backgrounded the app and then returned to the foreground, correct? |
@clbemre, that second problem (with alert and crash I was able to reproduce, so I'll start from this one) |
Hello again @FulcrumOne Additionally , independently of these, the snapshot and blurview you showed while flipping the camera are turned landscape. Sorry for my english, sometimes i use translate :) |
hey @clbemre, No problem, English is not my native language either (it would be nice if we both spoke Polish 😅) Could you please test the branch called 'patch-1.2.1', it should fix your problem with alert that causes the app to crash? |
Hey @FulcrumOne this temporary solution works. Thank you. 💪🏻 (we can't speak Polish, I'm Turkish 😀) |
hey @clbemre, thanks for letting me know! I want to spend some time today and check the library for problems with memory leaks, and then I will move on to fixing this issue with the background mode. |
Hey @FulcrumOne , also we have a little problem :) when First launch MCameraController, the system want to permission. If I deny the system permission, the UI does not update and switch to the error view, the camera layer visible black view. |
@clbemre I'll have to spend little more time on this task, as the problem is little bigger than I initially thought; there are several problems that I discovered today. I'll keep you in the loop😉 |
okey @FulcrumOne thank you for your response. I'll be wating for you. Good luck :) |
Hey @clbemre, So we have two potential solutions to our problem:
Therefore, I think that, in the long term, a better solution will be to implement point 1. What do you think? |
The branch named
|
I cannot reproduce this problem unfortunately. However, there is a chance that this branch has already fixed the issue. If not, please let me know |
@FulcrumOne Hello, Is the temporary solution not sufficient at the moment?
|
I'm working on this now. If you need a faster solution, I strongly recommend locking the rotation for the current screen ( |
I noticed this about this problem. When I tested it on the iPhone X, it rotates, but when I tested it on the iPhone 11 Pro Max, it does not rotate. I also completely turned off the device rotation, it only works in portrait mode. |
This temporary solution was a bit unstable and caused other problems (the error screen was not displayed for example). I would therefore recommend using the |
Okey I will, thank you for your interest and for this great library :) |
Thanks! If you have any further problems, let me know😉 PS. Check out our other solutions too! |
Hello @FulcrumOne , So now we can create MJCameraController(manager: .init()), is it correct? Additionally, when Camera first opened, Flip transition and back/front camera transition works very slow now(I think there is too much UI rendering going on). Also, there is a delay when opening for the first time and it opens late. I'm not sure but I think when I click the apply media button while on the preview screen. the UI freezes for a while because I show an alert after clicking apply, normally it would appear immediately, now it appears after a few seconds, I think the UI is not rendering. Also, when i preview video screen and i have a alert, alert is gone when replayed video. There is too much rendering issue. Actually, just the .equatable() temproray solution works nicely. Whats problem for .equatable() solutions. |
@FulcrumOne and , I applied patch-1.2.1-beta. but if i remove Equatable and .equatable() modifier, still i am getting crash, I guess, its have to stay, is it correct? I’m just curious, why do you use DispatchQueue.main.async { [self] in } instead of DispatchQueue.main.async { [weak self] in } ? :) |
@FulcrumOne I have checked just before and applied. But still;
thank you 🙏🏻 |
sorry, also The UI update failure error regarding system permission deny also persists. |
Ok, I was able to see the second problem, but the one with the invisible grid I still cannot debug Give me five minutes, I'll fix the problem with error screen and then we'll focus on the grid. |
I have tried it on 2 different real devices, the grids do not appear neither at the first init method nor with the on/off grid button. 😬 |
I'm sorry :/ but Also, something like this happens, I start recording a video and the screen refreshes at that moment and the video starts recording, normally it would start directly. But now, because the screen is refreshing, the frame before I press the button appears on the screen momentarily and disappears, a UI bug. 😥 |
could you show me a video please? |
RPReplay_Final1720443778_480.mov@FulcrumOne |
(Deleted Video) I took a more clear video, focus on the bottom left corner and notice a momentary view appearing and disappearing. , can you take a quick look? because I'm going to delete it :D |
should be fixed now |
Oh, now I see it. i'll try to fix it this night, and if I don't fix it then, I'll have to move it to Wednesday unfortunately😉 |
@FulcrumOne okey thank you again 🙏 |
Btw, just to be sure, because the both problems (invisible grids and flashing views) are not present in demo app I'm using for testing; are you sure it's not caused by some UI elements of your app? And if so, could you please prepare the code for me that I can use to reproduce the bug? Thanks in advance! 😅 |
I can check again, but firstly could you send me your demo project ? |
https://github.com/Mijick/CameraView-Demo, branch |
@FulcrumOne Hey I have found issue, The problem was caused by me, when I pressed the record button, I was setting captureSession.sessionPreset = .hd1280x720. This was causing a rendering problem on the screen. It was fixed when I deleted the code. Also, the system permission alert problem and the gird visibility problem were solved. Everything is perfect now, thank you very much for your interest. We don't have any other problems that I know of. 🙏🏻🙏🏻 |
I'm super glad to hear it! I'll fix some other bugs I noticed and release version 2.0.0. Thanks for your support and see you soon!⚡️ |
Thank you. 🙏 I’ll be waiting for 2.0.0 :) Good luck Have a nice day. |
Hello again @FulcrumOne , in CameraManager, you add observers but you don't remove. maybe you can add or Do you have any spesific reason you don't remove observer? |
Ahh, you're literally a life saver. I totally missed it. Thanks! |
Haha, every time, thank you too:) |
Fixed! I also changed the rotation animation a bit + fixed some other issues. Could you please check the latest commits and give me your feedback? Thanks a lot! PS. The version was published to the main branch ;) |
feat: - (BREAKING) CameraManager must now be declared in the view containing the MCameraController - Added attribute to indicate whether the user has blocked screen rotation fix: - Fixed a problem with screen rotation (#15) - Video mirroring effect is now visible in the camera's live view - Fixed a problem when app goes into the background and returns to the foreground (#26) - Fixed an issue with a library causing the application to crash at random moments (#26) - Fixed an issue with an error screen not displaying when permissions were rejected during the first launch (#26) - Fixed other minor UI problems
@FulcrumOne Hey, I'll check as soon as. Thank you for the information. |
@FulcrumOne Hello again, everything is good. but just i want to say something. When I rotate to landscape mode my phone, the camera lens changes and goes into close-up mode. It would be better if this was optional, because I don't want it to go into close-up mode when I rotate it landscape. If there is a option, I don't know, I didn't see. :) Other than that, everything is fine, well done. |
Hey, could you show me the video of the problem you described? Thanks! |
@FulcrumOne Sorry I had turned some things off. So I couldn't re-run the error scenario. If I encounter this error again, I will let you know. |
@clbemre, thanks! |
Hello, firstly this is a great framework.
I have a problem. When the application goes to the background and comes to the front again, the image or video preview closes and returns to the shooting screen, this is a problem, the second problem is that when I try to shoot again after this scenario, I get a crash.
Why doesn't the app continue where I left off when I put it in the background and then bring it back to the foreground?
var cameraView: UIView { cameraLayer.superview ?? .init() }
-> and i get a crash for take a picture after background/foregroung. Because I guess CameraInputView is being recreated.Thank you
The text was updated successfully, but these errors were encountered: