ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.01k stars 13.51k forks source link

bug: white screen on a real machine #28147

Closed zhanvyuan closed 1 year ago

zhanvyuan commented 1 year ago

Prerequisites

Ionic Framework Version

v6.x

Current Behavior

2023-09-08 15:07:35.324  9187-9187  AppCompatDelegate       com.xxx.xxx               D  Checking for metadata for AppLocalesMetadataHolderService : Service not found
2023-09-08 15:07:35.362  9187-9187  ResourceType            com.xxx.xxx               E  Style contains key with bad entry: 0x01010586
2023-09-08 15:07:35.660  9187-9187  WebViewFactory          com.xxx.xxx               I  Loading com.google.android.webview version 62.0.3202.84 (code 320208450)
2023-09-08 15:07:35.748  9187-9187  cr_LibraryLoader        com.xxx.xxx               I  Time to load native libraries: 5 ms (timestamps 8515-8520)
2023-09-08 15:07:35.841  9187-9187  ResourceType            com.xxx.xxx               E  Style contains key with bad entry: 0x01010586
2023-09-08 15:07:35.843  9187-9187  ResourceType            com.xxx.xxx               E  Style contains key with bad entry: 0x01010586
2023-09-08 15:07:35.859  9187-9187  chromium                com.xxx.xxx               I  [INFO:library_loader_hooks.cc(46)] Chromium logging enabled: level = 0, default verbosity = 0
2023-09-08 15:07:35.860  9187-9187  cr_LibraryLoader        com.xxx.xxx               I  Expected native library version number "62.0.3202.84", actual native library version number "62.0.3202.84"
2023-09-08 15:07:35.887  9187-9326  cr_ChildProcLH          com.xxx.xxx               W  Create a new ChildConnectionAllocator with package name = com.google.android.webview, sandboxed = true
2023-09-08 15:07:35.917  9187-9187  cr_BrowserStartup       com.xxx.xxx               I  Initializing chromium process, singleProcess=false
2023-09-08 15:07:36.117  9187-9187  Adreno                  com.xxx.xxx               I  QUALCOMM build                   : 50c84eb, Ia11ce2d146
                                                                                                    Build Date                       : 09/14/20
                                                                                                    OpenGL ES Shader Compiler Version: EV031.22.00.01_06
                                                                                                    Local Branch                     : 
                                                                                                    Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.6.6.2.C1.08.01.00.485.049
                                                                                                    Remote Branch                    : NONE
                                                                                                    Reconstruct Branch               : NOTHING
2023-09-08 15:07:36.172  9187-9187  Adreno                  com.xxx.xxx               I  PFP: 0x005ff087, ME: 0x005ff063
2023-09-08 15:07:36.180  9187-9187  zygote64                com.xxx.xxx               I  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2023-09-08 15:07:36.358  9187-9187  Capacitor               com.xxx.xxx               D  Starting BridgeActivity
2023-09-08 15:07:36.437  9187-9427  chromium                com.xxx.xxx               E  [ERROR:devtools_http_handler.cc(249)] Cannot start http server for devtools. Stop devtools.
2023-09-08 15:07:36.439  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: CapacitorCookies
2023-09-08 15:07:36.478  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: WebView
2023-09-08 15:07:36.490  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: CapacitorHttp
2023-09-08 15:07:36.502  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: BarcodeScanner
2023-09-08 15:07:36.518  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: App
2023-09-08 15:07:36.529  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: AppLauncher
2023-09-08 15:07:36.536  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: Browser
2023-09-08 15:07:36.546  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: Camera
2023-09-08 15:07:36.558  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: Device
2023-09-08 15:07:36.565  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: Filesystem
2023-09-08 15:07:36.575  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: Haptics
2023-09-08 15:07:36.584  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: Keyboard
2023-09-08 15:07:36.592  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: Preferences
2023-09-08 15:07:36.603  9187-9187  Capacitor               com.xxx.xxx               D  Registering plugin instance: StatusBar
2023-09-08 15:07:36.899  9187-9206  zygote64                com.xxx.xxx               I  Do partial code cache collection, code=30KB, data=25KB
2023-09-08 15:07:36.899  9187-9206  zygote64                com.xxx.xxx               I  After code cache collection, code=30KB, data=25KB
2023-09-08 15:07:36.899  9187-9206  zygote64                com.xxx.xxx               I  Increasing code cache capacity to 128KB
2023-09-08 15:07:37.530  9187-9206  zygote64                com.xxx.xxx               I  Do partial code cache collection, code=61KB, data=34KB
2023-09-08 15:07:37.531  9187-9206  zygote64                com.xxx.xxx               I  After code cache collection, code=60KB, data=34KB
2023-09-08 15:07:37.531  9187-9206  zygote64                com.xxx.xxx               I  Increasing code cache capacity to 256KB
2023-09-08 15:07:37.562  9187-9187  Capacitor               com.xxx.xxx               D  Loading app at http://localhost
2023-09-08 15:07:37.591  9187-9398  cr_media                com.xxx.xxx               W  Requires BLUETOOTH permission
2023-09-08 15:07:37.605  9187-9326  cr_LibraryLoader        com.xxx.xxx               I  Using linker: org.chromium.base.library_loader.ModernLinker
2023-09-08 15:07:37.614  9187-9187  Capacitor               com.xxx.xxx               D  App started
2023-09-08 15:07:37.629  9187-9187  Capacitor/AppPlugin     com.xxx.xxx               D  Firing change: true
2023-09-08 15:07:37.629  9187-9187  Capacitor/AppPlugin     com.xxx.xxx               V  Notifying listeners for event appStateChange
2023-09-08 15:07:37.629  9187-9187  Capacitor/AppPlugin     com.xxx.xxx               D  No listeners found for event appStateChange
2023-09-08 15:07:37.633  9187-9187  Capacitor/BrowserPlugin com.xxx.xxx               V  Notifying listeners for event browserFinished
2023-09-08 15:07:37.633  9187-9187  Capacitor/BrowserPlugin com.xxx.xxx               D  No listeners found for event browserFinished
2023-09-08 15:07:37.634  9187-9187  Capacitor/BrowserPlugin com.xxx.xxx               E  Error binding to custom tabs service
2023-09-08 15:07:37.635  9187-9187  Capacitor               com.xxx.xxx               D  App resumed
2023-09-08 15:07:37.660  9187-9492  OpenGLRenderer          com.xxx.xxx               D  HWUI GL Pipeline
2023-09-08 15:07:37.684  9187-9187  ANR_LOG                 com.xxx.xxx               E  >>> msg's executing time is too long
2023-09-08 15:07:37.684  9187-9187  ANR_LOG                 com.xxx.xxx               E  Blocked msg = { when=-2s780ms what=100 target=android.app.ActivityThread$H obj=ActivityRecord{4ab0af6 token=android.os.BinderProxy@5c81239 {com.xxx.xxx/com.xxx.xxx.MainActivity}} } , cost  = 2445 ms
2023-09-08 15:07:37.684  9187-9187  ANR_LOG                 com.xxx.xxx               E  >>>Current msg List is:
2023-09-08 15:07:37.684  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <1>  = { when=-2s508ms what=0 target=android.view.Choreographer$FrameHandler callback=android.view.Choreographer$FrameDisplayEventReceiver }
2023-09-08 15:07:37.685  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <2>  = { when=-1s956ms what=149 target=android.app.ActivityThread$H obj=android.os.BinderProxy@5c81239 }
2023-09-08 15:07:37.685  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <3>  = { when=-1s956ms what=131 target=android.app.ActivityThread$H obj=android.app.ActivityThread$ProviderRefCount@a6ecef7 }
2023-09-08 15:07:37.685  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <4>  = { when=-1s940ms what=1 target=android.os.AsyncTask$InternalHandler obj=android.os.AsyncTask$AsyncTaskResult@e479164 }
2023-09-08 15:07:37.685  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <5>  = { when=-1s579ms what=1 target=org.chromium.base.SystemMessageHandler }
2023-09-08 15:07:37.685  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <6>  = { when=-1s545ms what=0 target=android.app.ActivityThread$H callback=android.app.LoadedApk$ServiceDispatcher$RunConnection }
2023-09-08 15:07:37.685  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <7>  = { when=-1s542ms what=0 target=android.app.ActivityThread$H callback=android.app.LoadedApk$ServiceDispatcher$RunConnection }
2023-09-08 15:07:37.686  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <8>  = { when=-1s485ms what=0 target=android.app.ActivityThread$H callback=android.app.LoadedApk$ServiceDispatcher$RunConnection }
2023-09-08 15:07:37.686  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <9>  = { when=-1s482ms what=0 target=android.os.Handler callback=org.chromium.base.ApplicationStatus$3 }
2023-09-08 15:07:37.686  9187-9187  ANR_LOG                 com.xxx.xxx               E  Current msg <10>  = { when=-1s481ms what=1 target=org.chromium.base.SystemMessageHandler }
2023-09-08 15:07:37.686  9187-9187  ANR_LOG                 com.xxx.xxx               E  >>>CURRENT MSG DUMP OVER<<<
2023-09-08 15:07:37.688  9187-9187  Choreographer           com.xxx.xxx               I  Skipped 150 frames!  The application may be doing too much work on its main thread.
2023-09-08 15:07:37.782  9187-9492  OpenGLRenderer          com.xxx.xxx               I  Initialized EGL, version 1.4
2023-09-08 15:07:37.782  9187-9492  OpenGLRenderer          com.xxx.xxx               D  Swap behavior 2
2023-09-08 15:07:37.795  9187-9492  OpenGLRenderer          com.xxx.xxx               I  processName com.xxx.xxx
2023-09-08 15:07:37.864  9187-9187  Choreographer           com.xxx.xxx               I  Skipped 3 frames!  The application may be doing too much work on its main thread.
2023-09-08 15:07:37.875  9187-9229  zygote64                com.xxx.xxx               I  Background concurrent copying GC freed 16273(1499KB) AllocSpace objects, 59(9MB) LOS objects, 81% free, 2MB/14MB, paused 5.616ms total 37.626ms
2023-09-08 15:07:37.886  9187-9327  Parcel                  com.xxx.xxx               E  Reading a NULL string not supported here.
2023-09-08 15:07:37.919  9187-9187  Parcel                  com.xxx.xxx               E  Reading a NULL string not supported here.
2023-09-08 15:07:37.991  9187-9517  cr_CrashFileManager     com.xxx.xxx               W  /data/user/0/com.xxx.xxx/cache/WebView/Crash Reports does not exist or is not a directory
2023-09-08 15:07:38.174  9187-9391  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/
2023-09-08 15:07:38.258  9187-9542  AudioCapabilities       com.xxx.xxx               W  Unsupported mime audio/ffmpeg
2023-09-08 15:07:38.280  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile 2130706433 for video/avc
2023-09-08 15:07:38.280  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile 2130706434 for video/avc
2023-09-08 15:07:38.286  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile 2130706433 for video/avc
2023-09-08 15:07:38.286  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile 2130706434 for video/avc
2023-09-08 15:07:38.297  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unsupported mime video/divx
2023-09-08 15:07:38.301  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unsupported mime video/divx311
2023-09-08 15:07:38.306  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unsupported mime video/divx4
2023-09-08 15:07:38.330  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile/level 0/3 for video/mpeg2
2023-09-08 15:07:38.334  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile/level 0/3 for video/mpeg2
2023-09-08 15:07:38.346  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unsupported mime video/ffmpeg
2023-09-08 15:07:38.351  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unsupported mime video/x-ms-wmv
2023-09-08 15:07:38.355  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unsupported mime video/x-ms-wmv
2023-09-08 15:07:38.359  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unsupported mime video/x-ms-wmv
2023-09-08 15:07:38.386  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile 2130706433 for video/avc
2023-09-08 15:07:38.386  9187-9542  VideoCapabilities       com.xxx.xxx               W  Unrecognized profile 2130706434 for video/avc
2023-09-08 15:07:38.416  9187-9542  VideoCapabilities       com.xxx.xxx               I  Unsupported profile 4 for video/mp4v-es
2023-09-08 15:07:38.422  9187-9542  Utils                   com.xxx.xxx               W  could not parse long range '175-174'
2023-09-08 15:07:38.560  9187-9391  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/assets/scripts/jquery.min.js
2023-09-08 15:07:38.587  9187-9187  Choreographer           com.xxx.xxx               I  Skipped 2 frames!  The application may be doing too much work on its main thread.
2023-09-08 15:07:38.593  9187-9401  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/assets/scripts/jquery.qrcode.min.js
2023-09-08 15:07:38.667  9187-9396  chromium                com.xxx.xxx               E  [ERROR:service_manager.cc(156)] Connection InterfaceProviderSpec prevented service: content_renderer from binding interface: blink::mojom::BudgetService exposed by: content_browser
2023-09-08 15:07:38.676  9187-9187  Capacitor/Console       com.xxx.xxx               W  File: http://localhost/ - Line 11887 - Msg: The key "viewport-fit" is not recognized and ignored.
2023-09-08 15:07:38.706  9187-9187  Capacitor/Console       com.xxx.xxx               I  File: http://localhost/ - Line 2904 - Msg: onscript loading complete
2023-09-08 15:07:38.862  9187-9556  Capacitor/Plugin        com.xxx.xxx               V  To native (Cordova plugin): callbackId: File1446201077, service: File, action: requestAllPaths, actionArgs: []
2023-09-08 15:07:38.969  9187-9401  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/styles.c2c3e7b479c4339c.css
2023-09-08 15:07:38.970  9187-9555  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/runtime.9d1ca8137f1fc74d.js
2023-09-08 15:07:38.974  9187-9555  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/polyfills.c5a6162cac4767e2.js
2023-09-08 15:07:38.981  9187-9555  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/main.24b28b40879172b3.js
2023-09-08 15:07:38.997  9187-9187  Choreographer           com.xxx.xxx               I  Skipped 1 frames!  The application may be doing too much work on its main thread.
2023-09-08 15:07:39.053  9187-9556  Capacitor               com.xxx.xxx               E  JavaScript Error: {"type":"js.error","error":{"message":"Uncaught SyntaxError: Unexpected token {","url":"http://localhost/polyfills.c5a6162cac4767e2.js","line":1,"col":13988,"errorObject":"{}"}}
2023-09-08 15:07:39.056  9187-9187  Capacitor/Console       com.xxx.xxx               E  File: http://localhost/ - Line 719 - Msg: SyntaxError: Unexpected token {
2023-09-08 15:07:39.059  9187-9187  Capacitor/Console       com.xxx.xxx               E  File: http://localhost/polyfills.c5a6162cac4767e2.js - Line 1 - Msg: Uncaught SyntaxError: Unexpected token {
2023-09-08 15:07:39.130  9187-9187  Capacitor/Console       com.xxx.xxx               E  File: http://localhost/ - Line 719 - Msg: SyntaxError: Unexpected token .
2023-09-08 15:07:39.133  9187-9556  Capacitor               com.xxx.xxx               E  JavaScript Error: {"type":"js.error","error":{"message":"Uncaught SyntaxError: Unexpected token .","url":"http://localhost/main.24b28b40879172b3.js","line":1,"col":10627,"errorObject":"{}"}}
2023-09-08 15:07:39.137  9187-9187  Capacitor/Console       com.xxx.xxx               E  File: http://localhost/main.24b28b40879172b3.js - Line 1 - Msg: Uncaught SyntaxError: Unexpected token .
2023-09-08 15:07:39.148  9187-9401  Capacitor               com.xxx.xxx               D  Handling local request: http://localhost/assets/icon/favicon.png
2023-09-08 15:07:42.853  9187-9598  ProfileInstaller        com.xxx.xxx               D  Installing profile for com.xxx.xxx

Expected Behavior

running a white screen on a real machine now I hope it can run normally

Steps to Reproduce

1.ionic build 2.npx cap sync 3.android studio run app

Code Reproduction URL

No response

Ionic Info

Ionic:

   Ionic CLI                     : 6.18.2 (D:\nodejs\node_global\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 6.7.5
   @angular-devkit/build-angular : 15.2.9
   @angular-devkit/schematics    : 15.0.2
   @angular/cli                  : 15.0.2
   @ionic/angular-toolkit        : 10.0.0

Utility:

   cordova-res : 0.15.4
   native-run  : 1.7.2

System:

   NodeJS : v18.16.0 (D:\nodejs\nodejs\node.exe)
   npm    : 9.5.1
   OS     : Windows 10

Additional Information

package.json

{
  "private": true,
  "dependencies": {
    "@angular/common": "^15.0.0",
    "@angular/core": "^15.0.0",
    "@angular/forms": "^15.0.0",
    "@angular/platform-browser": "^15.0.0",
    "@angular/platform-browser-dynamic": "^15.0.0",
    "@angular/router": "^15.0.0",
    "@awesome-cordova-plugins/core": "^6.2.0",
    "@awesome-cordova-plugins/http": "^6.2.0",
    "@capacitor-community/barcode-scanner": "^4.0.1",
    "@capacitor/android": "^5.0.0",
    "@capacitor/app": "5.0.6",
    "@capacitor/app-launcher": "^5.0.0",
    "@capacitor/browser": "^5.0.0",
    "@capacitor/camera": "^5.0.0",
    "@capacitor/core": "5.3.0",
    "@capacitor/device": "^5.0.0",
    "@capacitor/filesystem": "^5.0.0",
    "@capacitor/haptics": "5.0.6",
    "@capacitor/ios": "^5.0.0",
    "@capacitor/keyboard": "5.0.6",
    "@capacitor/preferences": "^5.0.0",
    "@capacitor/status-bar": "5.0.6",
    "@ionic/angular": "^6.1.9",
    "cordova-plugin-advanced-http": "^3.3.1",
    "cordova-plugin-file": "^7.0.0",
    "ionicons": "^6.0.3",
    "preferences": "2.0.2",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^15.0.0",
    "@angular-eslint/builder": "^14.0.0",
    "@angular-eslint/eslint-plugin": "^14.0.0",
    "@angular-eslint/eslint-plugin-template": "^14.0.0",
    "@angular-eslint/template-parser": "^14.0.0",
    "@angular/cli": "15.0.2",
    "@angular/compiler": "^15.0.0",
    "@angular/compiler-cli": "^15.0.0",
    "@angular/language-service": "^15.0.0",
    "@capacitor/cli": "5.3.0",
    "@ionic/angular-toolkit": "10.0.0",
    "@types/jasmine": "~4.0.0",
    "@types/node": "^12.11.1",
    "@typescript-eslint/eslint-plugin": "5.3.0",
    "@typescript-eslint/parser": "5.3.0",
    "eslint": "^7.6.0",
    "eslint-plugin-import": "2.22.1",
    "eslint-plugin-jsdoc": "30.7.6",
    "eslint-plugin-prefer-arrow": "1.2.2",
    "jasmine-core": "~4.3.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "ts-node": "~8.3.0",
    "typescript": "~4.8.4"
  },
  "description": "An Ionic project"
}

tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "forceConsistentCasingInFileNames": true,
    "noImplicitOverride": true,
    "noPropertyAccessFromIndexSignature": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2020",
    "module": "es2020",
    "lib": [
      "es2018",
      "dom"
    ],
    "useDefineForClassFields": false
  },
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true
  }
}
ionitron-bot[bot] commented 1 year ago

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

For a guide on how to create a good reproduction, see our Contributing Guide.

liamdebeasi commented 1 year ago

Thanks for the issue! This issue is being closed due to the lack of a code reproduction. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!