AvPlayer: deliver player events from a per-player event thread (A Plague Tale: Innocence) #2480

Open
github-bot wants to merge 4 commits from github-bot/gh-2480 into main AGit
Owner

@⁠Nawid3333 on GitHub · 2026-11-21 01:08 UTC · original
Nawid3333:fix/avplayer-ready-event → main · +236 −51 · 2 files · 4 commits · open

A Plague Tale: Innocence (#1994) crashes right after it adds its logo video (@⁠Crispy81, official build a1fc5ae):

	 filename = /app0/VIDEOS/NTSC/LOGO.MP4
	 event_id = 2
--- Build ---
Official build KytyPS5-2026-11-20-a1fc5ae
--- Error ---
Unhandled host exception: type=1 code=3221225477 pc=0x00000009007b1d66 access=2 address=0x0000000000000020

sceAvPlayerAddSource calls the game's event callback with READY (event 2) before it returns. The fault context of the earlier bc934ef run (#1994 comment) shows the game's READY handler writing the video size (1920x1080, and half of it into a second object) through an object pointer that is still null, so the game sets that object up after sceAvPlayerAddSource returns. shadPS4 and AnyPS5 deliver player events from a player thread as well, so the game's code after the call runs first.

Change

  • Each player that registers an event callback gets one guest thread (AvPlayerEvent) that delivers its events in order. sceAvPlayerAddSource, Start, Stop, Pause, Resume, JumpToTime and the source's warnings queue their events instead of calling the game directly. With auto-start, sceAvPlayerAddSource still starts playback before it returns and queues READY and PLAY together.
  • sceAvPlayerClose stops the thread before it destroys the source: events that are still queued are dropped, and no callback runs after Close returns. A Close from inside the player's own callback detaches the thread instead of joining it.
  • sceAvPlayerInit fails when the event thread cannot be created.
  • The queue accepts events only between the thread's start and Close, decided under the queue's lock, so a Stop on another thread does not race a Close.

Test

avplayer_file_tests, CheckStateEvents: a recording callback whose READY handler waits until sceAvPlayerAddSource has returned. Cases: manual start (READY), auto-start (READY, PLAY), Close from the READY handler (READY only), auto-start then Stop (READY, PLAY, STOP), and Init failing when the event thread cannot be created. Without the change the first case fails with "AddSource returns while the READY handler runs on the player's event thread" (measured on main a1fc5ae; avPlayer.cpp is the same on a21fd80c8). With the change all cases pass (5 of 5 runs, Windows 11, clang-cl); CI runs avplayer_file_tests on Windows, Linux and macOS.

Game

@⁠Crispy81 ran a fork build with the event thread (run 44820092766, d9bdbb0 = main a1fc5ae + the first commit of this PR): "On that fork, game works fine. Good framerate, some minor graphical issues. No crashes." (#1994 comment). The second commit (the queue's lock and the STOP case) came after that run.

Written with Claude Code (AI): Claude Code found the cause from the tester's logs, wrote the change and the tests, and ran them.

**@⁠Nawid3333** on GitHub · 2026-11-21 01:08 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480) `Nawid3333:fix/avplayer-ready-event` → `main` · +236 −51 · 2 files · 4 commits · open A Plague Tale: Innocence (#1994) crashes right after it adds its logo video (@⁠Crispy81, official build a1fc5ae): ``` filename = /app0/VIDEOS/NTSC/LOGO.MP4 event_id = 2 --- Build --- Official build KytyPS5-2026-11-20-a1fc5ae --- Error --- Unhandled host exception: type=1 code=3221225477 pc=0x00000009007b1d66 access=2 address=0x0000000000000020 ``` `sceAvPlayerAddSource` calls the game's event callback with READY (event 2) before it returns. The fault context of the earlier bc934ef run ([#1994 comment](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1994)) shows the game's READY handler writing the video size (1920x1080, and half of it into a second object) through an object pointer that is still null, so the game sets that object up after `sceAvPlayerAddSource` returns. shadPS4 and AnyPS5 deliver player events from a player thread as well, so the game's code after the call runs first. ## Change - Each player that registers an event callback gets one guest thread (`AvPlayerEvent`) that delivers its events in order. `sceAvPlayerAddSource`, `Start`, `Stop`, `Pause`, `Resume`, `JumpToTime` and the source's warnings queue their events instead of calling the game directly. With auto-start, `sceAvPlayerAddSource` still starts playback before it returns and queues READY and PLAY together. - `sceAvPlayerClose` stops the thread before it destroys the source: events that are still queued are dropped, and no callback runs after `Close` returns. A `Close` from inside the player's own callback detaches the thread instead of joining it. - `sceAvPlayerInit` fails when the event thread cannot be created. - The queue accepts events only between the thread's start and `Close`, decided under the queue's lock, so a `Stop` on another thread does not race a `Close`. ## Test `avplayer_file_tests`, `CheckStateEvents`: a recording callback whose READY handler waits until `sceAvPlayerAddSource` has returned. Cases: manual start (READY), auto-start (READY, PLAY), `Close` from the READY handler (READY only), auto-start then `Stop` (READY, PLAY, STOP), and `Init` failing when the event thread cannot be created. Without the change the first case fails with "AddSource returns while the READY handler runs on the player's event thread" (measured on main a1fc5ae; `avPlayer.cpp` is the same on a21fd80c8). With the change all cases pass (5 of 5 runs, Windows 11, clang-cl); CI runs `avplayer_file_tests` on Windows, Linux and macOS. ## Game @⁠Crispy81 ran a fork build with the event thread ([run 44820092766](https://github.com/Nawid3333/KytyPS5/actions/runs/44820092766), d9bdbb0 = main a1fc5ae + the first commit of this PR): "On that fork, game works fine. Good framerate, some minor graphical issues. No crashes." ([#1994 comment](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1994)). The second commit (the queue's lock and the STOP case) came after that run. Written with Claude Code (AI): Claude Code found the cause from the tester's logs, wrote the change and the tests, and ran them.
AvPlayer called the game's event callback with READY from inside
sceAvPlayerAddSource. A Plague Tale: Innocence (#1994) faults writing to address 0x20
right after the READY event for LOGO.MP4, in code next to its callback. Each player
with an event callback now has an event thread that delivers READY, PLAY, PAUSE, STOP
and warnings in order (shadPS4 and AnyPS5 deliver them from a controller thread too),
so AddSource returns without waiting for the game's READY handler. Events of one call
are queued together as the call's last use of the player. Closing the player stops
the thread before the source is destroyed and drops undelivered events. Init fails
when the thread cannot be created.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post checked the event thread handle outside the queue's lock while
Shutdown cleared it, so a Stop on another thread could race a Close.
Post now decides under the lock from started and quit. The test also
stops a playing player and expects STOP after READY and PLAY.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
READY, PLAY and PAUSE were posted after the lifecycle lock was released, so a Stop on another thread could queue STOP before AddSource's READY and PLAY. Start, Pause, Resume and the AddSource auto-start now post their events while they hold the lock, like Stop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:21:12 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-21 01:14 UTC · original · edited 2026-11-24 07:42 UTC

Explain Change →

Walkthrough

AvPlayer now dispatches callback events through an EventQueue worker. The worker starts when a player has an event callback, and player creation fails if the worker cannot start. Source and player operations post state and warning events to the queue. Tests check event ordering, callback thread identity, close behavior, and player creation when thread creation fails.

Suggested reviewers: nmzik, cosmo

Change: Bug fix

Merge Risk: Moderate · up to cb7c1

Events now run on a separate thread, but nothing makes the READY callback wait until sceAvPlayerAddSource has returned. The game's READY handler can therefore still run too early and hit the null-object access this change targets. This is a timing-dependent race that should be fixed before merge, or the risk explicitly accepted.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: AvPlayer events are now delivered from a per-player event thread. It also names the game that the change fixes. The raw summary confirms that avPlayer.cpp adds an Even…
Description check Passed The description explains the crash in A Plague Tale: Innocence, the cause (the READY callback runs before sceAvPlayerAddSource returns), the per-player event thread change, the Close and Init behavior…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: AvPlayer events are now delivered from a per-player event thread. It also names the game that the change fixes. The raw summary confirms that avPlayer.cpp adds an EventQueue worker thread for player events, so the title matches the changeset.

Full details: Description check

Explanation

The description explains the crash in A Plague Tale: Innocence, the cause (the READY callback runs before sceAvPlayerAddSource returns), the per-player event thread change, the Close and Init behavior, the test cases, and the game validation. It matches the raw summary of avPlayer.cpp and the test file changes.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

**@⁠coderabbitai[bot]** on GitHub · 2026-11-21 01:14 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#issuecomment-7054934491) · edited 2026-11-24 07:42 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2480?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> AvPlayer now dispatches callback events through an EventQueue worker. The worker starts when a player has an event callback, and player creation fails if the worker cannot start. Source and player operations post state and warning events to the queue. Tests check event ordering, callback thread identity, close behavior, and player creation when thread creation fails. **Suggested reviewers:** `nmzik`, `cosmo` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"cb7c1bf61b872b017cd75f526d93b370189adaf7" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-normal-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Moderate</strong> · up to <code>cb7c1</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **🟡 Moderate** · up to `cb7c1` --> <!-- final_review_risk_coverage:{"sourceCommitId":"cb7c1bf61b872b017cd75f526d93b370189adaf7","coveredCommitId":"cb7c1bf61b872b017cd75f526d93b370189adaf7","kind":"reviewed"} --> Events now run on a separate thread, but nothing makes the READY callback wait until sceAvPlayerAddSource has returned. The game's READY handler can therefore still run too early and hit the null-object access this change targets. This is a timing-dependent race that should be fixed before merge, or the risk explicitly accepted. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title names the main change: AvPlayer events are now delivered from a per-player event thread. It also names the game that the change fixes. The raw summary confirms that avPlayer.cpp adds an Even… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description explains the crash in A Plague Tale: Innocence, the cause (the READY callback runs before sceAvPlayerAddSource returns), the per-player event thread change, the Close and Init behavior… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title names the main change: AvPlayer events are now delivered from a per-player event thread. It also names the game that the change fixes. The raw summary confirms that avPlayer.cpp adds an EventQueue worker thread for player events, so the title matches the changeset. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description explains the crash in A Plague Tale: Innocence, the cause (the READY callback runs before sceAvPlayerAddSource returns), the per-player event thread change, the Close and Init behavior, the test cases, and the game validation. It matches the raw summary of avPlayer.cpp and the test file changes. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2480)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-21 01:15 UTC · original · reviewed

Minor comments: 1

src/libs/avPlayer.cpp: 1

959-960: Minor · Stability & Availability · Poor tradeoff

Keep the event queue alive until the STOP post completes.

Source::Stop reads the events member and posts to the queue after lifecycle_mutex is released. AvPlayerClose takes no lifecycle lock. It shuts down the queue, resets the source, and deletes the player. The std::unique_ptr<EventQueue> owned by AvPlayerInternal is destroyed with the player. If Close runs after the lock is released and before the post, Stop can read events and call Post on destroyed storage. The quit check inside Post runs only after that access, so it does not prevent the access.

The baseline Stop delivered from a local copy of the callback. The new post depends on queue lifetime that Close controls.

Keep a queue reference that the post owns. Take it under lifecycle_mutex before the lock is released. Alternatively, make Close wait for an in-flight Stop. Either change must keep STOP delivery when Close has not begun and must reject posts after shutdown.

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a21fd80c8e and 5d09e324b9.

Files selected for processing: 2

  • src/libs/avPlayer.cpp
  • tests/AvPlayerFileTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-21 01:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#pullrequestreview-6001680007) · **reviewed** <!-- coderabbit-ai-generated:v1 --> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor comments: 1</summary><blockquote> <dl> <dd> <br> <details> <summary>src/libs/avPlayer.cpp: 1</summary><blockquote> <dl> <dd> <br> `959-960`: **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Stability & Availability** · **Poor tradeoff** **Keep the event queue alive until the STOP post completes.** `Source::Stop` reads the `events` member and posts to the queue after `lifecycle_mutex` is released. `AvPlayerClose` takes no lifecycle lock. It shuts down the queue, resets the source, and deletes the player. The `std::unique_ptr<EventQueue>` owned by `AvPlayerInternal` is destroyed with the player. If `Close` runs after the lock is released and before the post, `Stop` can read `events` and call `Post` on destroyed storage. The `quit` check inside `Post` runs only after that access, so it does not prevent the access. The baseline `Stop` delivered from a local copy of the callback. The new post depends on queue lifetime that `Close` controls. Keep a queue reference that the post owns. Take it under `lifecycle_mutex` before the lock is released. Alternatively, make `Close` wait for an in-flight `Stop`. Either change must keep STOP delivery when `Close` has not begun and must reject posts after shutdown. <!-- cr-comment:v1:6ab7daa68852b18a9399f353 --> </dd> </dl> </blockquote></details> </dd> </dl> </blockquote></details> <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/a21fd80c8e570ebcde9248deec9c711c252ebc77/.coderabbit.yaml>) - **Commit**: [a21fd80](<https://github.com/KytyPS5/KytyPS5/commit/a21fd80c8e570ebcde9248deec9c711c252ebc77>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `190cc2ae-0538-44f7-b30c-8f5ec719fcb0` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between a21fd80c8e570ebcde9248deec9c711c252ebc77 and 5d09e324b9c116c1aa32cf830763ee721c5decc9. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</summary> <dl> <dd> <br> * `src/libs/avPlayer.cpp` * `tests/AvPlayerFileTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=b964b837-66a1-48e4-85ae-8b88136c6b4e attempt=c5390510-e5f2-4dd5-9e36-05b56d188ee6 batch=1/1 -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 07:16 UTC · original · reviewed

Minor comments: 1

src/libs/avPlayer.cpp: 1

956-956: Minor · Functional Correctness · Poor tradeoff

Post READY and PLAY under the lifecycle lock that guards the auto-start.

add_source calls h->source->Start() at line 1850. That call releases lifecycle_mutex when it returns. READY and PLAY are then posted at line 1854, outside that lock. A concurrent Stop can take lifecycle_mutex in this gap and post STOP at line 956 before READY and PLAY. The callback then ends on PLAY while the source is stopped. If Stop sees a state other than Playing, it posts no STOP, and the callback still ends on a stale PLAY.

The READY and PLAY submission must happen in the same lifecycle_mutex critical section as the start transition. A Stop, Pause, Resume, or Jump that runs during AddSource must then queue its event either before the whole READY/PLAY batch or after it. The same change also fixes a manual Start that can queue PLAY before READY.

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5d09e324b9 and 2baacf50df.

Files selected for processing: 1

  • src/libs/avPlayer.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 07:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#pullrequestreview-6035138943) · **reviewed** <!-- coderabbit-ai-generated:v1 --> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor comments: 1</summary><blockquote> <dl> <dd> <br> <details> <summary>src/libs/avPlayer.cpp: 1</summary><blockquote> <dl> <dd> <br> `956-956`: **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Functional Correctness** · **Poor tradeoff** **Post READY and PLAY under the lifecycle lock that guards the auto-start.** `add_source` calls `h->source->Start()` at line 1850. That call releases `lifecycle_mutex` when it returns. READY and PLAY are then posted at line 1854, outside that lock. A concurrent `Stop` can take `lifecycle_mutex` in this gap and post STOP at line 956 before READY and PLAY. The callback then ends on PLAY while the source is stopped. If `Stop` sees a state other than `Playing`, it posts no STOP, and the callback still ends on a stale PLAY. The READY and PLAY submission must happen in the same `lifecycle_mutex` critical section as the start transition. A `Stop`, `Pause`, `Resume`, or `Jump` that runs during `AddSource` must then queue its event either before the whole READY/PLAY batch or after it. The same change also fixes a manual `Start` that can queue PLAY before READY. <!-- cr-comment:v1:43201bf6f42e5de29aad7190 --> </dd> </dl> </blockquote></details> </dd> </dl> </blockquote></details> <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/a21fd80c8e570ebcde9248deec9c711c252ebc77/.coderabbit.yaml>) - **Commit**: [a21fd80](<https://github.com/KytyPS5/KytyPS5/commit/a21fd80c8e570ebcde9248deec9c711c252ebc77>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `f6dc624c-711f-467b-9149-20642ade6209` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 5d09e324b9c116c1aa32cf830763ee721c5decc9 and 2baacf50df5dca9d666a5b7926b089965d4709b8. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 1</summary> <dl> <dd> <br> * `src/libs/avPlayer.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=1e6c2914-a538-42c1-bd04-f3e10d0d7617 attempt=1b5b8c73-649c-4c8d-a9b1-af1c75ec48d7 batch=1/1 -->
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 07:40 UTC · original

@⁠coderabbitai Both points are right.

  • 2baacf50d: Stop posts STOP inside the lifecycle lock. AvPlayerClose frees the queue only after h->source.reset(), whose Close calls Stop and waits for that lock, so the post finishes first.
  • cb7c1bf61: Start, Pause, Resume and the AddSource auto-start also queue READY, PLAY and PAUSE while they hold that lock, so a Stop on another thread queues STOP before or after the whole READY/PLAY batch.

Post takes only the queue's own mutex, and the event thread calls the game with neither lock held, so this adds no lock-order dependency.

**@⁠Nawid3333** on GitHub · 2026-11-24 07:40 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#issuecomment-7125250565) @⁠coderabbitai Both points are right. - `2baacf50d`: `Stop` posts STOP inside the lifecycle lock. `AvPlayerClose` frees the queue only after `h->source.reset()`, whose `Close` calls `Stop` and waits for that lock, so the post finishes first. - `cb7c1bf61`: `Start`, `Pause`, `Resume` and the `AddSource` auto-start also queue READY, PLAY and PAUSE while they hold that lock, so a `Stop` on another thread queues STOP before or after the whole READY/PLAY batch. `Post` takes only the queue's own mutex, and the event thread calls the game with neither lock held, so this adds no lock-order dependency.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 07:42 UTC · original · reviewed

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2baacf50df and cb7c1bf61b.

Files selected for processing: 1

  • src/libs/avPlayer.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 07:42 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#pullrequestreview-6035404721) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/a21fd80c8e570ebcde9248deec9c711c252ebc77/.coderabbit.yaml>) - **Commit**: [a21fd80](<https://github.com/KytyPS5/KytyPS5/commit/a21fd80c8e570ebcde9248deec9c711c252ebc77>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `c289dd01-3b1b-4e25-93b6-ad10f20cf815` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 2baacf50df5dca9d666a5b7926b089965d4709b8 and cb7c1bf61b872b017cd75f526d93b370189adaf7. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 1</summary> <dl> <dd> <br> * `src/libs/avPlayer.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=d6f58943-ebe3-44eb-9695-fad1972f9d15 attempt=e36a9a09-14f2-4629-b0ad-fd23bf100749 batch=1/1 -->
@ -800,0 +895,4 @@
const std::array<EventQueue::Event, 2> added {
{{AVPLAYER_EVENT_STATE_READY, std::nullopt},
{AVPLAYER_EVENT_STATE_PLAY, std::nullopt}}};
events->Post(std::span(added).first(start && rc == 0 ? 2 : 1));
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 07:42 UTC · original · edited 2026-11-24 11:31 UTC

Major · Stability & Availability · Heavy lift

Synchronize READY delivery with caller setup.

After Post releases the queue mutex, the worker can invoke READY before Source::Add or sceAvPlayerAddSource returns. The lifecycle lock does not prevent callback execution. The reported null-object access therefore remains possible.

Use an explicit readiness handshake tied to completion of caller setup. Moving the post or adding a delay cannot guarantee this ordering. The current test does not establish that guarantee because RecordEvent waits inside the READY handler for add_source_returned. (raw.githubusercontent.com)

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 07:42 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#discussion_r4676905563) · edited 2026-11-24 11:31 UTC <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Stability & Availability** · **Heavy lift** **Synchronize READY delivery with caller setup.** After `Post` releases the queue mutex, the worker can invoke READY before `Source::Add` or `sceAvPlayerAddSource` returns. The lifecycle lock does not prevent callback execution. The reported null-object access therefore remains possible. Use an explicit readiness handshake tied to completion of caller setup. Moving the post or adding a delay cannot guarantee this ordering. The current test does not establish that guarantee because `RecordEvent` waits inside the READY handler for `add_source_returned`. ([raw.githubusercontent.com](https://raw.githubusercontent.com/KytyPS5/KytyPS5/cb7c1bf61b872b017cd75f526d93b370189adaf7/src/libs/avPlayer.cpp)) <!-- fingerprinting:phantom:poseidon:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:4cbf5954496aff05364a370f --> <!-- This is an auto-generated reply by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 07:43 UTC · original

Tip

For best results, initiate chat on the files or code changes.

Analysis chain

Script executed:

#!/bin/bash
printf '%s\n' '--- revision ---'
git rev-parse HEAD
printf '%s\n' '--- relevant outline ---'
ast-grep outline src/libs/avPlayer.cpp --items all --match 'EventQueue|Source|AvPlayerClose|AvPlayerAddSource|Start|Stop|Pause|Resume|Post|Close' --view expanded
printf '%s\n' '--- lifecycle and queue references ---'
rg -n -C 5 'class EventQueue|struct EventQueue|class Source|struct Source|AvPlayerClose\s*\(|AvPlayerAddSource\s*\(|\b(Post|Shutdown|Stop|Start|Pause|Resume|Close)\s*\(' src/libs/avPlayer.cpp

Length of output: 16723


Script executed:

#!/bin/bash
printf '%s\n' '--- event queue ---'
cat -n src/libs/avPlayer.cpp | sed -n '112,215p'
printf '%s\n' '--- source lifecycle ---'
cat -n src/libs/avPlayer.cpp | sed -n '810,905p'
cat -n src/libs/avPlayer.cpp | sed -n '950,1007p'
cat -n src/libs/avPlayer.cpp | sed -n '1148,1165p'
printf '%s\n' '--- owner and creation ---'
cat -n src/libs/avPlayer.cpp | sed -n '1810,1900p'
printf '%s\n' '--- close ---'
cat -n src/libs/avPlayer.cpp | sed -n '2150,2167p'

Length of output: 15853


@Nawid3333 Thanks. I checked commit cb7c1bf61.

The lifecycle lock serializes Stop with the READY/PLAY batch and the other state-event posts. The event worker releases the queue mutex before invoking the callback.

If Stop already holds the lifecycle lock, Close waits for its post before freeing the queue. Shutdown can still discard that post. This does not establish safety for a call racing with Close before it acquires the lifecycle lock; that would require separate handle and source lifetime coordination if concurrent close is supported.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 07:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#issuecomment-7125304532) <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated reply by CodeRabbit --> > [!TIP] > For best results, initiate chat on the files or code changes. <details> <summary>Analysis chain</summary> <dl> <dd> <br> Script executed: ```shell #!/bin/bash printf '%s\n' '--- revision ---' git rev-parse HEAD printf '%s\n' '--- relevant outline ---' ast-grep outline src/libs/avPlayer.cpp --items all --match 'EventQueue|Source|AvPlayerClose|AvPlayerAddSource|Start|Stop|Pause|Resume|Post|Close' --view expanded printf '%s\n' '--- lifecycle and queue references ---' rg -n -C 5 'class EventQueue|struct EventQueue|class Source|struct Source|AvPlayerClose\s*\(|AvPlayerAddSource\s*\(|\b(Post|Shutdown|Stop|Start|Pause|Resume|Close)\s*\(' src/libs/avPlayer.cpp ``` Length of output: 16723 --- Script executed: ```shell #!/bin/bash printf '%s\n' '--- event queue ---' cat -n src/libs/avPlayer.cpp | sed -n '112,215p' printf '%s\n' '--- source lifecycle ---' cat -n src/libs/avPlayer.cpp | sed -n '810,905p' cat -n src/libs/avPlayer.cpp | sed -n '950,1007p' cat -n src/libs/avPlayer.cpp | sed -n '1148,1165p' printf '%s\n' '--- owner and creation ---' cat -n src/libs/avPlayer.cpp | sed -n '1810,1900p' printf '%s\n' '--- close ---' cat -n src/libs/avPlayer.cpp | sed -n '2150,2167p' ``` Length of output: 15853 --- </dd> </dl> </details> `@Nawid3333` Thanks. I checked commit `cb7c1bf61`. The lifecycle lock serializes `Stop` with the READY/PLAY batch and the other state-event posts. The event worker releases the queue mutex before invoking the callback. If `Stop` already holds the lifecycle lock, `Close` waits for its post before freeing the queue. Shutdown can still discard that post. This does not establish safety for a call racing with `Close` before it acquires the lifecycle lock; that would require separate handle and source lifetime coordination if concurrent close is supported. --- <!-- This is an auto-generated comment: tweet message by coderabbit.ai --> If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Lifecycle%20locking%20keeps%20STOP%20ordered%20before%20queue%20cleanup%20and%20prevents%20it%20interleaving%20with%20READY%2FPLAY%2FPAUSE%20batches%E2%80%94without%20adding%20lock-order%20dependencies.%20Try%20%40coderabbitai%20for%20sharp%20code%20reviews%20%F0%9F%94%8D&url=https%3A%2F%2Fgithub.com%2FKytyPS5%2FKytyPS5%2Fpull%2F2480)? Thank you for using CodeRabbit! <!-- end of auto-generated comment: tweet message by coderabbit.ai --> <sub><i>You are interacting with an AI system.</i></sub>
@ -800,0 +895,4 @@
const std::array<EventQueue::Event, 2> added {
{{AVPLAYER_EVENT_STATE_READY, std::nullopt},
{AVPLAYER_EVENT_STATE_PLAY, std::nullopt}}};
events->Post(std::span(added).first(start && rc == 0 ? 2 : 1));
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 11:31 UTC · original

The window left is between the event thread and the game's own code after sceAvPlayerAddSource returns. No AvPlayer function marks the end of that setup (libAudio.cpp:667-694), so a handshake could wait at most for the return itself, and the game's next instructions would still race the event thread. AvPlayerInitDataEx has settings for an event thread of the player's own (avPlayer.cpp:254).

What the READY handler can read through the player is set before the post: Init (1870), h->source (1874), and with auto-start Add (1875) runs StartImpl before Post (893-898). The queue mutex orders this for the event thread (174, 197-206).

The test checks the change itself: READY no longer runs inside AddSource on the caller's thread; with main's avPlayer.cpp it fails. It does not claim an order after the return.

**@⁠Nawid3333** on GitHub · 2026-11-24 11:31 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#discussion_r4679352075) The window left is between the event thread and the game's own code after `sceAvPlayerAddSource` returns. No AvPlayer function marks the end of that setup (libAudio.cpp:667-694), so a handshake could wait at most for the return itself, and the game's next instructions would still race the event thread. `AvPlayerInitDataEx` has settings for an `event` thread of the player's own (avPlayer.cpp:254). What the READY handler can read through the player is set before the post: `Init` (1870), `h->source` (1874), and with auto-start `Add` (1875) runs `StartImpl` before `Post` (893-898). The queue mutex orders this for the event thread (174, 197-206). The test checks the change itself: READY no longer runs inside `AddSource` on the caller's thread; with main's `avPlayer.cpp` it fails. It does not claim an order after the return.
@ -800,0 +895,4 @@
const std::array<EventQueue::Event, 2> added {
{{AVPLAYER_EVENT_STATE_READY, std::nullopt},
{AVPLAYER_EVENT_STATE_PLAY, std::nullopt}}};
events->Post(std::span(added).first(start && rc == 0 ? 2 : 1));
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 11:32 UTC · original

Analysis chain

Script executed:

#!/bin/bash
set -u
printf '%s\n' '--- Applicable repository instructions ---'
for f in AGENTS.md src/AGENTS.md src/libs/AGENTS.md tests/AGENTS.md; do
  if [ -f "$f" ]; then printf '\n--- %s ---\n' "$f"; cat "$f"; fi
done
printf '\n%s\n' '--- Event callback test outline and excerpts ---'
ast-grep outline tests/AvPlayerFileTests.cpp --items all --match 'RecordEvent|CheckStateEvents|Event' || true
rg -n -C 8 'RecordEvent|CheckStateEvents|add_source_returned|callback_thread' tests/AvPlayerFileTests.cpp || true
printf '\n%s\n' '--- Locate libAudio.cpp ---'
fd -i '^libAudio\.cpp$' . --type f --hidden --exclude .git | while IFS= read -r f; do
  printf '\n--- %s outline ---\n' "$f"
  ast-grep outline "$f" --items all --match 'AvPlayer' || true
  printf '\n--- %s lines 640-710 ---\n' "$f"
  cat -n "$f" | sed -n '640,710p'
done
printf '\n%s\n' '--- Current AvPlayer queue and add source ---'
ast-grep outline src/libs/avPlayer.cpp --items all --match 'EventQueue|add_source|AvPlayerAddSource' || true
cat -n src/libs/avPlayer.cpp | sed -n '130,210p;875,905p;1850,1885p'

Length of output: 15650


@Nawid3333 You’re right. I withdraw my recommendation for a caller-setup handshake: AvPlayer has no signal for when the game finishes that setup.

The source initialization and h->source assignment happen before READY is posted. Successful auto-start also happens before the post. The queue mutex makes those writes visible to the callback.

READY can still run before sceAvPlayerAddSource returns or before the game finishes its setup. The test checks separate-thread delivery, not that ordering. I’m not marking the timing concern as addressed.

The reported game run used the first PR commit. A run on the final revision would provide additional validation, though it would not prove an ordering guarantee.


📝 Learnings were not changed: only organization members or users with write access to this repository can add or remove learnings.

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 11:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2480#discussion_r4679364126) <!-- coderabbit-ai-generated:v1 --> <details> <summary>Analysis chain</summary> <dl> <dd> <br> Script executed: ```shell #!/bin/bash set -u printf '%s\n' '--- Applicable repository instructions ---' for f in AGENTS.md src/AGENTS.md src/libs/AGENTS.md tests/AGENTS.md; do if [ -f "$f" ]; then printf '\n--- %s ---\n' "$f"; cat "$f"; fi done printf '\n%s\n' '--- Event callback test outline and excerpts ---' ast-grep outline tests/AvPlayerFileTests.cpp --items all --match 'RecordEvent|CheckStateEvents|Event' || true rg -n -C 8 'RecordEvent|CheckStateEvents|add_source_returned|callback_thread' tests/AvPlayerFileTests.cpp || true printf '\n%s\n' '--- Locate libAudio.cpp ---' fd -i '^libAudio\.cpp$' . --type f --hidden --exclude .git | while IFS= read -r f; do printf '\n--- %s outline ---\n' "$f" ast-grep outline "$f" --items all --match 'AvPlayer' || true printf '\n--- %s lines 640-710 ---\n' "$f" cat -n "$f" | sed -n '640,710p' done printf '\n%s\n' '--- Current AvPlayer queue and add source ---' ast-grep outline src/libs/avPlayer.cpp --items all --match 'EventQueue|add_source|AvPlayerAddSource' || true cat -n src/libs/avPlayer.cpp | sed -n '130,210p;875,905p;1850,1885p' ``` Length of output: 15650 --- </dd> </dl> </details> `@Nawid3333` You’re right. I withdraw my recommendation for a caller-setup handshake: AvPlayer has no signal for when the game finishes that setup. The source initialization and `h->source` assignment happen before READY is posted. Successful auto-start also happens before the post. The queue mutex makes those writes visible to the callback. READY can still run before `sceAvPlayerAddSource` returns or before the game finishes its setup. The test checks separate-thread delivery, not that ordering. I’m not marking the timing concern as addressed. The reported game run used the first PR commit. A run on the final revision would provide additional validation, though it would not prove an ordering guarantee. --- > 📝 Learnings were not changed: only organization members or users with write access to this repository can add or remove learnings. <sub><i>You are interacting with an AI system.</i></sub> <!-- This is an auto-generated reply by CodeRabbit -->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2480/head:github-bot/gh-2480'
git switch 'github-bot/gh-2480'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2480'
git switch 'github-bot/gh-2480'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2480'
git switch 'github-bot/gh-2480'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2480'
git switch 'main'
git merge --squash 'github-bot/gh-2480'
git switch 'main'
git merge --ff-only 'github-bot/gh-2480'
git switch 'main'
git merge 'github-bot/gh-2480'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.