Skip to content

Python Binding Segfault. #6

@Pritchy96

Description

@Pritchy96

I'm trying to use Pine to connect to PCSX2, but the python bindings seem to be having issues. When I run the Python example, it exits with a segfault whenever I attempt to do anything with the created PCSX2Ipc object - read, write, even pine_get_error gives a segfault. I've gotten the C++ client example working as well as the rust bindings working just fine, so it does seem like a python specific issue.

PCSX2 logs a successful connection when running ipc = libipc.pine_pcsx2_new(); [ 740.1081] PINE: New client with FD 30 connected., and this stays until we try and do anything with the ipc, at which point it segfaults and pcsx2 logs [ 824.9942] PINE: Client disconnected..

I'm running on the latest commit on master for pine, PCSX2 v2.1.196, Python v3.12.7, running on Linux. I'll attempt to run this with the latest release of Pine, but that looks pretty outdated at this point. I'll keep debugging and report back any findings.

Cheers,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions