capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

bug: Capacitor VueJs App launches with black screen

Open jomesili opened this issue 4 years ago • 5 comments

Bug Report

Capacitor Version


05/17 18:21:29: Launching 'app' on TECNO MOBILE LIMITED TECNO CD7.
Install successfully finished in 3 s 92 ms.
$ adb shell am start -n "ng.vendr.utilities/ng.vendr.utilities.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 32323 on device 'tecno_mobile_limited-tecno_cd7-0548025063011428'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/vendr.utilitie: Late-enabling -Xcheck:jni
E/vendr.utilitie: Unknown bits set in runtime_flags: 0x8000
I/LoadedApk: No resource references to update in package com.transsion.theme.icon
E/vendr.utilitie: Invalid ID 0x00000000.
W/vendr.utilitie: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/vendr.utilitie: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
I/WebViewFactory: Loading com.google.android.webview version 101.0.4951.61 (code 495106133)
W/vendr.utilitie: Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (greylist, reflection, allowed)
W/vendr.utilitie: Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (greylist, reflection, allowed)
W/vendr.utilitie: Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (greylist, reflection, allowed)
W/vendr.utilitie: Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (greylist, reflection, allowed)
W/vendr.utilitie: Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (greylist, reflection, allowed)
I/cr_WVCFactoryProvider: Loaded version=101.0.4951.61 minSdkVersion=29 isBundle=true multiprocess=true packageId=2
E/vendr.utilitie: Invalid ID 0x00000000.
E/vendr.utilitie: Invalid ID 0x00000000.
I/cr_LibraryLoader: Successfully loaded native library
I/cr_CachingUmaRecorder: Flushed 9 samples from 9 histograms.
W/chromium: [WARNING:dns_config_service_android.cc(115)] Failed to read DnsConfig.
D/Capacitor: Starting BridgeActivity
D/Capacitor: Registering plugin: WebView
D/Capacitor: Registering plugin: App
D/Capacitor: Registering plugin: Haptics
D/Capacitor: Registering plugin: Keyboard
D/Capacitor: Registering plugin: StatusBar
E/Capacitor: Unable to read file at path public/plugins
D/Capacitor: Loading app at http://localhost
W/vendr.utilitie: Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (greylist, reflection, allowed)
I/GPUD: @gpudInitialize: successfully initialized with GL, dbg=0 mmdump_dbg=0 mmpath_dbg=0
W/cr_media: Requires BLUETOOTH permission
D/Capacitor: App started
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
I/chatty: uid=10233(ng.vendr.utilities) Chrome_InProcGp identical 1 line
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
D/Capacitor/AppPlugin: Firing change: true
V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
D/Capacitor/AppPlugin: No listeners found for event appStateChange
D/Capacitor: App resumed
I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@659ed72
D/TouchScreenHelper: --getInstance()
D/TouchScreenHelper: --getInstance()  com.transsion.view.TouchScreenHelperImpl
I/TouchScreenHelperImpl: constructed in ng.vendr.utilities
D/ViewRootImpl[MainActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@504fc35, this = DecorView@df5b8ca[MainActivity]
D/Capacitor: Handling local request: http://localhost/
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
I/chatty: uid=10233(ng.vendr.utilities) Chrome_InProcGp identical 2 lines
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
D/Capacitor: App paused
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
I/chatty: uid=10233(ng.vendr.utilities) Chrome_InProcGp identical 2 lines
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
I/chatty: uid=10233(ng.vendr.utilities) Chrome_InProcGp identical 12 lines
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
I/chatty: uid=10233(ng.vendr.utilities) Chrome_InProcGp identical 8 lines
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
W/IMGSRV: glGetString:4370: Override GL_RENDERER PowerVR SGX Doma 
D/Capacitor: Handling local request: http://localhost/favicon.ico
D/Capacitor/AppPlugin: Firing change: false
V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
D/Capacitor/AppPlugin: No listeners found for event appStateChange
D/Capacitor: App stopped
D/Capacitor: Saving instance state!
I/Choreographer: Skipped 33 frames!  The application may be doing too much work on its main thread.
E/GraphicExt: Can't load libboost_ext_fwk
E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
D/Surface: Surface::connect(this=0x7a785df000,api=1)
D/Surface: Surface::setBufferCount(this=0x7a785df000,bufferCount=3)
D/Surface: Surface::allocateBuffers(this=0x7a785df000)
W/Gralloc3: mapper 3.x is not supported
E/ion: ioctl c0044901 failed with code -1: Invalid argument
D/Capacitor: App restarted
D/Capacitor: App started
D/Capacitor/AppPlugin: Firing change: true
V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
D/Capacitor/AppPlugin: No listeners found for event appStateChange
D/Capacitor: App resumed
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@504fc35, this = DecorView@df5b8ca[MainActivity]
D/Surface: Surface::disconnect(this=0x7a785df000,api=1)
D/Surface: Surface::connect(this=0x7a785df000,api=1)
D/Surface: Surface::setBufferCount(this=0x7a785df000,bufferCount=3)
D/Capacitor: App paused
D/Surface: Surface::disconnect(this=0x7a785df000,api=1)
I/GED: ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 2, oppidx_max 2, oppidx_min 0
D/Capacitor/AppPlugin: Firing change: false
V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
D/Capacitor/AppPlugin: No listeners found for event appStateChange
D/Capacitor: App stopped
D/Capacitor: Saving instance state!
V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@504fc35, this = DecorView@df5b8ca[MainActivity]
D/Capacitor: App restarted
D/Capacitor: App started
D/Capacitor/AppPlugin: Firing change: true
V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
D/Capacitor/AppPlugin: No listeners found for event appStateChange
D/Capacitor: App resumed
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@504fc35, this = DecorView@df5b8ca[MainActivity]
E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
D/Surface: Surface::connect(this=0x7a785df000,api=1)
D/Surface: Surface::setBufferCount(this=0x7a785df000,bufferCount=3)
D/Surface: Surface::allocateBuffers(this=0x7a785df000)
D/Capacitor: App paused
D/Capacitor/AppPlugin: Firing change: false
V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
D/Capacitor/AppPlugin: No listeners found for event appStateChange
D/Capacitor: App stopped
D/Capacitor: Saving instance state!
I/GED: ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 2, oppidx_max 2, oppidx_min 0

Platform(s)

Current Behavior

Expected Behavior

Code Reproduction

Other Technical Details

npm --version output:8.1.1

node --version output:v12.13.0

pod --version output (iOS issues only):

Additional Context

jomesili avatar May 18 '22 00:05 jomesili

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks! Ionitron 💙

Ionitron avatar May 18 '22 09:05 Ionitron

Please see the sample here GitHub - jomesili/vendr-utilities

| | | | | |

|

| | | | GitHub - jomesili/vendr-utilities

Contribute to jomesili/vendr-utilities development by creating an account on GitHub. |

|

|

On Wednesday, May 18, 2022, 03:14:25 AM CST, Ionitron ***@***.***> wrote:  

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks! Ionitron 💙

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jomesili avatar May 19 '22 00:05 jomesili

You have two configuration files, a capacitor.config.json and capacitor.config.ts, and the .ts takes precedence over the .json file. In the .ts you have webDir: 'public' instead of webDir: 'dist', which is the actual folder where your app is being built. Changing the value makes the white screen to go away.

jcesarmobile avatar May 19 '22 10:05 jcesarmobile

It is finished !!! This has been resolved. Can you point this out on the documentation. So that others can save time.

jomesili avatar May 19 '22 17:05 jomesili

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Nov 10 '22 20:11 ionitron-bot[bot]