YuzuBrowser icon indicating copy to clipboard operation
YuzuBrowser copied to clipboard

Rarely Yuzu browser doesn't launch

Open quroe opened this issue 4 years ago • 5 comments

Describe the bug Rarely Yuzu browser doesn't launch when it didn't run in background process.

To Reproduce Steps to reproduce the behavior: I can not reproduce.

Expected behavior Yuzu browser launches after few seconds. But I waited 2 minutes, Yuzu browser didn't launch. At this time, Android's unresponsive popup didn't appear.

Device information (please complete the following information):

  • Device: HUAWEI nova 2
  • OS: Android 7
  • Browser version: 6.0.0 beta1

Additional context This issue happened randomly. ex.After changing theme, launching from home launcher.

Yuzu browser doesn't launch basically when this issue happens. If Yuzu launches lucky, it will work fine until this issue happens again.

I tried: Reboot device & launch --> ✖ Swipe from recent apps & launch --> ✖ Force stop & launch --> ✖ Clear data & launch --> ◎

6.0.0 nightly 20210217 also affected. Maybe 6.0.0 nightly 20210214 and later affect.

/data/system/dropbox & InternalStorage/Android/data/jp.hazuki.yuzubrowser/files/error_log created nothing. Xposed XPrivacy's access log:

23:33:16	10126	internet/inet
23:33:16	10126	identification/SERIAL
			Original: XXXXXXXXXXXXXXXXX
23:33:16	10126	phone/Configuration.MCC
23:33:16	10126	phone/Configuration.MNC
23:33:16	10126	email/GmailProvider
			content://com.google.android.gms.chimera/api_force_staging/com.google.android.gms.measurement.dynamite
23:33:16	10126	email/GmailProvider
			content://com.google.android.gms.chimera/api/com.google.android.gms.measurement.dynamite
23:33:16	10126	identification/getString
			Original: XXXXXXXXXXXXXXX
23:33:16	10126	email/GmailProvider
			content://com.google.android.gms.phenotype/com.google.android.gms.measurement.dynamite
23:33:16	10126	internet/LinkProperties.getLinkAddresses
23:33:16	10126	internet/Connectivity.getNetworkInfo
23:33:16	10126	internet/NetworkInfo.isConnected
23:33:16	10126	internet/InetAddress.getByAddress
23:33:16	10126	internet/IpPrefix.getAddress
23:33:17	10126	clipboard/addPrimaryClipChangedListner
23:33:17	10126	view/initUserAgentString

Initialization not going well? I have no idea what I can do to help you.

quroe avatar Feb 20 '21 14:02 quroe

I tested with Yuzu 6.0.0 beta2 again and again, this issue looks solved. Thanks If this will happen again, I will re-open.

quroe avatar Feb 21 '21 15:02 quroe

I determined one of the causes.

  • Same user data causes this issue. (I checked by TitaniumBackup)
  • If I delete /data/data/jp.hazuki.yuzubrowser/shared_prefs/main_preference.xml, Yuzu launches correctly.

So I did a diff to check. <boolean name="ad_block" value="true" /> This value switched to false, Yuzu lanched. At this time, other related pref is <boolean name="abpUseElementHide" value="false" />. Subscripbed Filters are EasyList, AdGuard Base filter, AdGuard Mobile Ads filter, 280blocker adblock filter. (disable Yuzu filter)

quroe avatar Feb 21 '21 17:02 quroe

It didn't reproduce in my environment, but I improve the performance of ad blocker, especially at startup.

hazuki0x0 avatar Feb 27 '21 06:02 hazuki0x0

Yuzu Browser 6.0.0 also happens. Umm...I can reproduce this issue better than before.

Isn't this issue related to write db? It looks like Yuzu is failing to write to adb.db. adb.db size is 4KB.(only wrote android_metadata->locale:ja) If Yuzu changes adblock settings(add filter), adb.db-wal increases file size. Is this behavior correctly?

quroe avatar Feb 28 '21 13:02 quroe

The db behavior is normal. Since the ad blocking implementation runs completely in the background, it should be hard to freeze the startup even if the I/O is busy. Therefore, this problem is likely to have complex factors.

hazuki0x0 avatar Mar 01 '21 14:03 hazuki0x0