Repository navigation
Conversation
… Wine 11.0's rethrow_exception Wine 11.0's rethrow_exception throws the stored object itself, not a copy. run() rethrew batch.error, the exception_ptr of a local Batch, which the unwinding then freed, so the caller caught no runtime_error. A thread_local exception_ptr now holds the object until the thread's next error. Same Wine bug as gta6rt's DllMain failure (ProjectLeonida#1086). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review. (AI-assisted triage.) |
|
Independent Windows binary A/B on two Wine builds for AI-assisted with OpenAI Codex. |
|
Follow-up on the production TLS gate for the Wine fix. The earlier red/green worker test remains valid. I also built the production Win64 AI-assisted with OpenAI Codex. |
… pointer A thread_local std::exception_ptr has a destructor, which put a TLS callback (__dyn_tls_dtor) into gta6rt and failed gta6rt_no_tls_callbacks (found by merzleckeier). A trivially destructible pointer to a heap exception_ptr keeps the exception alive the same way, without one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@merzleckeier Thanks, that is a real regression and I had missed it. The new head holds the in-flight exception through a trivially destructible MEASURED, Apple M3, macOS 27.0, Apple clang, Release:
Not run here: Not checked by a second agent or human yet. AI-assisted: yes. |
|
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime ( |
Under Wine 11.0,
pipeline_workersfails every round of itsexceptions()case ("run() rethrew no exception, or not the lowest job's"). On native Windows and macOS it passes.PipelineWorkers::run()(runtime/src/pipeline_workers.h) keeps the lowest job's error in theexception_ptrof aBatchon its own stack and ends withstd::rethrow_exception(batch.error). Wine 11.0'srethrow_exceptionthrows the stored object itself, not a copy. So the unwinding out ofrun()destroysbatch, frees that object while it is still in flight, and the caller'scatch (const std::runtime_error&)never sees it. #1086 found the same Wine behaviour ingta6rt'sDllMainfailure path and keeps a copy there.Here the error type is whatever a job throws, so a copy of a known type doesn't fit. Instead, a
thread_local std::exception_ptrtakes the error just before the rethrow and keeps the object alive until that thread's next error. Nothing else changes: the lowest-index rule, the stop and the inline path for one job stay as they are.Tested on an Apple M3 (macOS 26.5.1) at
mainfbf100b1b:pipeline_workerspipelinemain; PASS with this, 3 runs out of 3vk_pipeline_check_cli(a timeout) andpipeline_cache_seedfail with and without this changemain)d3d12_pipeline_workers,d3d12_pipeline_workers_eagerandreplay_pipeline_compiles*, which run throughPipelineWorkers, pass under Wine with this change.AI-assisted (Claude Code). No game data.
🤖 Generated with Claude Code
Red checks: from
main, not this changeThe failing jobs (
check,macos-python,stdlib-tests-linux,linux-gpu-tools,macos,windows) fail the same way onmaind48a957bb(MEASURED on macOS for the Python tests, 1 run, with the same assertion text; GPU tests READ from this PR's CI logs). The open pull requests that fix them:maintest_docs_cli_flagstest_make_game_preflight,test_progress_dashboard(repository URL)test_docs_repo_pathsmain, a merge is onTauwni:fix/2552-merge-main, correction)test_tool_stdout_encodingTauwni:fix/stdout-replace-two-new-scripts(no PR, open PR limit)test_windows_boot_journal_seedtest_docs_python_depstest_build_runtime_fallbackvk_bindless_dimensions(macOS)test_docs_env_varstest_make_game_pipelines,test_sampler_source_census,test_spirv_metal_set0_cli_errors,test_spirv_metal_set0_extra,tests/semantic/test_valu_cvt_f16_int16_mods.py,ps_exp_f32_denorm_rt(macOS)Tauwni/leonida, no PR (finding)cs_imgatomic_ext(macOS, linux-gpu-tools)vk_xdxr_postbuild_readback(Windows)main: mergemainNot checked by a second agent or human yet.