Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random crash #1589

Open
Bambooin opened this issue Feb 14, 2025 · 1 comment
Open

Random crash #1589

Bambooin opened this issue Feb 14, 2025 · 1 comment

Comments

@Bambooin
Copy link
Collaborator

Random crash with recent commit.

--------- Device Info
OS Name: lineage
OS API Level: 33
Tags: release-keys
Screen orientation: Portrait
--------- Build Info
Package Name: com.osfans.trime
Builder: Bambooin
Version Code: 20250301
Version Name: v3.3.2-106-g34c322d8-release
Build Time: 2025-02-11T10:37:03Z
Build Git Hash: 34c322d88ec1d4391e087ed73f91e15753ccf468
--------- Crash stacktrace
androidx.startup.StartupException: lateinit property theme has not been initialized
	at com.osfans.trime.data.theme.ColorManager.getPresetColorSchemes(SourceFile:134)
	at com.osfans.trime.data.theme.ColorManager.switchNightMode(SourceFile:3)
	at com.osfans.trime.ime.core.TrimeInputMethodService.onConfigurationChanged(SourceFile:55)
	at android.window.WindowTokenClient.onConfigurationChanged(WindowTokenClient.java:260)
	at android.window.WindowTokenClient$$ExternalSyntheticLambda1.accept(Unknown Source:16)
	at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:295)
	at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204)
	at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7924)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

--------- beginning of main
02-14 18:51:14.923 D/CompatibilityChangeReporter(  822): Compat change id reported: 171979766; UID 10186; state: ENABLED
02-14 18:51:14.961 V/GraphicsEnvironment(  822): ANGLE Developer option for 'com.osfans.trime' set to: 'default'
02-14 18:51:14.961 V/GraphicsEnvironment(  822): ANGLE GameManagerService for com.osfans.trime: false
02-14 18:51:14.962 V/GraphicsEnvironment(  822): Neither updatable production driver nor prerelease driver is supported.
02-14 18:51:14.964 D/NetworkSecurityConfig(  822): No Network Security Config specified, using platform default
02-14 18:51:14.964 D/NetworkSecurityConfig(  822): No Network Security Config specified, using platform default
02-14 18:51:14.967 D/WM-WrkMgrInitializer(  822): Initializing WorkManager with default configuration.
02-14 18:51:14.969 D/WM-PackageManagerHelper(  822): Skipping component enablement for androidx.work.impl.background.systemjob.SystemJobService
02-14 18:51:14.969 D/WM-Schedulers(  822): Created SystemJobScheduler and enabled SystemJobService
02-14 18:51:14.995 D/CompatibilityChangeReporter(  822): Compat change id reported: 160794467; UID 10186; state: ENABLED
02-14 18:51:15.023 D/AppCompatDelegate(  822): Checking for metadata for AppLocalesMetadataHolderService : Service not found
02-14 18:51:15.059 D/CompatibilityChangeReporter(  822): Compat change id reported: 171228096; UID 10186; state: ENABLED
02-14 18:51:15.064 D/CompatibilityChangeReporter(  822): Compat change id reported: 210923482; UID 10186; state: ENABLED
02-14 18:51:15.101 D/CompatibilityChangeReporter(  822): Compat change id reported: 237531167; UID 10186; state: DISABLED
02-14 18:51:15.108 W/Parcel  (  822): Expecting binder but got null!
02-14 18:51:15.128 W/Parcel  (  822): Expecting binder but got null!
02-14 18:51:15.145 D/WindowTokenClient(  822): Only apply configuration update to Resources because shouldReportConfigChange is false.
02-14 18:51:15.145 D/WindowTokenClient(  822): android.window.WindowTokenClient.attachToDisplayArea:118 android.window.WindowContextController.attachToDisplayArea:107 android.window.WindowProviderService.attachBaseContext:208 android.app.Service.attach:915 android.app.ActivityThread.handleCreateService:4484 
02-14 18:51:15.166 I/rime.trime(  822): registering core components.
02-14 18:51:15.167 I/rime.trime(  822): registering component: config_builder
02-14 18:51:15.167 I/rime.trime(  822): registering component: config
02-14 18:51:15.167 I/rime.trime(  822): registering component: schema
02-14 18:51:15.167 I/rime.trime(  822): registering component: user_config
02-14 18:51:15.167 I/rime.trime(  822): registering components from module 'dict'.
02-14 18:51:15.167 I/rime.trime(  822): registering component: tabledb
02-14 18:51:15.167 I/rime.trime(  822): registering component: stabledb
02-14 18:51:15.167 I/rime.trime(  822): registering component: plain_userdb
02-14 18:51:15.167 I/rime.trime(  822): registering component: userdb
02-14 18:51:15.167 I/rime.trime(  822): registering component: corrector
02-14 18:51:15.167 I/rime.trime(  822): registering component: dictionary
02-14 18:51:15.167 I/rime.trime(  822): registering component: reverse_lookup_dictionary
02-14 18:51:15.167 I/rime.trime(  822): registering component: user_dictionary
02-14 18:51:15.167 I/rime.trime(  822): registering component: userdb_recovery_task
02-14 18:51:15.167 I/rime.trime(  822): registering components from module 'gears'.
02-14 18:51:15.167 I/rime.trime(  822): registering component: ascii_composer
02-14 18:51:15.167 I/rime.trime(  822): registering component: chord_composer
02-14 18:51:15.167 I/rime.trime(  822): registering component: express_editor
02-14 18:51:15.167 I/rime.trime(  822): registering component: fluid_editor
02-14 18:51:15.167 I/rime.trime(  822): registering component: fluency_editor
02-14 18:51:15.167 I/rime.trime(  822): registering component: key_binder
02-14 18:51:15.168 I/rime.trime(  822): registering component: navigator
02-14 18:51:15.168 I/rime.trime(  822): registering component: punctuator
02-14 18:51:15.168 I/rime.trime(  822): registering component: recognizer
02-14 18:51:15.168 I/rime.trime(  822): registering component: selector
02-14 18:51:15.168 I/rime.trime(  822): registering component: speller
02-14 18:51:15.168 I/rime.trime(  822): registering component: shape_processor
02-14 18:51:15.168 I/rime.trime(  822): registering component: abc_segmentor
02-14 18:51:15.168 I/rime.trime(  822): registering component: affix_segmentor
02-14 18:51:15.168 I/rime.trime(  822): registering component: ascii_segmentor
02-14 18:51:15.168 I/rime.trime(  822): registering component: matcher
02-14 18:51:15.168 I/rime.trime(  822): registering component: punct_segmentor
02-14 18:51:15.168 I/rime.trime(  822): registering component: fallback_segmentor
02-14 18:51:15.168 I/rime.trime(  822): registering component: echo_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: punct_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: table_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: script_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: r10n_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: reverse_lookup_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: schema_list_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: switch_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: history_translator
02-14 18:51:15.168 I/rime.trime(  822): registering component: simplifier
02-14 18:51:15.168 I/rime.trime(  822): registering component: uniquifier
02-14 18:51:15.168 I/rime.trime(  822): registering component: charset_filter
02-14 18:51:15.168 I/rime.trime(  822): registering component: cjk_minifier
02-14 18:51:15.169 I/rime.trime(  822): registering component: reverse_lookup_filter
02-14 18:51:15.169 I/rime.trime(  822): registering component: single_char_filter
02-14 18:51:15.169 I/rime.trime(  822): registering component: shape_formatter
02-14 18:51:15.169 I/rime.trime(  822): registering components from module 'lua'.
02-14 18:51:15.179 I/[main]  (  822): BackgroundSyncWork scheduled!
02-14 18:51:15.179 I/rime.trime(  822): rime.lua info: rime.lua should be either in the rime user data directory or in the rime shared data directory
02-14 18:51:15.179 I/rime.trime(  822): registering component: lua_translator
02-14 18:51:15.179 I/rime.trime(  822): registering component: lua_filter
02-14 18:51:15.179 I/rime.trime(  822): registering component: lua_segmentor
02-14 18:51:15.179 I/rime.trime(  822): registering component: lua_processor
02-14 18:51:15.179 I/rime.trime(  822): registering components from module 'grammar'.
02-14 18:51:15.179 I/rime.trime(  822): registering component: grammar
02-14 18:51:15.179 I/rime.trime(  822): registering component: predictor
02-14 18:51:15.180 I/rime.trime(  822): registering component: predict_translator
02-14 18:51:15.180 I/rime.trime(  822): registering components from module 'levers'.
02-14 18:51:15.180 I/rime.trime(  822): registering component: detect_modifications
02-14 18:51:15.180 I/rime.trime(  822): registering component: installation_update
02-14 18:51:15.180 I/rime.trime(  822): registering component: workspace_update
02-14 18:51:15.180 I/rime.trime(  822): registering component: schema_update
02-14 18:51:15.180 I/rime.trime(  822): registering component: config_file_update
02-14 18:51:15.180 I/rime.trime(  822): registering component: prebuild_all_schemas
02-14 18:51:15.180 I/rime.trime(  822): registering component: user_dict_upgrade
02-14 18:51:15.180 I/rime.trime(  822): registering component: cleanup_trash
02-14 18:51:15.180 I/[main]  (  822): BackgroundSyncWork canceled!
02-14 18:51:15.180 I/rime.trime(  822): registering component: user_dict_sync
02-14 18:51:15.180 I/rime.trime(  822): registering component: backup_config_files
02-14 18:51:15.180 I/rime.trime(  822): registering component: clean_old_log_files
02-14 18:51:15.180 I/rime.trime(  822): updating rime installation info.
02-14 18:51:15.181 I/rime.trime(  822): loading config file '/storage/emulated/0/rime/installation.yaml'.
02-14 18:51:15.183 I/rime.trime(  822): installation info exists. installation id: 07f96792-ab08-4b95-9620-49ebd7eed0c9
02-14 18:51:15.183 I/rime.trime(  822): sync dir: /storage/emulated/0/rime/sync
02-14 18:51:15.183 I/rime.trime(  822): previous distribution: trime
02-14 18:51:15.183 I/rime.trime(  822): previous distribution version: v3.3.2-106-g34c322d8
02-14 18:51:15.183 I/rime.trime(  822): previous Rime version: 1.13.0
02-14 18:51:15.201 I/rime.trime(  822): loading config file '/storage/emulated/0/rime/user.yaml'.
02-14 18:51:15.202 I/rime.trime(  822): loading config file '/storage/emulated/0/rime/build/default.yaml'.
02-14 18:51:15.214 I/rime.trime(  822): starting engine.
02-14 18:51:15.214 I/rime.trime(  822): loading config file '/storage/emulated/0/rime/user.yaml'.
02-14 18:51:15.216 I/rime.trime(  822): updated option: full_shape
02-14 18:51:15.216 I/rime.trime(  822): updated option: simplification
02-14 18:51:15.216 I/rime.trime(  822): loading config file '/storage/emulated/0/rime/build/luna_pinyin.schema.yaml'.
02-14 18:51:15.241 W/Parcel  (  822): Expecting binder but got null!
02-14 18:51:15.288 D/WindowTokenClient(  822): Configuration not dispatch to IME because configuration is up to date. Current config={1.0 460mcc11mnc [en_US] ldltr sw393dp w393dp h798dp 440dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2340) mAppBounds=Rect(0, 80 - 1080, 2274) mMaxBounds=Rect(0, 0 - 1080, 2340) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} as.29 s.2688 fontWeightAdjustment=0}, reported config={1.0 460mcc11mnc [en_US] ldltr sw393dp w393dp h798dp 440dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2340) mAppBounds=Rect(0, 80 - 1080, 2274) mMaxBounds=Rect(0, 0 - 1080, 2340) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} as.29 s.2688 fontWeightAdjustment=0}, updated config={1.0 460mcc11mnc [en_US] ldltr sw393dp w393dp h798dp 440dpi nrml long port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2340) mAppBounds=Rect(0, 80 - 1080, 2274) mMaxBounds=Rect(0, 0 - 1080, 2340) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} as.29 s.2688 fontWeightAdjustment=0}
02-14 18:51:15.292 I/rime.trime(  822): updated option: _auto_commit
02-14 18:51:15.293 I/rime.trime(  822): stabledb 'custom_phrase' does not exist.
02-14 18:51:15.294 I/rime.trime(  822): loading dictionary 'luna_pinyin.extended'.
02-14 18:51:15.294 I/rime.trime(  822): loading table file: /storage/emulated/0/rime/build/luna_pinyin.extended.table.bin
02-14 18:51:15.333 I/rime.trime(  822): loading prism file: /storage/emulated/0/rime/build/luna_pinyin.extended.prism.bin
02-14 18:51:15.336 I/rime.trime(  822): found double array image of size 1792.
02-14 18:51:15.404 D/AndroidRuntime(  822): Shutting down VM
--------- beginning of crash
02-14 18:51:15.405 E/AndroidRuntime(  822): FATAL EXCEPTION: main
02-14 18:51:15.405 E/AndroidRuntime(  822): Process: com.osfans.trime, PID: 822
02-14 18:51:15.405 E/AndroidRuntime(  822): androidx.startup.StartupException: lateinit property theme has not been initialized
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.osfans.trime.data.theme.ColorManager.getPresetColorSchemes(SourceFile:134)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.osfans.trime.data.theme.ColorManager.switchNightMode(SourceFile:3)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.osfans.trime.ime.core.TrimeInputMethodService.onConfigurationChanged(SourceFile:55)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at android.window.WindowTokenClient.onConfigurationChanged(WindowTokenClient.java:260)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at android.window.WindowTokenClient$$ExternalSyntheticLambda1.accept(Unknown Source:16)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:295)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at android.os.Handler.handleCallback(Handler.java:942)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at android.os.Looper.loopOnce(Looper.java:201)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at android.os.Looper.loop(Looper.java:288)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at android.app.ActivityThread.main(ActivityThread.java:7924)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at java.lang.reflect.Method.invoke(Native Method)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
02-14 18:51:15.405 E/AndroidRuntime(  822): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
02-14 18:51:15.408 I/om.osfans.trime(  822): System.exit called, status: 10
02-14 18:51:15.408 I/AndroidRuntime(  822): VM exiting with result code 10, cleanup skipped.
@WhiredPlanck
Copy link
Collaborator

We need a brand new Theme system to get rid of librime yaml DSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants