[Android / Adreno 650] VK_ERROR_DEVICE_LOST about 50-80 s after the game starts (Turnip)

オープン
#990 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, cpp

調査の方向性

Start by comparing pkp.log and pkp.log.prev from the two failed runs, focusing on the texture remake sequence for 389–393, the compute dispatch for shader 62619a57fc0feb43, and the unfinished submission at device loss. Check how the Vulkan/Turnip path handles these submissions on Adreno 650 and whether the reported subgroup width matters. Done means identifying a reproducible cause and confirming a fix prevents the device loss.

索引モデルが issue の本文から書いたものです。

説明

Summary

On a Snapdragon 865 (Adreno 650) handheld, the game builds, starts and runs at about 29 fps. After 50 to 80 seconds it always closes with "The graphics device was lost". It happened in 3 runs out of 3, at the same point each time (shortly after gameplay starts).

Device

  • Device: Retroid Pocket Flip 2
  • Chipset: Snapdragon 865 (Adreno 650), about 7.5 GB RAM (low memory profile is active)
  • Android 13
  • GPU driver: the included Turnip driver (Mesa 26.3.1, Vulkan 1.3.363, driver 0x06803001)
  • Recompia: 0.18.1 (Android APK, app 18010000)
  • Game: 2.0.1 (update 655360). Build finished without errors, "Tune for this CPU" on, "Optimized build" off
  • Shader cache imported from a PC install (0.18.0)

Settings

Defaults chosen by the app: Resolution 40%, Upscaler SGSR, frame cap 30, Dynamic resolution off.

What happens

  1. Press Play.
  2. The game starts and runs at about 29 fps.
  3. After 50 to 80 s, the game closes.

Log lines (pkp.log):

gfx: graphics device lost in vkQueueSubmit2 (NVN) (VK_ERROR_DEVICE_LOST); stopping further GPU work
gfx:   no GPU checkpoints (they need NVIDIA's VK_NV_device_diagnostic_checkpoints)
gfx:   NVN submissions on the GPU and not finished: 1 (the GPU had finished serial 10493, 10494 were handed to it)
gfx:     submission 10494: 0 dispatches, 0 draws
gfx:   no driver fault report (VK_EXT_device_fault not offered)
play: ending the process (fail): The graphics device was lost, so Recompia must close.

In one run, the unfinished submission named a draw:

gfx:     submission 17056: 0 dispatches, 1 draw
gfx:       draw vs 821538a4398f85a7 fs 9f3f4772c2ad7edc

Just before each crash, the log shows the same sequence: textures 389-393 are remade with storage or feedback loop usage, then this compute shader is dispatched:

nvn.pipe: compute variant vote of 62619a57fc0feb43 (0x0): built
nvn.replay: compute: 62619a57fc0feb43 dispatched over its scaled image: 60x34 groups (scale 0.500)

The log also warns at startup:

nvn: subgroups are 128 wide here, the game's shaders assume 32: asking for 32 in stages 0x0; the other stages run at the driver's width

What I tried

  • Upscaler off (scene_upscaler = 0 in pkp.ini): the game still crashed, at 48 s.
  • I did not try the system driver, because the README says it shows a black picture in this game.

Logs

pkp.log and pkp.log.prev (two separate crashing runs) will be attached in a comment below.

主要言語
C++
スター
224
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

featureJosh/Recompia のほかの issue

featureJosh/Recompia の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。