← Back to Pull requests

Update libass android to 0.6.0-beta01 and use EFFECTS_ATLAS #2227

Open
unknown opened this pull request with 311 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 12, 2026 00:46 UTC
Author

<!-- By submitting this pull request, you acknowledge that you have read the https://github.com/damontecres/Wholphin/blob/main/DEVELOPMENT.md" target="_blank" rel="noopener noreferrer" class="gh-md-link">contributing guide -->

Description


The version 0.6.0-beta01 added the EFFECTS_ATLAS render type (https://github.com/peerless2012/libass-android/pull/90).

In brief, it is more performant to OVERLAY_OPEN_GL.
To quote the doc:

The fastest render type. It use OpenGL to render, but it use a atlas to push the libass bitmap to the GPU which makes it much more performant than any other mode. It have similar performance to mpv.

I moved assHandler?.init because I was getting this exception:

Exception in coroutine
java.lang.IllegalStateException: Player is accessed on the wrong thread.
Current thread: 'DefaultDispatcher-worker-9'
Expected thread: 'main'
See https://developer.android.com/guide/topics/media/issuesplayer-accessed-on-wrong-thread
	at androidx.media3.exoplayer.ExoPlayerImpl.verifyApplicationThread(ExoPlayerImpl.java:3150)
	at androidx.media3.exoplayer.ExoPlayerImpl.setVideoEffects(ExoPlayerImpl.java:1433)
	at io.github.peerless2012.ass.media.render.AssOverlayManager.<init>(AssOverlayManager.kt:22)
	at io.github.peerless2012.ass.media.AssHandler.init(AssHandler.kt:142)
	at com.github.damontecres.wholphin.services.PlayerFactory.createVideoPlayer(PlayerFactory.kt:181)
	at com.github.damontecres.wholphin.services.PlayerFactory$createVideoPlayer$1.invokeSuspend(Unknown Source:15)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:798)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)

Related issues


None

Testing


Emulator

Screenshots


Not relevant

AI or LLM usage


None

Diff: 311 lines (+233 / -78) across 3 files Reviewer: moi15moi Review duration: 26857m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.45) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 311 lines diff across 3 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.344
Shallow Review Depth shallow_review_depth
0.344
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2227"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 43.0% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 45.3% (MEDIUM) · Higher = larger blast radius
45.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 43.0% · Lower = rushed or shallow review
43.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 25.8% · Safe to merge
25.8%