sharpemu icon indicating copy to clipboard operation
sharpemu copied to clipboard

Astro Bot [PPSA21564]

Open par274 opened this issue 5 months ago • 39 comments

Game Name

Astro Bot

Title ID

PPSA21564

Game Version

1.07

Current Status

Crashes on boot

Description

  • sceAgcInit returns INVALID_ARGUMENT: the game requests register-defaults version 13; IsSupportedRegisterDefaultsVersion only accepts 7/8/10.
  • sceAgcCreateShader "unexpected-registers type=4 lo=0x8A hi=0x8B": It doesn't recognize switch shader type 4 (GS phase; PGM_LO/HI offsets 0x8A/0x8B) in AgcExports.cs current map PS=0x8, ES=0xC8, LS=0x148, CS=0x20C. The game dereferences the null shader without checking for the error and crashes at address 0x8.

Log File

PPSA21564.txt

Operating System

Windows 11

CPU

5800X3D

GPU

4070S

RAM

64 GB

Emulator Version / Commit

c3019b7

Renderer

Vulkan

Additional Notes

No response

par274 avatar Jul 01 '26 23:07 par274

I'm very interested in whether this game will be compatible, I really hope so. :3

MangoHelper avatar Jul 09 '26 23:07 MangoHelper

[LOADER][TRACE] VEH_AV first-chance at 0x000001F581D903C6 type=1 target=0x0000000300000020

[LOADER][DEBUG] TryResolveDirectImportTarget: 9BcDykPmo1I (libKernel:__error) -> HLE (kernel library) [LOADER][DEBUG] SetupImportStubs: Trampoline for 9BcDykPmo1I -> 0x000001F5877F0000

Pgeniebox avatar Jul 10 '26 11:07 Pgeniebox

#34

Yes, this wasn't related to AVX. I found and confirmed this through in-depth research.

The problem is actually map its heap to a fixed address using the MAP_FIXED flag. Other games worked because they fulfilled this condition later.

After this stage, the game progresses to the AGC commands.

PPSA21564.txt

par274 avatar Jul 10 '26 12:07 par274

so it should work now? i'm too dumb to understand

ynckz avatar Jul 10 '26 15:07 ynckz

so it should work now? i'm too dumb to understand

The right question is how it works. Yes, there are no obstacles right now, and yes, there are obstacles to the image right now. We are working on it. However, we're not working on a single game specifically, but on compatibility in general. If you understand how the real hardware works, these games will already work.

par274 avatar Jul 10 '26 16:07 par274

My attempt to launch:

Win11 25H2, 12700kf, 7900xtx, 2x16gb ddr4-4000. Emu commit 511a01e

I hope this is of some use.

SharpEmuLog-PPSA21564-20260714-075813.txt

Process exited with code -1073741819 (unknown).

AcidBurn9 avatar Jul 14 '26 05:07 AcidBurn9

I hope they fix it

abusofah1982-design avatar Jul 14 '26 15:07 abusofah1982-design

Hello, My attempt to launch :

W11 25H2 9800x3D 6700XT 2x32Gb ddr5-4800

Logs :

SharpEmuLog-PPSA21564.txt

Process exited with code -1073741819 (emulation error).

ElUrukrod avatar Jul 15 '26 15:07 ElUrukrod

Hello! My attempt to launch:

  • Windows 11
  • Intel core i5-12400F
  • AMD RX 6600
  • 2x16GB DDR5 4800

Logs: SharpEmuLog-PPSA21564-20260717-001926.txt

Process exited with code -1073741819 (emulation error).

alexceend avatar Jul 16 '26 22:07 alexceend

Hello,

My attempt to launch:

  • Windows 11
  • AMD 7800x3d
  • AMD RX 7900XT
  • 2x16GB DDR5 6000

Logs :

SharpEmuLog-PPSA21564-20260720-182700.txt

Trace :

   at Silk.NET.Vulkan.Vk.CreateGraphicsPipelines(Silk.NET.Vulkan.Device, Silk.NET.Vulkan.PipelineCache, UInt32, Silk.NET.Vulkan.GraphicsPipelineCreateInfo*, Silk.NET.Vulkan.AllocationCallbacks*, Silk.NET.Vulkan.Pipeline ByRef)
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter+Presenter.CreateTranslatedPipeline(TranslatedDrawResources, Byte[], Byte[], Silk.NET.Vulkan.RenderPass, System.Collections.Generic.IReadOnlyList`1<Silk.NET.Vulkan.Format>, Silk.NET.Vulkan.Extent2D)
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter+Presenter.CreateTranslatedDrawResources(SharpEmu.Libs.VideoOut.VulkanTranslatedGuestDraw, Silk.NET.Vulkan.RenderPass, System.Collections.Generic.IReadOnlyList`1<Silk.NET.Vulkan.Format>, Silk.NET.Vulkan.Extent2D, System.Collections.Generic.IReadOnlyList`1<GuestImageResource>, Boolean, GuestDepthResource)
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter+Presenter.ExecuteOffscreenDrawCore(SharpEmu.Libs.VideoOut.VulkanOffscreenGuestDraw)
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter+Presenter.ExecuteOffscreenDraw(SharpEmu.Libs.VideoOut.VulkanOffscreenGuestDraw)
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter+Presenter.RenderCore()
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter+Presenter.Render(Double)
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter+Presenter.Run()
   at SharpEmu.Libs.VideoOut.VulkanVideoPresenter.Run()
   at System.Threading.Thread.StartCallback()

Process exited with code -1073741819 (emulation error).

Astellou avatar Jul 20 '26 16:07 Astellou

Hello,

My attempt to launch:

SharpEmu: 0.0.2-beta.4-linux-x64 Operating System: Fedora Linux 44 KDE Plasma Version: 6.7.3 KDE Frameworks Version: 6.28.0 Qt Version: 6.11.1 Kernel Version: 7.1.4-202.fc44.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor Memory: 32 GiB of RAM (30.5 GiB usable) Graphics Processor 1: AMD Radeon RX 9060 XT

Logs:

PPSA21564-20260722-130854.log

Process exited with code 134 (unknown)

jpcrosado avatar Jul 22 '26 11:07 jpcrosado

Hello! My attempt to launch:

  • Windows 11
  • Intel core i5-12400F
  • AMD RX 6600
  • 2x16GB DDR5 4800 Logs:

SharpEmuLog-PPSA21564-20260722-130435.txt

[13:12:37.304] Process exited with code -1073741795 (unknown).

I think there's a memory leak because it kept going up until it crashed at 96% of ram (Using +20GB of ram)

  • Only showed a black screen for 5 minutes and then crashed

alexceend avatar Jul 22 '26 11:07 alexceend

Sharing results from a testing session on a locally patched build of current main System OS: Windows 11 Home 10.0.26200 CPU: AMD Ryzen 7 7800X3D (8C/16T) GPU: NVIDIA RTX 5070 Ti — driver 32.0.16.1062 — Vulkan renderer RAM: 32 GB SDK: .NET 10 SDK 10.0.302 Commit: eb47d75 ([Ampr] Implement the FW 4.00 write-address command exports (#510)) + local patches below Game: Astro Bot PPSA21564 v01.007.000 (USA), unpacked dump, launched with SHARPEMU_WRITABLE_APP0=1

Local patches used to get past boot (happy to open PRs) libSceFont — 7 missing glyph exports. Boot asserted in the font path until these NIDs were registered (added as stubs returning success; enough to get past the crash, not claimed correct): sceFontGenerateCharGlyph, sceFontRenderCharGlyphImageHorizontal, sceFontGlyphDefineAttribute, sceFontDeleteGlyph, sceFontCloseFont, sceFontUnbindRenderer, sceFontDestroyRenderer. (sceFontGetVerticalLayout is already implemented on HEAD.)

Intro video decode requires ffmpeg on PATH/env. The AvPlayer path shells out to ffmpeg/ffprobe; without it, boot crashes trying to open ps_studio_armadillo.mp4. Installed ffmpeg 8.1.2 and pointed SHARPEMU_FFMPEG_PATH at it. (Value-env only — the GUI's boolean EnvironmentToggles can't set it, so it has to be launched from a shell/script.)

Framerate: ~1.1 FPS steady Intro video renders entirely blue with horizontal lines No audio during the intro 3D title scene presents black

PPSA21564-sharpemu-log.txt

Shrek3OnVH5 avatar Jul 22 '26 13:07 Shrek3OnVH5

PPSA21564-20260729-203114.log

Current main d5108e8 without any modifications Operating System Windows 10

CPU AMD Ryzen 9 9950X3D

GPU AMD Radeon RX 7900 XT

RAM 256 GB

Emulator Version / Commit d5108e8

Boots up to the av ps_studio_armadillo.mp4 and fails to run it but waits for the end of video to come. Because that doesn't happen it will loop for ever.

Video of boot https://media.discordapp.net/attachments/1525508116756697129/1531883397738270810/2026-07-29_06-31-31.mp4?ex=6a6ad517&is=6a698397&hm=628fbee8a0afd9edf1caf6d698c744e6f0c9290fe3b388be9b141fcbd0efe2ea&

annahana avatar Jul 29 '26 06:07 annahana

Current main 0303b22 without any modifications Operating System Windows 10

CPU AMD Ryzen 9 9950X3D

GPU AMD Radeon RX 7900 XT

RAM 256 GB

change has helped a little. just to be clear it exists a race condition that is random and will deside how far you come.

Emulator Version / Commit 0303b22

with comit 0303b22 PPSA21564-20260729-203932.log https://discord.com/channels/1525448264135213167/1525508116756697129/1532102776077684746

annahana avatar Jul 29 '26 18:07 annahana

Tested on build run #1461. No visual on ps_studio_armadillo.mp4 but audio can be heard, after the video ends an unresolved import is hit which seems to trigger an engine assertion. Assuming the lack of video is from the AVPLAYER guest texture allocation failure, since a previous build did manage to output the video and I don't recognize the error.

[LOADER][WARN] Import#16515353 unresolved: nid=mkgXxsoxWHg ret=0x0000000800001228 rdi=0x0000000335CD8000 rsi=0x0000000000004000 rdx=0x0000000011111110 rcx=0x0000000000000000 r8=0xFFFFFFFFFFFFFFF9 r9=0x0000000000000040
ASSERT: D:\asobi\6.0\source\engine\app\Common\Conc\Thread.cpp:192
sceKernelClearVirtualRangeName 0x80020002
[AVPLAYER][INFO] decoder_started pid=9224 source='D:\PS5\Astro Bot\data\prein\video\ps_studio_armadillo.mp4'
[AVPLAYER][ERROR] Guest texture allocation failed index=0 callback=0x0000000801054390: returned null
[AVPLAYER][WARN] Guest texture allocator unavailable; using generic HLE memory.

OS: Windows 11 CPU: AMD Ryzen 7 5800X3D GPU: NVIDIA GeForce RTX 5070 RAM: 64GB

PPSA21564-20260730-032626.log

EDIT: Later assertion I ran into after trying to implement sceKernelClearVirtualRangeName

[20:00:02.545] [LOADER][TRACE] json.Parser.parse this=0x00007FFFB31FF650 value=[{"name": "default", "isUsed": true, "replaceTo": "", "color": [0.02, 0.063, 0.063], "emissiveColor": [1.0, 1.0, 1.0]}, {"name":
[20:00:02.545] [LOADER][TRACE] json.Value.index this=0x0000600000049600 value=name
[20:00:02.545] [LOADER][TRACE] json.String.c_str this=0x00007FFFB31FF530 value=default
[20:00:02.545] [LOADER][TRACE] json.Value.index this=0x0000600000049600 value=isUsed
[20:00:02.545] [LOADER][WARN] Import#17737894 unresolved: nid=wLsJlmgEIaI ret=0x0000000800321E9D rdi=0x0000600000049600 rsi=0x00007FFFB31FF740 rdx=0x000000000000000A rcx=0x0000000000000010 r8=0xFFFFFFFFFFFFFFF9 r9=0x0000000000000007
[20:00:02.545] [LOADER][TRACE] json.Value.index this=0x0000600000049600 value=applyToAll
[20:00:02.545] ASSERT: D:\asobi\6.0\source\engine\app\Module\Network\Json.cpp:399
[20:00:02.545] Assertion failed: v.getType() == sce::Json::kValueTypeBoolean

EDIT 2: Both assertions mentioned fixed in #710

EmK530 avatar Jul 30 '26 01:07 EmK530

Current main 7c9740f without any modifications Operating System Windows 10

CPU AMD Ryzen 9 9950X3D

GPU AMD Radeon RX 7900 XT

RAM 256 GB

latest changes has helped a little. "just to be clear it exists a race condition that is random and will deside how far you come. 1 in 8 runs is good enougt theo hear all of the logo sound and a long lasting sound that goes for like 4 minuts

Emulator Version / Commit 7c9740f

PPSA21564-20260731-161928.log https://youtu.be/b4dRVKu3_RY?si=Y9x0HzfKyAem16zZ

annahana avatar Jul 31 '26 15:07 annahana

No I had left it running for 2 hours and nothing. Most likely because the music waits for the Vulkan API that has stopped after 5:30 minutes --Gesendet mit der WEB.DE Mail AppAm 31.07.26, 18:19 schrieb Emil @.***>: EmK530 left a comment (sharpemu/sharpemu#11) If there's a long lasting sound you should reach title music eventually, it will take really long though from the lag

—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today! You are receiving this because you commented.Message ID: @.***>

annahana avatar Aug 01 '26 08:08 annahana

No I had left it running for 2 hours and nothing.

I see, maybe it's related to the issue I had where the game freezes shortly after reaching the title, but maybe it happens after a certain amount of time instead before you ever managed to reach it.

EmK530 avatar Aug 01 '26 15:08 EmK530

Hello,

My attempt to launch:

  • Windows 11
  • AMD 7800x3d
  • AMD RX 7900XT
  • 2x16GB DDR5 6000

Logs :

SharpEmuLog-PPSA21564-20260801-175657.txt

With last commit on main branch I'm getting those errors :

[17:57:04.987] [LOADER][TRACE] agc.create_shader dst=0x0000000000000000 header=0x0000000500000210 code=0x0000000500000100 unexpected-registers type=4 expected_lo=0x00000088 first_lo=0x0000008A
[17:57:04.987] [LOADER][WARN] Import#546617 result: ORBIS_GEN2_ERROR_INVALID_ARGUMENT (f3dg2CSgRKY) rdi=0x0000000307AA83D0 rsi=0x0000000500000210 rdx=0x0000000500000100 rcx=0x0000000000000040 ret=0x000000080046ACB2
....
[17:57:25.160] [LOADER][ERROR] Execution stalled with no import progress for 20s (imports=546816).
[17:57:25.229] [LOADER][ERROR] Stall snapshot: rip=0x0000700000006940 rsp=0x00007FFFF01FF558 rbp=0x00007FFFF01FF5C0 rax=0xFFFFFFFF80020003 rbx=0x0000000307AA83B8 rcx=0x0000000000000040 rdx=0x0000000500000100 rsi=0x0000000500000210 rdi=0x0000000307AA83D0
[17:57:25.229] [LOADER][ERROR] Stall import-stub: rip=0x0000700000006940 nid=f3dg2CSgRKY -> libSceAgc:sceAgcCreateShader
[17:57:25.229] [LOADER][ERROR] Stall bytes @rip: 48 B8 00 00 36 3F F5 01 00 00 FF E0 90 90 90 90
[17:57:25.229] [LOADER][ERROR] Stall stack: [rsp]=0x0000000000000000 [rsp+8]=0x0000000000000000
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A8518110 name='SystemService_ATQT' state=Blocked imports=11 nid=WKAXJ4XBPQ4 ret=0x0000000800011DD1 rdi=0x000000030092B960 rsi=0x00000003009297F0 rdx=0x0000000000000000 block=pthread_cond_wait
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A8519120 name='SystemWakeup' state=Blocked imports=1 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000E rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A851D160 name='BackgroundTaskWorker' state=Blocked imports=37 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A851C150 name='BackgroundTaskWorker' state=Blocked imports=14 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A851A130 name='BackgroundTaskWorker' state=Blocked imports=13 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A851F180 name='BackgroundTaskWorker' state=Blocked imports=13 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A8520190 name='BackgroundTaskWorker' state=Blocked imports=13 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A85211A0 name='BackgroundTaskWorker' state=Blocked imports=13 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A851E170 name='BackgroundTaskWorker' state=Blocked imports=13 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.229] [LOADER][ERROR] Stall guest-thread: handle=0x000001E5A85251E0 name='BackgroundTaskWorker' state=Blocked imports=13 nid=Zxa0VhQVTsk ret=0x00000008000017AE rdi=0x000000000000000F rsi=0x0000000000000001 rdx=0x0000000000000000 block=sceKernelWaitSema
[17:57:25.233] Process exited with code 4 (emulation error).

Astellou avatar Aug 01 '26 16:08 Astellou