### Is there an existing issue for this?
- [X] I have searched the [existing …issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)
### Steps to reproduce
This looks similar to the link below.
https://github.com/flutter/flutter/issues/127384
But it's not an indefinite suspension.
The test steps are as follows:
## Test Step.
1. Create a new project through flutter create test
2. After building the app, go to the home screen and wait a few minutes.
3. Load the test app in the background using the button at the bottom right of the device.
4. Black screen exposure
The same thing happens when I run Flutter apps from several other companies that I know of.
Also, the current version of Flutter is 3.13.5, but it will not change even if it is upgraded to 3.16.2.
If the app's screen is transparent or has a black background and you guess where the screen movement button would be and touch it, the app will be routed normally.
### Expected results
The app should restart normally.
### Actual results
The app appears with a transparent or black background.
### Code sample
just create new project using ```flutter create test```
### Screenshots or Video
_No response_
### Logs
<details><summary>Logs</summary>
```console
2023-12-06 16:40:32.139 4556-4556 ViewRootIm...nActivity] com.example.test_app I handleAppVisibility mAppVisible = false visible = true
2023-12-06 16:40:32.140 4556-4556 ViewRootIm...nActivity] com.example.test_app I stopped(false) old = true
2023-12-06 16:40:32.141 4556-4556 ViewRootIm...nActivity] com.example.test_app D WindowStopped on com.example.test_app/com.example.test_app.MainActivity set to false
2023-12-06 16:40:32.142 4556-4556 SurfaceView@2f8420f com.example.test_app D updateSurface: surface is not valid
2023-12-06 16:40:32.143 4556-4556 SurfaceView@2f8420f com.example.test_app I releaseSurfaces: viewRoot = ViewRootImpl@773ccff[MainActivity]
2023-12-06 16:40:32.157 4556-4556 SurfaceView@2f8420f com.example.test_app I onWindowVisibilityChanged(0) false io.flutter.embedding.android.FlutterSurfaceView{2f8420f V.E...... ......ID 0,0-1080,2214} of ViewRootImpl@773ccff[MainActivity]
2023-12-06 16:40:32.157 4556-4556 SurfaceView@2f8420f com.example.test_app D updateSurface: surface is not valid
2023-12-06 16:40:32.157 4556-4556 SurfaceView@2f8420f com.example.test_app I releaseSurfaces: viewRoot = ViewRootImpl@773ccff[MainActivity]
2023-12-06 16:40:32.162 4556-4556 InsetsSourceConsumer com.example.test_app D applyRequestedVisibilityToControl: visible=true, type=1
2023-12-06 16:40:32.162 4556-4556 InsetsSourceConsumer com.example.test_app D applyRequestedVisibilityToControl: visible=true, type=2
2023-12-06 16:40:32.163 4556-4556 BLASTBufferQueue_Java com.example.test_app I new BLASTBufferQueue, mName= ViewRootImpl@773ccff[MainActivity] mNativeObject= 0xb400007213396400 sc.mNativeObject= 0xb40000721329ee00 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2979 android.view.ViewRootImpl.relayoutWindow:9998 android.view.ViewRootImpl.performTraversals:4056 android.view.ViewRootImpl.doTraversal:3239 android.view.ViewRootImpl$TraversalRunnable.run:11197 android.view.Choreographer$CallbackRecord.run:1650 android.view.Choreographer$CallbackRecord.run:1659 android.view.Choreographer.doCallbacks:1129 android.view.Choreographer.doFrame:1055 android.view.Choreographer$FrameDisplayEventReceiver.run:1622
2023-12-06 16:40:32.163 4556-4556 BLASTBufferQueue_Java com.example.test_app I update, w= 1080 h= 2340 mName = ViewRootImpl@773ccff[MainActivity] mNativeObject= 0xb400007213396400 sc.mNativeObject= 0xb40000721329ee00 format= -3 caller= android.graphics.BLASTBufferQueue.<init>:89 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2979 android.view.ViewRootImpl.relayoutWindow:9998 android.view.ViewRootImpl.performTraversals:4056 android.view.ViewRootImpl.doTraversal:3239 android.view.ViewRootImpl$TraversalRunnable.run:11197
2023-12-06 16:40:32.164 4556-4556 ViewRootIm...nActivity] com.example.test_app I Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=5 res=0x403 s={true 0xb4000072134e5000} ch=true seqId=0
2023-12-06 16:40:32.165 4556-4556 ViewRootIm...nActivity] com.example.test_app D mThreadedRenderer.initialize() mSurface={isValid=true 0xb4000072134e5000} hwInitialized=true
2023-12-06 16:40:32.165 4556-4556 SurfaceView com.example.test_app I 49824271 Changes: creating=false format=false size=false visible=false alpha=false hint=false visible=false left=false top=false z=false attached=true lifecycleStrategy=false
2023-12-06 16:40:32.165 4556-4556 SurfaceView@2f8420f com.example.test_app I windowStopped(false) true io.flutter.embedding.android.FlutterSurfaceView{2f8420f V.E...... ......ID 0,0-1080,2214} of ViewRootImpl@773ccff[MainActivity]
2023-12-06 16:40:32.166 4556-4556 SurfaceView com.example.test_app I 49824271 Changes: creating=true format=false size=false visible=true alpha=false hint=false visible=true left=false top=false z=false attached=true lifecycleStrategy=false
2023-12-06 16:40:32.167 4556-4556 BLASTBufferQueue_Java com.example.test_app I update, w= 1080 h= 2214 mName = null mNativeObject= 0xb400007213396700 sc.mNativeObject= 0xb40000719dbad300 format= 4 caller= android.view.SurfaceView.createBlastSurfaceControls:1511 android.view.SurfaceView.updateSurface:1187 android.view.SurfaceView.setWindowStopped:403 android.view.SurfaceView.surfaceCreated:1988 android.view.ViewRootImpl.notifySurfaceCreated:2897 android.view.ViewRootImpl.performTraversals:4520
2023-12-06 16:40:32.167 4556-4556 SurfaceView@2f8420f com.example.test_app I 49824271 Cur surface: Surface(name=null)/@0x36ee1fb
2023-12-06 16:40:32.167 4556-4556 SurfaceView@2f8420f com.example.test_app I pST: sr = Rect(0, 0 - 1080, 2214) sw = 1080 sh = 2214
2023-12-06 16:40:32.168 4556-4556 SurfaceView@2f8420f com.example.test_app D 49824271 performSurfaceTransaction RenderWorker position = [0, 0, 1080, 2214] surfaceSize = 1080x2214
2023-12-06 16:40:32.168 4556-4556 SurfaceView@2f8420f com.example.test_app I updateSurface: mVisible = true mSurface.isValid() = true
2023-12-06 16:40:32.168 4556-4556 SurfaceView@2f8420f com.example.test_app I updateSurface: mSurfaceCreated = false surfaceChanged = true visibleChanged = true
2023-12-06 16:40:32.168 4556-4556 SurfaceView com.example.test_app I 49824271 visibleChanged -- surfaceCreated
2023-12-06 16:40:32.168 4556-4556 SurfaceView@2f8420f com.example.test_app I surfaceCreated 1 #1 io.flutter.embedding.android.FlutterSurfaceView{2f8420f V.E...... ......ID 0,0-1080,2214}
2023-12-06 16:40:32.170 4556-4556 SurfaceView com.example.test_app I 49824271 surfaceChanged -- format=4 w=1080 h=2214
2023-12-06 16:40:32.170 4556-4556 SurfaceView@2f8420f com.example.test_app I surfaceChanged (1080,2214) 1 #1 io.flutter.embedding.android.FlutterSurfaceView{2f8420f V.E...... ......ID 0,0-1080,2214}
2023-12-06 16:40:32.172 4556-4556 SurfaceView com.example.test_app I 49824271 surfaceRedrawNeeded
2023-12-06 16:40:32.172 4556-4556 SurfaceView com.example.test_app I 49824271 finishedDrawing
2023-12-06 16:40:32.172 4556-4556 SurfaceView@2f8420f com.example.test_app V Layout: x=0 y=0 w=1080 h=2214, frame=Rect(0, 0 - 1080, 2214)
2023-12-06 16:40:32.172 4556-4556 ViewRootIm...nActivity] com.example.test_app D reportNextDraw android.view.ViewRootImpl.performTraversals:4658 android.view.ViewRootImpl.doTraversal:3239 android.view.ViewRootImpl$TraversalRunnable.run:11197 android.view.Choreographer$CallbackRecord.run:1650 android.view.Choreographer$CallbackRecord.run:1659
2023-12-06 16:40:32.173 4556-4556 ViewRootIm...nActivity] com.example.test_app D Setup new sync=wmsSync-ViewRootImpl@773ccff[MainActivity]#77
2023-12-06 16:40:32.173 4556-4556 ViewRootIm...nActivity] com.example.test_app D Creating new active sync group ViewRootImpl@773ccff[MainActivity]#78
2023-12-06 16:40:32.173 4556-4556 ViewRootIm...nActivity] com.example.test_app D registerCallbacksForSync syncBuffer=false
2023-12-06 16:40:32.174 4556-4627 SurfaceView com.example.test_app D 49824271 updateSurfacePosition RenderWorker, frameNr = 1, position = [0, 0, 1080, 2214] surfaceSize = 1080x2214
2023-12-06 16:40:32.174 4556-4627 SurfaceView@2f8420f com.example.test_app I uSP: rtp = Rect(0, 0 - 1080, 2214) rtsw = 1080 rtsh = 2214
2023-12-06 16:40:32.174 4556-4627 SurfaceView@2f8420f com.example.test_app I onSSPAndSRT: pl = 0 pt = 0 sx = 1.0 sy = 1.0
2023-12-06 16:40:32.174 4556-4627 SurfaceView@2f8420f com.example.test_app I aOrMT: ViewRootImpl@773ccff[MainActivity] t = android.view.SurfaceControl$Transaction@eadcf30 fN = 1 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1660 android.graphics.RenderNode$CompositePositionUpdateListener.positionChanged:369
2023-12-06 16:40:32.175 4556-4627 ViewRootIm...nActivity] com.example.test_app I mWNT: t=0xb4000072134b7f00 mBlastBufferQueue=0xb400007213396400 fn= 1 caller= android.view.SurfaceView.applyOrMergeTransaction:1592 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1660
2023-12-06 16:40:32.175 4556-4658 ViewRootIm...nActivity] com.example.test_app I mWNT: t=0xb4000072425f2280 mBlastBufferQueue=0xb400007213396400 fn= 1 caller= android.view.ViewRootImpl$6.onFrameDraw:5539 android.view.ViewRootImpl$2.onFrameDraw:2103 android.view.ThreadedRenderer$1.onFrameDraw:788
2023-12-06 16:40:32.175 4556-4658 ViewRootIm...nActivity] com.example.test_app D Received frameDrawingCallback syncResult=0 frameNum=1.
2023-12-06 16:40:32.175 4556-4658 ViewRootIm...nActivity] com.example.test_app I mWNT: t=0xb4000072134b8500 mBlastBufferQueue=0xb400007213396400 fn= 1 caller= android.view.ViewRootImpl$8.onFrameDraw:13614 android.view.ThreadedRenderer$1.onFrameDraw:788 <bottom of call stack>
2023-12-06 16:40:32.175 4556-4658 ViewRootIm...nActivity] com.example.test_app D Setting up sync and frameCommitCallback
2023-12-06 16:40:32.177 4556-4627 BLASTBufferQueue com.example.test_app I [ViewRootImpl@773ccff[MainActivity]#50](f:0,a:0,s:0) onFrameAvailable the first frame is available
2023-12-06 16:40:32.178 4556-4627 ViewRootIm...nActivity] com.example.test_app D Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
2023-12-06 16:40:32.178 4556-4556 ViewRootIm...nActivity] com.example.test_app D reportDrawFinished
2023-12-06 16:40:32.180 4556-4627 SurfaceView com.example.test_app D 108979407 windowPositionLost, frameNr = 0
2023-12-06 16:40:32.180 4556-4627 SurfaceView@2f8420f com.example.test_app I aOrMT: ViewRootImpl@773ccff[MainActivity] t = android.view.SurfaceControl$Transaction@6afae55 fN = 0 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1690 android.graphics.RenderNode$CompositePositionUpdateListener.positionLost:376
2023-12-06 16:40:32.180 4556-4627 ViewRootIm...nActivity] com.example.test_app I mWNT: t=0xb40000721ca5d500 mBlastBufferQueue=0xb400007213396400 fn= 0 caller= android.view.SurfaceView.applyOrMergeTransaction:1592 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1690
2023-12-06 16:40:32.182 4556-4556 ViewRootIm...nActivity] com.example.test_app I registerCallbackForPendingTransactions
2023-12-06 16:40:32.187 4556-4633 BLASTBufferQueue com.example.test_app I [SurfaceView[com.example.test_app/com.example.test_app.MainActivity]@0#51](f:0,a:0,s:0) onFrameAvailable the first frame is available
2023-12-06 16:40:32.189 4556-4556 ViewRootIm...nActivity] com.example.test_app I MSG_WINDOW_FOCUS_CHANGED 1 0
2023-12-06 16:40:32.190 4556-4556 ViewRootIm...nActivity] com.example.test_app D mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb4000072134e5000}
2023-12-06 16:40:32.190 4556-4556 InputMethodManagerUtils com.example.test_app D startInputInner - Id : 0
2023-12-06 16:40:32.190 4556-4556 InputMethodManager com.example.test_app I startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
2023-12-06 16:40:32.196 4556-4556 InsetsSourceConsumer com.example.test_app D applyRequestedVisibilityToControl: visible=false, type=8
2023-12-06 16:40:32.198 4556-4738 ViewRootIm...nActivity] com.example.test_app I Resizing android.view.ViewRootImpl@2a0f619: frame = [0,0][1080,2340] reportDraw = false forceLayout = false syncSeqId = -1
2023-12-06 16:40:32.199 4556-4556 ViewRootIm...nActivity] com.example.test_app I handleResized, msg = 4 frames=ClientWindowFrames{frame=[0,0][1080,2340] display=[0,0][1080,2340] parentFrame=[0,0][0,0]} forceNextWindowRelayout=false displayId=0 dragResizing=false compatScale=1.0 frameChanged=false attachedFrameChanged=false configChanged=false displayChanged=false compatScaleChanged=false
2023-12-06 16:40:34.430 4556-4556 ViewRootIm...nActivity] com.example.test_app I onDisplayChanged oldDisplayState=2 newDisplayState=2
```
</details>
### Flutter Doctor output
/Users/hunet/develop/flutter/bin/flutter doctor --verbose
[!] Flutter (Channel stable, 3.13.5, on macOS 13.5.2 22G91 darwin-arm64, locale ko-KR)
• Flutter version 3.13.5 on channel stable at /Users/hunet/develop/flutter
! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.16.2/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/hunet/develop/flutter. Consider adding /Users/hunet/develop/flutter/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 12fccda598 (3 months ago), 2023-09-19 13:56:11 -0700
• Engine revision bd986c5ed2
• Dart version 3.1.2
• DevTools version 2.25.0
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
• Android SDK at /Users/hunet/Library/Android/sdk
• Platform android-33, build-tools 33.0.0-rc1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] VS Code (version 1.84.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter