Skip to content

Conversation

@navaronbracke
Copy link
Collaborator

Fixes #1545

// FlutterTexture
public func copyPixelBuffer() -> Unmanaged<CVPixelBuffer>? {
if latestBuffer == nil {
guard let buffer = latestBuffer else {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case, also use a guard let here

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.35%. Comparing base (61b2f8a) to head (a020044).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1564      +/-   ##
===========================================
- Coverage    38.45%   38.35%   -0.11%     
===========================================
  Files           42       42              
  Lines          996      996              
===========================================
- Hits           383      382       -1     
- Misses         613      614       +1     
Flag Coverage Δ
unittests 38.35% <ø> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

func updateScanWindow(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) {
let argReader = MapArgumentReader(call.arguments as? [String: Any])
let scanWindowData: Array? = argReader.floatArray(key: "rect")
let scanWindowData: [CGFloat]? = argReader.floatArray(key: "rect")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was indeed [CGFloat]? in the arg reader


DispatchQueue.main.async {
// If the image is nil, use zero as the size.
guard let image = cgImage else {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is no longer needed

@navaronbracke
Copy link
Collaborator Author

@juliansteenbakker I would like to release this as the definitive 7.1.3 version, since it hotfixes a rather annoying bug on iOS / MacOS.

Copy link
Owner

@juliansteenbakker juliansteenbakker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Tested on iPhone, and did not see any difference with current version.

@navaronbracke navaronbracke merged commit 3d8565f into juliansteenbakker:develop Oct 22, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] EXC_BREAKPOINT crash in captureOutput when VTCreateCGImageFromCVPixelBuffer fails

3 participants