This message was deleted.
# helpdesk
s
This message was deleted.
d
Hey @billowy-father-22162 we are aware of the issue. As mentioned before, we are currently focused on a few other things. I hope we'll be able to get to this one soon.
b
Thank you, everyone. I apologize for the pressure. We intended to integrate the LiveKit SDK into our product for a client in the near future, but our testers are still facing issues with this problem. The problem has now extended to another platform, specifically 13.6.1, where streaming is causing crashes. I have just updated the GitHub issue. This situation is proving to be difficult for us.
b
Hello, I couldn't reproduce the crash, but I've found some incorrect frame cropping which I fixed in
main
. Can you try it out ?
b
Okay, I will try, which version?
Or branch?
d
main
branch
b
Oh, my apologies! I initially thought 'main' referred to the app's delegate main method 😅. Is it deliberate that screen capturing using the
sources
static method from MacOSScreenCapturer is now exclusively available starting from macOS 12.3? Additionally, all components associated with MacOSScreenCapturer are only accessible from macOS 12.3 onward.
I have an crash on thread LiveKitSDK.webRTC, a stack trace and error is on screenshots.
I starts preview of displays using code:
Copy code
Task {
                // stop in parallel
                await withThrowingTaskGroup(of: Void.self) { group in
                    for track in tracks {
                        group.addTask {
                            try await track.stop()
                        }
                    }
                }
      
                
                Task {
                    // stop in parallel
                    await withThrowingTaskGroup(of: Void.self) { group in
                        for track in tracks {
                            group.addTask {
                                try await track.stop()
                            }
                        }
                    }
                    
                    let sources = try await MacOSScreenCapturer.sources(for: .display)
                    let options = ScreenShareCaptureOptions(dimensions: .h360_43, fps: 5)
                    let _newTracks = sources.map { LocalVideoTrack.createMacOSScreenShareTrack(source: $0, options: options) }
                    
                    Task { @MainActor in
                        self.tracks = _newTracks
                    }
                    
                    // start in parallel
                    await withThrowingTaskGroup(of: Void.self) { group in
                        for track in _newTracks {
                            group.addTask {
                                try await track.start()
                            }
                        }
                    }
                }
And error is associated with line
Copy code
let _newTracks = sources.map { LocalVideoTrack.createMacOSScreenShareTrack(source: $0, options: options) }
@better-house-11852 I noticed the cool changes you made to the repository, so I tested them in relation to the last error. Unfortunately, it still occurred in the same way. 😞
b
Ok, if you are using
main
branch, can you add
-ObjC
to
Other linker flags
build option in Xcode ?
b
After adding ObjC flag preview had started working, thanks. Now I need to make changes in initialisation, because there are some issues on my side. Thanks!
b
Thanks for the update.
b
Great news! I've tested the changes you made, and the problem is resolved. Thank you so much for your help. However, I've identified two additional issues, and I've provided detailed comments in the GitHub issue task: https://github.com/livekit/client-sdk-swift/issues/266.