-
Notifications
You must be signed in to change notification settings - Fork 6
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
Memory warings and app crashs. #2
Comments
Too little information for this problem. Can you tell me how your code working?
If you create CIImage yourself, do remember release it as soon as possible.
Are you adding filter to a video with high quality? Memory issues and CPU usage problem is hard to solve when you try to do CIFilter to a huge pixbuffer.
发自我的 iPhone
… 在 2017年11月1日,下午9:38,5ysourcesafe ***@***.***> 写道:
Hi bottotl,
Can you please help with the below memory warings and app crashs.
2017-11-01 18:50:48.364536+0530 Edovi[21650:6364194] [MC] Invalidating cache
2017-11-01 18:51:03.619378+0530 Edovi[21650:6351902] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 18:51:03.646973+0530 Edovi[21650:6351902] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 18:51:03.688721+0530 Edovi[21650:6351902] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 18:51:21.358407+0530 Edovi[21650:6351901] [GatekeeperXPC] Connection to assetsd was interrupted or assetsd died
2017-11-01 18:51:36.579644+0530 Edovi[21650:6347783] Got memory pressure notification (non-critical)
2017-11-01 18:51:43.767365+0530 Edovi[21650:6347783] System is no longer under (non-critical) memory pressure.
2017-11-01 18:52:15.053472+0530 Edovi[21650:6373407] [MC] Invalidating cache
2017-11-01 18:52:15.315994+0530 Edovi[21650:6351902] [MC] Invalidating cache
2017-11-01 18:53:10.168759+0530 Edovi[21650:6347783] Got memory pressure notification (non-critical)
2017-11-01 18:53:34.551883+0530 Edovi[21650:6364194] [MC] Invalidating cache
2017-11-01 18:53:34.748212+0530 Edovi[21650:6364194] [MC] Invalidating cache
2017-11-01 18:54:20.383428+0530 Edovi[21650:6347783] System is no longer under (non-critical) memory pressure.
2017-11-01 18:54:40.657309+0530 Edovi[21650:6388455] [MC] Invalidating cache
2017-11-01 18:54:40.865958+0530 Edovi[21650:6351903] [MC] Invalidating cache
2017-11-01 19:00:03.209629+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.236189+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.257170+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.276643+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.295550+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.316632+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.338264+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.357406+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.376734+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.395740+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.420811+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.440474+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.459381+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:08.752881+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Check this things
Here are some code here.
|
The code you reply in the mail have some problem:
same like you playback video by doing following things:
this is not look like a good way. Use CVPixelBufferRef replace of UIImage. Using AVFoundation for playback is very simple. |
20 mins…I have never tried this kind of video before. I may do some test tonight.
Any thing about this video’s media info, it may help me to find out a way to solve this problem.
… 在 2017年11月2日,下午1:06,5ysourcesafe ***@***.***> 写道:
Hi bottotl,
Thanks for providing information.
But now i am using your sample code to add filters for video with 20 mins(indiv) video
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AJYdTWaZqInYYjan2ay29yGimexMX9-aks5syU3ZgaJpZM4QONpL>.
|
Thanks for you response bottotl. I am try to merge multiple videos with different filters and transitions to individual videos added by the user into project. Can it is possible to unlimited time to export video. |
Are you using JFTAVAssetExportSession for export?
… 在 2017年11月2日,下午2:07,5ysourcesafe ***@***.***> 写道:
Thanks for you response bottotl.
I am try to merge multiple videos with different filters and transitions by the user added to project.
But i tried to export video with 20 to 30 mins it crash app with memory usages 60 to 70 MB only but the other process will use around 700 to 800MB can you pls help on this.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AJYdTYTt-AlxUPd3UprnT6Ry5KILpfeyks5syVwTgaJpZM4QONpL>.
|
Yes i am using JFTAVAssetExportSession |
Ok, I will see this later.
If you are in hurry, you can try to use AVAssetExportSession replace of this class.
AVAssetExportSession don’t gave enough size to choice,so I wrote this simple class to solve this.
I know it is not reliable long time ago….
… 在 2017年11月2日,下午3:03,5ysourcesafe ***@***.***> 写道:
JFTAVAssetExportSession
|
It works fine when I try to export a video about 2G on my iPhone7 iOS 11.1 . Instruments no leak, app no crash.I found some little leak but not very serious, I will fix this leak this weekend. It do have huge leak problem when use CIContext in simulator.I found some one have the same problem |
@5ysourcesafe
I add some protection when memory warning happen. |
My co-worker tell me, consider CIContext do have memory issues(in it's black box), use OpenGL to apply Filter to image can solve memory problem. |
Hi bottotl,
Can you please help with the below memory warings and app crashs.
crashes the app with this case
Got memory pressure notification (critical)
2017-11-01 18:50:48.364536+0530 Edovi[21650:6364194] [MC] Invalidating cache
2017-11-01 18:51:03.619378+0530 Edovi[21650:6351902] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 18:51:03.646973+0530 Edovi[21650:6351902] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 18:51:03.688721+0530 Edovi[21650:6351902] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 18:51:21.358407+0530 Edovi[21650:6351901] [GatekeeperXPC] Connection to assetsd was interrupted or assetsd died
2017-11-01 18:51:36.579644+0530 Edovi[21650:6347783] Got memory pressure notification (non-critical)
2017-11-01 18:51:43.767365+0530 Edovi[21650:6347783] System is no longer under (non-critical) memory pressure.
2017-11-01 18:52:15.053472+0530 Edovi[21650:6373407] [MC] Invalidating cache
2017-11-01 18:52:15.315994+0530 Edovi[21650:6351902] [MC] Invalidating cache
2017-11-01 18:53:10.168759+0530 Edovi[21650:6347783] Got memory pressure notification (non-critical)
2017-11-01 18:53:34.551883+0530 Edovi[21650:6364194] [MC] Invalidating cache
2017-11-01 18:53:34.748212+0530 Edovi[21650:6364194] [MC] Invalidating cache
2017-11-01 18:54:20.383428+0530 Edovi[21650:6347783] System is no longer under (non-critical) memory pressure.
2017-11-01 18:54:40.657309+0530 Edovi[21650:6388455] [MC] Invalidating cache
2017-11-01 18:54:40.865958+0530 Edovi[21650:6351903] [MC] Invalidating cache
2017-11-01 19:00:03.209629+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.236189+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.257170+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.276643+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.295550+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.316632+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.338264+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.357406+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.376734+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.395740+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.420811+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.440474+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:03.459381+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
2017-11-01 19:00:08.752881+0530 Edovi[21650:6351903] [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil.
The text was updated successfully, but these errors were encountered: