Infinite loop at sceGsSyncVCallback (0x006E5380) & MSVC LTO Linker hang on large projects
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cmake, cpp
- Lĩnh vực
- build-system, reverse-engineering
Hướng nghiên cứu
The hang is at PC 0x006E5380 (sceGsSyncVCallback), so start with how stubs in config.toml and ps2_game_overrides::bindAddressHandler in loi_override.cpp are consumed by the runtime, since both were tried and neither stopped the [run:tick] output. Separately, check whether INTERPROCEDURAL_OPTIMIZATION in CMakeLists.txt reaches the ps2EntryRunner target. Done means the tick loop stops at that address and the link finishes without /GL. This needs runtime and build-system knowledge, so it is not a good first task.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi! First of all, thank you for the incredible PS2Recomp framework.
I am trying to recompile Castlevania: Lament of Innocence (USA, SLUS-207.33). The recompilation itself was a massive success: ps2_recomp.exe generated 11,078 functions with 0 decode failures. The game successfully loads and initializes PS2 system modules (SDRDRV, LIBSD, SIO2MAN).
However, I am hitting two blockers. To save your time, I have prepared a clean repository with my configs, CMake, and the override file:
👉 https://github.com/Om3g4-Dev/Castlevania-LOI-Recomp
Here is a summary of the issues:
1. Infinite loop at 0x006E5380 (sceGsSyncVCallback)
The game gets stuck in an infinite loop at pc=0x006E5380. I tried two approaches:
- Adding
"ret0@0x006E5380"tostubsinconfig.toml. - Using
ps2_game_overrides::bindAddressHandler(runtime, 0x006E5380, "sceGsSyncVCallback")inloi_override.cpp.
Neither worked. The runtime continues to output[run:tick] pc=0x6e5380indefinitely. Is this address a special callback that requires a different handling mechanism?
2. MSVC Linker Hang (LTO)
When building ps2EntryRunner with 11,000 generated .cpp files, link.exe consumes 4.4+ GB of RAM and hangs for hours due to the /GL (Whole Program Optimization) flag. I added INTERPROCEDURAL_OPTIMIZATION FALSE to CMakeLists.txt, but it didn't seem to take effect on the build time. Is there a recommended way to disable LTO for generated targets?
Any advice on these two issues would be greatly appreciated. Thank you!
- Ngôn ngữ chính
- C++
- Star
- 3.3k
- Fork
- 149
- Merge trung bình
- 8 giờ 46 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ran-j/PS2Recomp
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ran-j/PS2Recomp#393 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
EE sceCdStatus stub always reports READ (6), hanging games that wait for PAUSECó thể đã có người làm @ahmedgamalalzatary đã nhận 16 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 5 ngày
-
VU0 macro VSQI / VSQD: address and source registers swapped in generated codeCó thể đã có người làm @yanm1103 đã nhận 24 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Runtime: SampleTexture casts unbounded or NaN texture coordinates to int, which is undefined behaviourCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ran-j/PS2Recomp#273 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Build: /Qspectre- is MSVC-only and breaks every Release target under clang-clCó thể đã có người làm @ahmedgamalalzatary đã nhận 16 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của ran-j/PS2Recomp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudflare/workerd#8290 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scripts/moe-cache-tune.py: device_room() under-reports free VRAM when a draft model is loadedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Vector35/binaryninja-api#8715 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
ai_p3 comp-database-engines
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ClickHouse/ClickHouse#130186 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
(S1 - Need confirmation)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
CleverRaven/Cataclysm-DDA#89476 ·
Maintainer thường phản hồi trong vòng 1 ngày