Skip to content

camera_android: Camera.java pausePreview null check - #5265

Merged
auto-submit[bot] merged 12 commits into
flutter:mainfrom
PROGrand:patch-1
Nov 28, 2023
Merged

auto-submit[bot] merged 12 commits into
flutter:mainfrom
PROGrand:patch-1

Conversation

@PROGrand

Copy link
Copy Markdown
Contributor

Fix: Check captureSession before call to stopRepeating in pausePreview.

[camera_android] sometimes crashes on pausePreview #137544

If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the [CLA].
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
  • I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style].
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

Check `captureSession` before call to stopRepeating in pausePreview.
@PROGrand
PROGrand marked this pull request as ready for review October 30, 2023 15:49
@PROGrand
PROGrand requested a review from camsim99 as a code owner October 30, 2023 15:49

@camsim99 camsim99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! @stuartmorgan for second review

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • I added new tests to check the change I am making, or this PR is [test-exempt].

Where is this test?

Comment thread packages/camera/camera_android/CHANGELOG.md Outdated
@PROGrand

Copy link
Copy Markdown
Contributor Author

@stuartmorgan
Test added.

@camsim99
camsim99 self-requested a review November 16, 2023 19:33
@PROGrand
PROGrand requested a review from camsim99 November 26, 2023 08:18

@camsim99 camsim99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Over to @stuartmorgan

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks!

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 28, 2023
@auto-submit
auto-submit Bot merged commit fcb1272 into flutter:main Nov 28, 2023
@PROGrand
PROGrand deleted the patch-1 branch November 28, 2023 21:40
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 29, 2023
auto-submit Bot pushed a commit to flutter/flutter that referenced this pull request Nov 29, 2023
flutter/packages@3c05466...e4aaba8

2023-11-28 [email protected] [rfw, flutter_markdown] Prepare for removing dart:ui imports. (flutter/packages#5471)
2023-11-28 49699333+dependabot[bot]@users.noreply.github.com [pigeon]: Bump org.jetbrains.kotlin:kotlin-gradle-plugin from 1.9.20 to 1.9.21 in /packages/pigeon/platform_tests/test_plugin/android (flutter/packages#5483)
2023-11-28 [email protected] [flutter image] Changed image link to use image within package (flutter/packages#5326)
2023-11-28 [email protected] camera_android: Camera.java pausePreview null check (flutter/packages#5265)
2023-11-28 [email protected] [webview_flutter] Add listener for content offset (Platform Interface) (flutter/packages#5427)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
caseycrogers pushed a commit to caseycrogers/flutter that referenced this pull request Dec 29, 2023
flutter/packages@3c05466...e4aaba8

2023-11-28 [email protected] [rfw, flutter_markdown] Prepare for removing dart:ui imports. (flutter/packages#5471)
2023-11-28 49699333+dependabot[bot]@users.noreply.github.com [pigeon]: Bump org.jetbrains.kotlin:kotlin-gradle-plugin from 1.9.20 to 1.9.21 in /packages/pigeon/platform_tests/test_plugin/android (flutter/packages#5483)
2023-11-28 [email protected] [flutter image] Changed image link to use image within package (flutter/packages#5326)
2023-11-28 [email protected] camera_android: Camera.java pausePreview null check (flutter/packages#5265)
2023-11-28 [email protected] [webview_flutter] Add listener for content offset (Platform Interface) (flutter/packages#5427)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@reidbaker reidbaker mentioned this pull request Jan 12, 2024
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
Fix: Check `captureSession` before call to stopRepeating in pausePreview.

[camera_android] sometimes crashes on pausePreview [#137544](flutter/flutter#137544)

*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
Fix: Check `captureSession` before call to stopRepeating in pausePreview.

[camera_android] sometimes crashes on pausePreview [#137544](flutter/flutter#137544)

*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: camera platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants