Skip to content

Conversation

@michaelDCurran
Copy link
Member

@michaelDCurran michaelDCurran commented Sep 15, 2025

Link to issue number:

Mentioned in #18914
Fixes #18911

Summary of the issue:

Creating a portable copy fails with the error

ctypes.ArgumentError: argument 2: TypeError: expected LP_c_void_p instance instead of pointer to c_long

In systemUtils.ExecAndPump: the thread is opened and the handle is stored in a c_int, but MsgWaitForMultipleObjects expects it to be aHANDLE (pointer).

Description of user facing changes:

None.

Description of developer facing changes:

Description of development approach:

threadHandle is now a HANDLE, not c_int.

Testing strategy:

  • Ran the launcher and successfully created a portable copy, with no error.

Known issues with pull request:

None known.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

…leObjects should be a proper HANDLE not c_int. This stops the ctypes argument error, and more importantly ensures the full thread handle is represented on 64 bit.
@SaschaCowley SaschaCowley enabled auto-merge (squash) September 16, 2025 04:44
@michaelDCurran michaelDCurran merged commit 937891e into master Sep 16, 2025
108 of 114 checks passed
@michaelDCurran michaelDCurran deleted the fixPortable branch September 16, 2025 07:48
@github-actions github-actions bot added this to the 2026.1 milestone Sep 16, 2025
@CyrilleB79 CyrilleB79 mentioned this pull request Sep 19, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Impossible to create a portable copy of latest alpha builds

2 participants