Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by snoozedDev on 2026-10-12T17:05:41Z.
Title: Cyberpunk 2077 (PPSA04029 v02.120.000, EU disc, owned). Converted from the dump's
eboot.binwithrelinker --registrybuilt from the samemain, no--to-intel. Follows #3308: stops 1 and 2 are fixed onmain(#3428, #3465, #3455, #3476); #4321 (merged 2026-10-12, fixes stop 3 of #3308) asked for a confirmation on this title: stop 3 still reproduces onmainwith #4321. This issue carries those runs and where the threads are now.Host: Linux (kernel 7.2.5), GCC 16.2.1, RTX 3090, NVIDIA 610.57.04, selected with
ANYPS5_GPU=3090. DualSense connected, no input given.vm.max_map_countis 1048576 on this host.Build:
maind592d54e(contains5b7cb8d1), Release,-DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON(whatbuild.yml's linux job uses). No probes. The runs "with #4216" below are the same tree plus #4216's head 327e3b81 cherry-picked,libsrebuilt; the five tests #4216 names pass.Launch:
APS5_TRACE_DISPATCH_IO=1 ANYPS5_GPU=3090 timeout 900 ./app.elfinsidegamescope --backend headless -W 2304 -H 1296 -r 60, one launch at a time, cold shader cache unless stated. Times below are from launch to the title's exit, measured by the wrapper script (the log has no timestamps); no run reached the limit and none logs atimeout: sending signalline.sce_module/: as in #3308.tools/import_audit.pyon this conversion: 980 unique imports, 680 implemented, 28 stubs, 0 absent, 272 resolved by the title's own modules.Stop 3 of #3308 on bare
maind592d54e: cold, cold, warm139 s after launch in each of the three runs (after the eighth 10-second shader-cache tick), 0 dispatches, no earlier throw. The same tick as in the
a11c8f7fretest on #3308; a bare-maincold run ond146ec1b, just before #4321, also stopped at 139 s (that run was not posted). Reached before it: swapchain 1381x777 created, 767 / 758 shaders compiled in the cold runs, 765 hits / 359 misses in the warm one.Three
eu-stacksamples of one cold run (the title started with a preload that callsprctl(PR_SET_PTRACER_ANY), nothing else changed; 44, 54 and 56 threads):sceKernelBatchMap2wait inpthread_mutex_lockfromGuestAllocationsBegin_nid_postfix, one viaDoMtypeprotect→DoMprotect, one viasceKernelMunmap→DoMunmap; ten title threads run title code.sceKernelBatchMap2thread inDoMtypeprotect→DoMprotect→GuestAllocationsProtect_nid_postfix, insidestd::_Rb_tree<unsigned long, std::pair<const unsigned long, std::shared_ptr<GuestAllocations::Range const>>>operations; the title's main thread is insched_yield.sceKernelBatchMap2→DoMapDirect→GuestAllocationsRequireAvailable_nid_postfix.WatchMappingis on no stack in any sample. Ond592d54e,GuestAllocationsProtect_nid_postfix(GuestAllocations.cpp:446) builds a copy of the whole range map on every call (replaceRangeat line 418 copiesregistry().rangesat line 423, thenswap),GuestAllocationsRequireAvailable_nid_postfix(line 348) andGuestAllocationsOverlaps_nid_postfix(line 361) walk the map frombegin(), andGuestAllocationsAcquire_nid_postfix(line 488) copies every readable range into a lease on each call. With the title's ~35,000 live 64 KiB direct mappings (#3308), the per-call cost that was inWatchMappingis now in the allocation registry. #4321's description names the same functions (GuestAllocationsCovers,GuestAllocationsOverlaps,GuestAllocationsRequireAvailable) as where its benchmark's walks are once addresses are fixed. #2688 described the same registry cost and was closed in favour of #1324 (perf(memory): restrict registry work to affected ranges, open), whose description asks for a title profile of the remaining full-registry work; these samples are one.With #4216 (327e3b81) on top of
d592d54e: cold 4 of 4 still trip, later; warm passesCold:
!!! EngineWatchdog timeout!227 s, 212 s, 222 s and 253 s after launch (after the 19th to 22nd tick; 1236 to 1309 shaders compiled; 0 dispatches); the fourth run was without the ptrace preload. Samples at 60, 120 and 200 s in the first three (56 to 57 threads): thesceKernelBatchMap2threads are instd::_Rb_tree_incrementinsideGuestAllocationsAcquire_nid_postfix(reached viaGuestAllocationsProtect_nid_postfix→GuestAllocationsRequireUnpinned_nid_postfix→WaitForLeasesAndImports, and viaGuestAllocationsEnd_nid_postfix→Driver::Driver→ImportGuestMemory→ImportMappedRanges), insideGuestAllocationsRequireAvailable_nid_postfixandGuestAllocationsOverlaps_nid_postfix(viaReplaceFixedOverlap) fromDoMapDirect, or waiting inpthread_mutex_lockfromGuestAllocationsBegin_nid_postfix,GuestAllocationsAcquire_nid_postfixandGuestMemory::GpuMutexType::lock. #4216 startsGuestAllocationsCovers_nid_postfixandreplaceRangeatupper_boundand addsGuestAllocationsLookup_nid_postfix;RequireAvailableandOverlapsstill start atbegin(), andAcquirestill copies the whole readable set per call.Warm (cache of the fourth cold run; 1337 hits, 77 misses): the watchdog does not fire. 14,664 compute dispatches, then, 184 s after launch, the first presentation:
0x00400001isCLIP_DIST_ENA_0 | VS_OUT_CCDIST0_VEC_ENA(State.cpplines 701 and 1162 ond592d54e), what #423 implements; tibzejoker reports GTA V (PPSA04264) on the same line there. Not yet a stop on baremain, so not reported as one; #3308 saw this value in four runs on a shutdown path.Seen, not stops, in every run
79
s_swappc_b64deferrals, 4unsupported registered shader type 8, the background preparation failuresGetImageResource dword 0 is not a valid runtime valueatpc=0x00000474andpc=0x000004d0(pluspc=0x00000410in the warm bare-mainrun and in every run with #4216),sceSysmoduleLoadModuleunknown id 267, nonot implementedline.AI-assisted: yes (Claude Code, Claude Fable 5.1), operating under my supervision; I am accountable for this report and will respond to review.
Imported from boykopovar/AnyPS5. Originally posted by snoozedDev on 2026-10-14T22:44:13Z.
Rerun on
main799982fac, which contains #4216 (50578eb9), #4698 (52edeeda) and #423 (4bb2c7f3). Same title, host, build configuration and launch as above, withtimeout 520instead of 900; the title was reconverted with thismain's relinker. RTX 3090, NVIDIA 610.57.04. Times are from launch to the title's exit, measured by the wrapper script; no run reached the limit. Three cold runs and one warm run per tree.Bare
main:!!! EngineWatchdog timeout!!!! EngineWatchdog timeout!The watchdog now fires in 2 of 3 cold runs, about 300 s later than on
d592d54e(139 s, 3 of 3) and after the title has started dispatching; the third cold run and the warm run pass it.eu-stacksamples of the two cold runs that tripped (same ptrace preload as above; 57 to 61 threads): everysceKernelBatchMap2thread that was not waiting on a lock was in one of three places, each insidestd::_Rb_tree_incrementor the range copy:DoMapDirect→GuestAllocationsRequireAvailable_nid_postfix(60 s of cold 1, 250 s of cold 2);GuestAllocationsOverlaps_nid_postfix, fromDoMapDirect→ReplaceFixedOverlap(120 s of cold 1) and fromDoMunmap(200 s of cold 1);GuestAllocationsAcquire_nid_postfix, fromDoMprotect→GuestAllocationsRequireUnpinned_nid_postfix→WaitForLeasesAndImports(90 s of cold 2) and fromDoMapDirect→GuestAllocationsEnd_nid_postfix→ImportGuestMemory→ImportMappedRanges(400 s of cold 2).In two samples one further
sceKernelBatchMap2thread was inpthread_mutex_lock: fromGuestAllocationsBegin_nid_postfixat 120 s of cold 1 and fromGuestAllocationsRequireUnpinned_nid_postfixat 90 s of cold 2.WatchMapping,GuestAllocationsProtect_nid_postfixandreplaceRangeare on no stack any more. The first two places are the walks that (a) in #1324 bounds; the third is the lease copy, which #4698 shares between leases but rebuilds after every mutation.main+ (a) (nikowolf123/AnyPS5help/S3-registry-walksb3f7b2c3c cherry-picked onto799982fac, no conflict;libsrebuilt;ctest -R guest_memorypasses on Linux, including its two new checks):!!! EngineWatchdog timeout![videoout]line in this log)With (a),
RequireAvailableandOverlapsare on no stack in the six samples of the two preloaded cold runs. ThesceKernelBatchMap2threads sampled were inGuestAllocationsAcquire_nid_postfix, fromImportMappedRanges(60 s of cold 1, 120 s of cold 2) and fromWaitForLeasesAndImports(200 s of cold 2): the two copies nikowolf123 listed as in neither (a) nor (b). At 60 s of cold 2 the thread was inImportMappedRanges, releasing the lease's range vector. The one watchdog trip with (a) had no mapping or registry frame on any of its 58 threads at 150 s (the main thread was in title code, seven threads in SPIR-V validation and optimization), so the samples do not attribute it to the registry. Three runs per tree do not separate 2 of 3 from 1 of 3. The dispatch count before the first presentation grows with the time the title spends loading; it does not change what stops it.Next stop on bare
main(cold 3 and warm, at the first presentation; the three runs with (a) that passed the watchdog end on the same shader and exception text, the warm one without a[videoout]line before it):The
PA_CL_VS_OUT_CNTLrefusal seen with #4216 above does not appear any more (#423). The new stop is reported in #6119.AI-assisted: yes (Claude Code, Claude Fable 5.1), operating under my supervision; I am accountable for this comment and will respond to review.
Imported from boykopovar/AnyPS5. Originally posted by mariuszkreft on 2026-10-15T11:31:40Z.
Opened a pull request from this issue: https://github.com/boykopovar/AnyPS5/pull/6321