Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 24.04 ModuleNotFoundError: No module named 'pip' and appimage issue #264

Closed
MasterCATZ opened this issue Jun 25, 2024 · 6 comments
Closed
Labels

Comments

@MasterCATZ
Copy link

MasterCATZ commented Jun 25, 2024

using PINCE-x86_64.AppImage it just crashes when attaching to a process

aio@aio:~$ cd Downloads/
aio@aio:~/Downloads$ sudo -E 
Display all 6718 possibilities? (y or n)
aio@aio:~/Downloads$ sudo -E ./PINCE-x86_64.AppImage 
[sudo] password for aio: 
qt.qpa.theme.dbus: Session DBus not running.
qt.qpa.theme.dbus: Application will not react to setting changes.
 Check your DBus installation.
Detached from the process with PID:-1
Last command: set logging enabled off
^done
0.0012462139129638672
Last command: set logging file /tmp/PINCE/-1/gdb_log.txt
=cmd-param-changed,param="logging file",value="/tmp/PINCE/-1/gdb_log.txt"
^done
0.0007259845733642578
Last command: set $GDBINIT_AA_PATH="/home/aio/.config/PINCE/gdbinit_after_attach"
^done
0.002120494842529297
Last command: set $PINCE_PATH="/tmp/.mount_PINCE-3x0ijk/opt/PINCE"
^done
0.0008800029754638672
Last command: source gdb_python_scripts/gdbextensions.py
=cmd-param-changed,param="disassembly-flavor",value="intel"
=cmd-param-changed,param="code-cache",value="off"
=cmd-param-changed,param="stack-cache",value="off"
^done
0.274810791015625
Last command: source /home/aio/.config/PINCE/gdbinit
^done
0.0008540153503417969
Last command: set logging enabled off
^done
0.0007541179656982422
Last command: set logging file /tmp/PINCE/-1/gdb_log.txt
^done
0.0006740093231201172
Last command: attach 3257673
Exception in thread Thread-10 (state_observe_thread):
Traceback (most recent call last):
  File "/tmp/.mount_PINCE-3x0ijk/usr/conda/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/tmp/.mount_PINCE-3x0ijk/usr/conda/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/.mount_PINCE-3x0ijk/opt/PINCE/libpince/debugcore.py", line 323, in state_observe_thread
    child.expect_exact("(gdb)")
  File "/tmp/.mount_PINCE-3x0ijk/usr/conda/lib/python3.12/site-packages/pexpect/spawnbase.py", line 432, in expect_exact
    return exp.expect_loop(timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_PINCE-3x0ijk/usr/conda/lib/python3.12/site-packages/pexpect/expect.py", line 179, in expect_loop
    return self.eof(e)
           ^^^^^^^^^^^
  File "/tmp/.mount_PINCE-3x0ijk/usr/conda/lib/python3.12/site-packages/pexpect/expect.py", line 122, in eof
    raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x70689bfd71d0>
command: /usr/bin/sudo
args: [b'/usr/bin/sudo', b'-E', b'--preserve-env=PATH', b'LC_NUMERIC=C', b'PYTHONHOME=/tmp/.mount_PINCE-3x0ijk/usr/conda', b'/tmp/.mount_PINCE-3x0ijk/usr/bin/gdb', b'--nx', b'--interpreter=mi']
buffer (last 100 chars): ''
before (last 100 chars): 'rt it."\r\n&"  For instructions, see:\\n"\r\n&"<https://www.gnu.org/software/gdb/bugs/>"\r\n&"."\r\n&"\\n\\n"\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 3927630
child_fd: 33
closed: False
timeout: None
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_string:
    0: '(gdb)'

and will just hang their even force closing does nothing untill I pkill -9 the appimage process

/tmp/.mount_PINCE-3x0ijk/AppRun: line 8: 3927558 Killed $APPDIR/usr/bin/python3 $APPDIR/opt/PINCE/PINCE.py

Screenshot from 2024-06-25 15-10-25

and so is the version built from source



aio@aio:~/Programs$ sudo rm -R PINCE
aio@aio:~/Programs$ git clone https://github.com/korcankaraokcu/PINCE.git
Cloning into 'PINCE'...
remote: Enumerating objects: 8647, done.
remote: Counting objects: 100% (8647/8647), done.
remote: Compressing objects: 100% (3104/3104), done.
remote: Total 8647 (delta 5523), reused 8493 (delta 5417), pack-reused 0
Receiving objects: 100% (8647/8647), 4.32 MiB | 4.65 MiB/s, done.
Resolving deltas: 100% (5523/5523), done.
aio@aio:~/Programs$ cd PINCE
aio@aio:~/Programs/PINCE$ ls
AUTHORS          PINCE.sh        compile_ts.sh     media
CONTRIBUTING.md  README.md       fix_ts.py         pyproject.toml
COPYING          THANKS          i18n              requirements.txt
COPYING.CC-BY    __init__.py     install.sh        run_tests.py
GUI              ci              libpince          tests
PINCE.py         compile_gdb.sh  libscanmem-PINCE  tr
aio@aio:~/Programs/PINCE$ ./install.sh 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (24.0+dfsg-1ubuntu1).
gdb is already the newest version (15.0.50.20240403-0ubuntu1).
cmake is already the newest version (3.28.3-1build7).
python3-dev is already the newest version (3.12.3-0ubuntu1).
python3-venv is already the newest version (3.12.3-0ubuntu1).
pkg-config is already the newest version (1.8.1-2build1).
qt6-l10n-tools is already the newest version (6.4.2-3build3).
libcairo2-dev is already the newest version (1.18.0-3build1).
libgirepository1.0-dev is already the newest version (1.80.1-1).
libxcb-randr0-dev is already the newest version (1.15-1ubuntu2).
libxcb-xtest0-dev is already the newest version (1.15-1ubuntu2).
libxcb-xinerama0-dev is already the newest version (1.15-1ubuntu2).
libxcb-shape0-dev is already the newest version (1.15-1ubuntu2).
libxcb-xkb-dev is already the newest version (1.15-1ubuntu2).
libxcb-cursor0 is already the newest version (0.1.4-1build1).
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Requirement already satisfied: pip in ./.venv/PINCE/lib/python3.12/site-packages (24.0)
Collecting pip
  Downloading pip-24.1-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 6.8 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.0
    Uninstalling pip-24.0:
      Successfully uninstalled pip-24.0
Successfully installed pip-24.1
Collecting PyQt6==6.6.0 (from -r requirements.txt (line 1))
  Downloading PyQt6-6.6.0-cp37-abi3-manylinux_2_28_x86_64.whl.metadata (2.1 kB)
Collecting PyQt6-Qt6==6.6.0 (from -r requirements.txt (line 2))
  Downloading PyQt6_Qt6-6.6.0-py3-none-manylinux_2_28_x86_64.whl.metadata (534 bytes)
Collecting pexpect==4.9.0 (from -r requirements.txt (line 3))
  Downloading pexpect-4.9.0-py2.py3-none-any.whl.metadata (2.5 kB)
Collecting distorm3==3.5.2 (from -r requirements.txt (line 4))
  Downloading distorm3-3.5.2.tar.gz (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.4/138.4 kB 2.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting keystone-engine==0.9.2 (from -r requirements.txt (line 5))
  Downloading keystone_engine-0.9.2-py2.py3-none-manylinux1_x86_64.whl.metadata (1.8 kB)
Collecting pygdbmi==0.11.0.0 (from -r requirements.txt (line 6))
  Downloading pygdbmi-0.11.0.0-py3-none-any.whl.metadata (12 kB)
Collecting keyboard==0.13.5 (from -r requirements.txt (line 7))
  Downloading keyboard-0.13.5-py3-none-any.whl.metadata (4.0 kB)
Collecting pygobject==3.46.0 (from -r requirements.txt (line 8))
  Downloading PyGObject-3.46.0.tar.gz (723 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 723.4/723.4 kB 6.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting PyQt6-sip<14,>=13.6 (from PyQt6==6.6.0->-r requirements.txt (line 1))
  Downloading PyQt6_sip-13.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.whl.metadata (503 bytes)
Collecting ptyprocess>=0.5 (from pexpect==4.9.0->-r requirements.txt (line 3))
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting pycairo>=1.16.0 (from pygobject==3.46.0->-r requirements.txt (line 8))
  Using cached pycairo-1.26.1-cp312-cp312-linux_x86_64.whl
Downloading PyQt6-6.6.0-cp37-abi3-manylinux_2_28_x86_64.whl (7.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 4.7 MB/s eta 0:00:00
Downloading PyQt6_Qt6-6.6.0-py3-none-manylinux_2_28_x86_64.whl (67.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.4/67.4 MB 4.3 MB/s eta 0:00:00
Downloading pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 kB 2.0 MB/s eta 0:00:00
Using cached keystone_engine-0.9.2-py2.py3-none-manylinux1_x86_64.whl (1.8 MB)
Downloading pygdbmi-0.11.0.0-py3-none-any.whl (21 kB)
Downloading keyboard-0.13.5-py3-none-any.whl (58 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.1/58.1 kB 3.3 MB/s eta 0:00:00
Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Downloading PyQt6_sip-13.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.whl (319 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 320.0/320.0 kB 4.3 MB/s eta 0:00:00
Building wheels for collected packages: distorm3, pygobject
  Building wheel for distorm3 (pyproject.toml) ... done
  Created wheel for distorm3: filename=distorm3-3.5.2-cp312-cp312-linux_x86_64.whl size=135194 sha256=9e3322fae87750905a97530f76e75bfabdae2a00e2d072313e3a70759f282376
  Stored in directory: /home/aio/.cache/pip/wheels/3f/b5/45/a0271837851b8e2621928bf7123a6a4e05487960f3751c178b
  Building wheel for pygobject (pyproject.toml) ... done
  Created wheel for pygobject: filename=PyGObject-3.46.0-cp312-cp312-linux_x86_64.whl size=832832 sha256=e22dd80038f165b388491372a4574f7ef8cbb3f1c4777ee237d4d78b87dc605b
  Stored in directory: /home/aio/.cache/pip/wheels/02/78/ea/58164c9ee67c94c93825a790b81f030ed1ec9dc74e687110cf
Successfully built distorm3 pygobject
Installing collected packages: PyQt6-Qt6, pygdbmi, ptyprocess, keystone-engine, keyboard, distorm3, PyQt6-sip, pycairo, pexpect, PyQt6, pygobject
Successfully installed PyQt6-6.6.0 PyQt6-Qt6-6.6.0 PyQt6-sip-13.6.0 distorm3-3.5.2 keyboard-0.13.5 keystone-engine-0.9.2 pexpect-4.9.0 ptyprocess-0.7.0 pycairo-1.26.1 pygdbmi-0.11.0.0 pygobject-3.46.0
Downloading libscanmem
Submodule 'libscanmem-PINCE' (https://github.com/brkzlr/libscanmem-PINCE) registered for path 'libscanmem-PINCE'
Cloning into '/home/aio/Programs/PINCE/libscanmem-PINCE'...
Submodule path 'libscanmem-PINCE': checked out '7e0fede930534ae6c242526e7f202c56c2713538'
Entering libscanmem directory
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for 6 include files stdbool.h, ..., sys/time.h
-- Looking for 6 include files stdbool.h, ..., sys/time.h - found
-- Looking for getline
-- Looking for getline - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for alloca
-- Looking for alloca - found
-- Looking for strtod
-- Looking for strtod - found
-- Looking for secure_getenv
-- Looking for secure_getenv - found
-- Configuring done (1.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/aio/Programs/PINCE/libscanmem-PINCE
[  7%] Building C object CMakeFiles/scanmem.dir/handlers.c.o
[ 15%] Building C object CMakeFiles/scanmem.dir/commands.c.o
[ 23%] Building C object CMakeFiles/scanmem.dir/procmem.c.o
[ 30%] Building C object CMakeFiles/scanmem.dir/common.c.o
[ 38%] Building C object CMakeFiles/scanmem.dir/maps.c.o
[ 46%] Building C object CMakeFiles/scanmem.dir/scanmem.c.o
[ 53%] Building C object CMakeFiles/scanmem.dir/scanroutines.c.o
[ 61%] Building C object CMakeFiles/scanmem.dir/interrupt.c.o
In file included from /home/aio/Programs/PINCE/libscanmem-PINCE/scanmem.h:36,
                 from /home/aio/Programs/PINCE/libscanmem-PINCE/procmem.c:46:
/home/aio/Programs/PINCE/libscanmem-PINCE/targetmem.h: In function ‘allocate_enough_to_reach’:
/home/aio/Programs/PINCE/libscanmem-PINCE/targetmem.h:171:140: warning: pointer ‘original_location’ may be used after ‘realloc’ [-Wuse-after-free]
  171 |                         (*swath_pointer_to_correct) = (matches_and_old_values_swath*)(((void*)(*swath_pointer_to_correct)) + ((void*)array - (void*)original_location));
      |                                                                                                                              ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aio/Programs/PINCE/libscanmem-PINCE/targetmem.h:162:31: note: call to ‘realloc’ here
  162 |                 if (!(array = realloc(array, bytes_to_allocate)))
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 69%] Building C object CMakeFiles/scanmem.dir/sets.c.o
[ 76%] Building C object CMakeFiles/scanmem.dir/show_message.c.o
/home/aio/Programs/PINCE/libscanmem-PINCE/show_message.c: In function ‘get_pager’:
/home/aio/Programs/PINCE/libscanmem-PINCE/show_message.c:105:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  105 |         write(pgpipe[1], "", 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/aio/Programs/PINCE/libscanmem-PINCE/show_message.c:124:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  124 |                 read(pgpipe[0], &nullbuf, 1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aio/Programs/PINCE/libscanmem-PINCE/show_message.c:125:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  125 |                 write(pgpipe[1], "1", 2);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
[ 84%] Building C object CMakeFiles/scanmem.dir/targetmem.c.o
[ 92%] Building C object CMakeFiles/scanmem.dir/value.c.o
In file included from /home/aio/Programs/PINCE/libscanmem-PINCE/targetmem.c:30:
/home/aio/Programs/PINCE/libscanmem-PINCE/targetmem.h: In function ‘allocate_enough_to_reach’:
/home/aio/Programs/PINCE/libscanmem-PINCE/targetmem.h:171:140: warning: pointer ‘original_location’ may be used after ‘realloc’ [-Wuse-after-free]
  171 | wath*)(((void*)(*swath_pointer_to_correct)) + ((void*)array - (void*)original_location));
      |                                               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/aio/Programs/PINCE/libscanmem-PINCE/targetmem.h:162:31: note: call to ‘realloc’ here
  162 |                 if (!(array = realloc(array, bytes_to_allocate)))
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking C shared library libscanmem.so
[100%] Built target scanmem
Exiting libscanmem directory
Downloading libptrscan
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 21682    0 21682    0     0  22731      0 --:--:-- --:--:-- --:--:-- 22731
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 82520  100 82520    0     0  50075      0  0:00:01  0:00:01 --:--:--  567k
Updating 'i18n/ts/it_IT.qm'...
    Generated 29 translation(s) (14 finished and 15 unfinished)
    Ignored 491 untranslated source text(s)
Updating 'i18n/ts/zh_CN.qm'...
    Generated 482 translation(s) (477 finished and 5 unfinished)
    Ignored 38 untranslated source text(s)

PINCE has been installed successfully!
Now, just run 'sh PINCE.sh' from terminal
aio@aio:~/Programs/PINCE$ ls
AUTHORS          PINCE.sh        compile_ts.sh     media
CONTRIBUTING.md  README.md       fix_ts.py         pyproject.toml
COPYING          THANKS          i18n              requirements.txt
COPYING.CC-BY    __init__.py     install.sh        run_tests.py
GUI              ci              libpince          tests
PINCE.py         compile_gdb.sh  libscanmem-PINCE  tr
aio@aio:~/Programs/PINCE$ sudo ./PINCE.sh 
Please do not run this script as root!
aio@aio:~/Programs/PINCE$ ./PINCE.sh 
qt.qpa.theme.dbus: Session DBus not running.
qt.qpa.theme.dbus: Application will not react to setting changes.
 Check your DBus installation.
Detached from the process with PID:-1
Last command: set logging enabled off
^done
0.0011339187622070312
Last command: set logging file /tmp/PINCE/-1/gdb_log.txt
=cmd-param-changed,param="logging file",value="/tmp/PINCE/-1/gdb_log.txt"
^done
0.0007414817810058594
Last command: source ./gdbinit_venv
^done
0.03023982048034668
Last command: set $GDBINIT_AA_PATH="/home/aio/.config/PINCE/gdbinit_after_attach"
^done
0.001035451889038086
Last command: set $PINCE_PATH="/home/aio/Programs/PINCE"
^done
0.0007998943328857422
Last command: source gdb_python_scripts/gdbextensions.py
=cmd-param-changed,param="disassembly-flavor",value="intel"
=cmd-param-changed,param="code-cache",value="off"
=cmd-param-changed,param="stack-cache",value="off"
^done
0.06822776794433594
Last command: source /home/aio/.config/PINCE/gdbinit
^done
0.0008378028869628906
Last command: set logging enabled off
^done
0.0008070468902587891
Last command: set logging file /tmp/PINCE/-1/gdb_log.txt
^done
0.0008399486541748047
Last command: attach 3257673
Exception in thread Thread-11 (state_observe_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/home/aio/Programs/PINCE/libpince/debugcore.py", line 323, in state_observe_thread
    child.expect_exact("(gdb)")
  File "/home/aio/Programs/PINCE/.venv/PINCE/lib/python3.12/site-packages/pexpect/spawnbase.py", line 432, in expect_exact
    return exp.expect_loop(timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/aio/Programs/PINCE/.venv/PINCE/lib/python3.12/site-packages/pexpect/expect.py", line 179, in expect_loop
    return self.eof(e)
           ^^^^^^^^^^^
  File "/home/aio/Programs/PINCE/.venv/PINCE/lib/python3.12/site-packages/pexpect/expect.py", line 122, in eof
    raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7293fa546ba0>
command: /usr/bin/sudo
args: [b'/usr/bin/sudo', b'-E', b'--preserve-env=PATH', b'LC_NUMERIC=C', b'/bin/gdb', b'--nx', b'--interpreter=mi']
buffer (last 100 chars): ''
before (last 100 chars): 'rt it."\r\n&"  For instructions, see:\\n"\r\n&"<https://www.gnu.org/software/gdb/bugs/>"\r\n&"."\r\n&"\\n\\n"\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 4022630
child_fd: 32
closed: False
timeout: None
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_string:
    0: '(gdb)'

back to editing values on the fly now that I can not play with opcodes

@brkzlr
Copy link
Collaborator

brkzlr commented Jun 25, 2024

You can add a print(child.before.decode('utf-8', 'ignore')) between line 534 and 535 in libpince/debugcore.py because in your logs, it only shows the last 100 chars and that is not enough to tell us anything.

Also below line 323 in the same file as well.

EDIT: See Korcan's post below.

@korcankaraokcu
Copy link
Owner

Pull the latest patch by invoking git pull. This patch will print pexpect EOF exceptions with full child.before data

@MasterCATZ
Copy link
Author

MasterCATZ commented Jun 27, 2024

pince.terminal.txt

/tmp/PINCE/-1/gdb_log.txt does not exist ?

I had run the old compile_gdb.sh before should I remove its traces ? if so how ?

I will start a fresh and try again

@brkzlr
Copy link
Collaborator

brkzlr commented Jun 27, 2024

No need, GDB issue not PINCE. GDB crashes when you attach to the process and from what I'm seeing, it's a Proton process and GDB does not behave well with WINE programs.

I suggest using Cheat Engine for WINE stuff, PINCE is mainly designed for native Linux games.

Out of curiosity, does this happen with every Proton game you try to attach to or only this one specifically?

@MasterCATZ
Copy link
Author

MasterCATZ commented Jun 27, 2024

with linux + Steam never been able to get cheat engine to work , and neither does their ceserver
even if I run CE on a windows box with the ceserver on the linux box the cheat tables never load up

oh well I will keep using game conqueror then it picks up the running process , yours calls it a GameThread

this was doing "imortals of aveum" I will see what other do

edit

thanks for leading me down the rabbit hole of getting cheatengine working
I still can not get the cheat table to load but I believe its because its looking for a different exe process then what CE is seeing , but hell CE is so much faster at scanning memory the GC , now to tinker with script to look for another process as its looking for shipping in it , tho looking at the long process list CE is seeing that

PROTON_REMOTE_DEBUG_CMD="/home/aio/Downloads/CheatEngine75.exe" steam
PROTON_REMOTE_DEBUG_CMD="/ZFS15k/SteamLibrary/Cheat.Engine/7.5/cheatengine-x86_64.exe" steam

%COMMAND%

Steam Tinker Launch looked like another way

@brkzlr
Copy link
Collaborator

brkzlr commented Jun 27, 2024

You're supposed to use Cheat Engine in the same Proton prefix as the game you're running in. Search for and use wstart which is a script that'll help you launch programs in the same prefix.
I personally use this method when I need to test CE so if it doesn't work on your end, you're doing something wrong.

Closing this issue as there's no AppImage issues and we're already tracking WINE issues here.

@brkzlr brkzlr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants