bug(android): room-label SDF generation blocks startup and triggers ANR #1072

Closed
opened 2026-11-07 02:05:56 +00:00 by SakulFlee · 0 comments
Owner

On the physical Android phone the app ANRs before module setup completes. The log shows Scene loaded with 59 entities, then a long main-thread gap before Queued DamagedHelmet import; on the emulator this gap is about 43 seconds. The cost is the per-label SDF atlas generation in spawn_text_label, not asset loading or iced.

#1066 skips the labels on Android as a temporary unblock. Choose and implement a proper fix: generate labels off the main thread and attach them after the first frames, or pre-bake the fixed AiO labels, or replace them with a cheaper screen-space/UI text path.

Acceptance criteria:

  • Android reaches module setup and first frame without ANR.
  • Labels either appear asynchronously or a documented alternative is used.
  • No main-thread block longer than the ANR threshold.
On the physical Android phone the app ANRs before module setup completes. The log shows `Scene loaded with 59 entities`, then a long main-thread gap before `Queued DamagedHelmet import`; on the emulator this gap is about 43 seconds. The cost is the per-label SDF atlas generation in `spawn_text_label`, not asset loading or iced. #1066 skips the labels on Android as a temporary unblock. Choose and implement a proper fix: generate labels off the main thread and attach them after the first frames, or pre-bake the fixed AiO labels, or replace them with a cheaper screen-space/UI text path. Acceptance criteria: - Android reaches module setup and first frame without ANR. - Labels either appear asynchronously or a documented alternative is used. - No main-thread block longer than the ANR threshold.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SakulFlee/Orbital#1072
No description provided.