Comments (10)
Thank you!
To give you a little more context, in my case I have a button that can switch between AR camera and normal camera. So if you choose to programmatically initialize and add ARSCNView
to the view hierarchy based on certain action. You'll have UIViewController
holding a strong reference to ARSCNView
, UIViewController
holding a strong reference to RecordAR
and RecordAR
holding a strong reference to ARSCNView
. And I saw in your source code RecordAR
also holds a strong reference to ARSCNView
's parent view controller which might cause a retain cycle (Didn't look too deep into the source code, I think this is the case).
from arvideokit.
Will investigate the issue and get back to you soon.
from arvideokit.
facing the same issue. RecordAR holding strong reference to the ARSCNView.
from arvideokit.
@mssjappjwt did you find any workaround for this like passing unowned or weak ARSCNView ?
from arvideokit.
how to fix
from arvideokit.
Facing same issue, app crashing..
from arvideokit.
Facing same issue, app crashing..
from arvideokit.
Taking a global strong reference to view object is a bad idea:
import Foundation
import ARKit
private var view: Any? // this must be instance & weak variable!
private var renderEngine: SCNRenderer! // instance variable too
@available(iOS 11.0, *)
struct RenderAR {
var ARcontentMode: ARFrameMode!
.....
... and other classes.
from arvideokit.
Feel free to submit a pull request with the fixes.
from arvideokit.
I have checked it, and with these changes component is deallocated. #82
from arvideokit.
Related Issues (20)
- Black Bars on video output HOT 2
- ARVideoKit forces app into portrait mode when starting from landscape left/right. HOT 3
- ARVideoKit License HOT 3
- Crash - [AVAssetWriterInput initWithMediaType:outputSettings:sourceFormatHint:]
- low FPS while recording videos!! HOT 4
- Recorded video shows flat texture on face tracking HOT 2
- Wrong aspect ratio for initial video recording on on iPhone 12 HOT 1
- Plane detection is shown blank HOT 2
- Person segmentation not being recorded HOT 3
- ARFaceTrackingConfiguration not recorder correctly HOT 4
- pod installation issue HOT 2
- high CPU usage HOT 4
- Surface shader result not recorded. HOT 3
- ARFaceTrackingConfiguration front camera audio recording not working.
- Job Open HOT 1
- Only working on iPhone X.
- App freezes for a moment when starting recording HOT 4
- when use ARVideoKit to record an ARSCNView, the loaded AR object shows black in the scene HOT 4
- Must start a session before appending pixel buffers
- How to make it work with RealityKit based project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arvideokit.