gimx 0.40 errors

Talk about anything concerning the source code.
Post Reply
jane8re
Posts: 11
Joined: Wed Mar 28, 2012 6:58 pm

gimx 0.40 errors

Post by jane8re »

Hello Matlo
I post this in the development thread because I think it's the best place, just tell me if I'm wrong.

I'm using Gimx on an Xbox360.
I compiled the last Gimx version (0.40) this week-end. Everything went smooth and fine on my Gentoo laptop.

Spoof works like a charm.

But....

When i tested there was some errors.

1) If I run gimx-serial with output "gui" or "terminal" selected ; I get an emuclient error when I click on "start".
From a terminal I get this (gui output selected) :

Code: Select all

execvp(gnome-terminal, -x, emuclient, --360pad, --precision, 8, --config, Battlefieldtest.xml, --refresh, 4, --subpos, --serial, --port, /dev/ttyUSB0, --curses) failed with error 2!
Or this (terminal output selected) :

Code: Select all

execvp(gnome-terminal, -x, emuclient, --360pad, --precision, 8, --config, Battlefieldtest.xml, --refresh, 4, --subpos, --serial, --port, /dev/ttyUSB0, --status) failed with error 2!
Ok. It seems that error 2 means that execvp didn't find something in the command string.
After digging a bit in the sources, I see that in serialMain.cpp there is no more

Code: Select all

else
    {
        command.append("/bin/bash -c \"");
So we depend exclusively on gnome-terminal now. Not really funny for those (as I) who don't use gnome at all.

2) If I run gimx-serial without any ouput selected, when I click "start", it starts but it uses 50% of my CPU. It was only around 5% with version 0.30. As I'm using a dualcore processor, and I guess gimx-serial is not optimized to use multiprocessing, I'm afraid this means that it's using one core at 100%. Ouch !
Is this linked to n° 1 ?

3) Now the good news. Running the whole thing from a terminal makes everything just fine. Spoofing

Code: Select all

usbspoof -p /dev/ttyUSB0
and then emuclient

Code: Select all

emuclient --config Battlefieldtest.xml --serial --port /dev/ttyUSB0 --360pad --precision 8 --refresh 4 --subpos --curses
works perfectly. But no more beautiful gui.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: gimx 0.40 errors

Post by Matlo »

Hi,

1) This is a side effect of some code refactoring I made. Please open a bug in the issue tracker list and I will try to work on it for the next release.

2) What process is consuming 100% of a CPU core?

3) Great!
GIMX creator
Post Reply