It is currently Mon Sep 06, 2010 9:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 11, 2008 9:24 am 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
System Information:
EventGhost Version:0.3.5c build 908
SVN Revision:112
Compile Time:Mo, 16 Apr 2007 17:32:45
Python Version:2.5.0 final 0
wxPython Version:2.8.1.1
PIL Version:1.1.6
Platform:Windows-XP-5.1.2600-SP2



Hey guys,

I would like to add some functions using my GamePads. So I added the Joystick plugin and wrote some scripts. Problem is that EG crashes after pressing GamePad buttons a few times. I never did a bugreport on EG before (It was rockstable until now) and there is no sticky how to file such a report so please tell me what information I need to provide besides the information contained in this post.

The error that pops up says
Quote:
EVENTGHOST.EXE
Problem-Signature
AppName: eventghost.exe
AppVer: 0.0.0.0
ModName: python25.dll
ModVer: 0.0.0.0
Offset: 00095bcd


It also says that there is a file contained into the bug-report which I am attaching.


The script I tried to execute:

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Plugin File="Joystick" Identifier="Joystick">
        gAIpLg==
    </Plugin>
</EventGhost>

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Folder Name="{Escape}" Expanded="True">
        <Macro Name="{Escape}">
            <Event Name="Joystick.Button1">
            </Event>
            <Action>
                Window.FindWindow(u'test.exe', None, None, None, None, None, True, 0.0, 2)
            </Action>
            <Action Name="test.exe nicht gefunden">
                EventGhost.NewJumpIf(XmlIdLink(84), 1, False)
            </Action>
        </Macro>
        <Macro Name="{Escape}" id="84">
            <Action>
                Window.FindWindow(u'test2.exe', None, None, None, None, None, True, 0.0, 2)
            </Action>
            <Action Name="test2.exe nicht gefunden">
                EventGhost.NewJumpIf(XmlIdLink(87), 1, False)
            </Action>
        </Macro>
        <Macro Name="{Escape}" id="87">
            <Action>
                Window.SendKeys(u'{Escape}', False)
            </Action>
            <Action Enabled="False">
                EventGhost.AutoRepeat(0.10000000000000001, 0.10000000000000001, 0.10000000000000001, 0.10000000000000001)
            </Action>
        </Macro>
    </Folder>
</EventGhost>



I also downloaded "_dxJoystick.pyd" (rev 314) and "__init__.py" (rev 343) from the SVN repository but the plugin doesn't work anymore when I replace the original files with these two (actually it works with "_dxJoystick.pyd" replaced but not the other one).


As I said... if you need more information just tell me :D

Any help on this would be highly appreciated


-level20peon


Attachments:
df15_appcompat.txt [31.91 KiB]
Downloaded 37 times
Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 11, 2008 2:14 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Try build 1242/1262 from http://www.eventghost.org/downloads/.
Pako


Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 11, 2008 2:48 pm 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
Thanks for your answer.

I installed build 1262. It lasts longer but it also crashes eventually. Is there a log function in EG ? I haven't found one and I don't know what else I could try.


-level20peon


Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 11, 2008 3:09 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Please try to start EG with the "-debug" option. Maybe this helps to find out what's wrong.

Please do the following:
1. Start EG with the commandline option "-debug" (without quotes: EventGhost.exe -debug).
2. Try to reproduce the error.
3. Look in the EG installation directory for a file named "EventGhost.exe.log"
4. Paste the contents of this log here.

Pako


Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 11, 2008 3:33 pm 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
The log file isn't placed inside the installation directory but inside "\Documents and Settings\username\Application data\Eventghost" :wink:.


I attached the log since it has quite some lines :D.


-level20peon


Attachments:
Log.txt [42.76 KiB]
Downloaded 39 times
Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 11, 2008 4:25 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Try new installation - please try the following:
1. Copy your XML to a safe place.
2. Uninstall EventGhost through "Add & remove programs" or its uninstall shortcut.
3. Look into your program files folder and delete the "EventGhost" folder if it exists.
4. Install EventGhost_0.3.6_build_1242_Setup.exe
5. Install EventGhost_0.3.6_build_1262_Update.exe
6. Start EventGhost and open your XML

Pako


Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 11, 2008 5:02 pm 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
OK, I have installed build 1262 with 0.3.5c as base installation before.

Well now I have installed build 1262 with build 1242 as base installation.


EG now crashes when the error occurs, it previously just locked up a CPU core (50% System load).

New log attached.


-level20peon


Attachments:
Log.txt [3.59 KiB]
Downloaded 37 times
Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Tue Feb 12, 2008 7:56 am 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
I already more advise I don't know.
Maybe now (with new build) would try create wholly new configuration (XML file).

Pako


Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Tue Feb 12, 2008 8:42 am 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
I rewrote some parts of the script and didn't add anything else. So I use JUST those few parts, not my complete EG setup. EG crashed again. This time a new error message is written into the log file before EG crashes (See attachment).


-level20peon


Attachments:
Log.txt [2.31 KiB]
Downloaded 37 times
Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Thu Feb 14, 2008 8:09 pm 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
I sometimes receive a Visual C++ runtime error when EG crashes (see attachment). Sometimes EG crashes, sometimes it just freezes (50% system load) using the same config file. I made my script as simple as possible without any application checks using JUST the joystick plugin. Seems like this plugin is the issue since EG doesn't crash on any other occasion ? What else could I try... is it possible to enhance logging, eg write every single event into the log ?

Can anyone advise me anything at all ? I am really desperate at the time being... I have done hours of debugging but there isn't anything else I can think of.


-level20peon


Attachments:
EG.gif
EG.gif [ 7.61 KiB | Viewed 1645 times ]
Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Thu Feb 14, 2008 8:19 pm 
Plugin Developer

Joined: Sun Feb 12, 2006 10:03 am
Posts: 880
Can you post your complete script?
The part you cut out only has undefined jumps. But I doesn't cause any problems here.

You can also try the HIDplugin which works with most gamepads.


Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Thu Feb 14, 2008 8:38 pm 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
I just updated the Visual C++ Runtime Library just to be sure. Still no progress.

I attached the script. The problem seems to be that EG has problems with continuous input. Pressing button after button seems to be no problem at all but it doesn't like "real gaming" (eg "pressing buttons in a really fast sequence").

btw: adding the GamePads as HID would basically work, too but it doesn't seem to support the possibility to emulate a key being hold down. If I use it and remap {UP} for example with a keyboard {UP} button it just is pressed once and then it stops. When I let go the button the keyboard {UP} is triggered once more rather than continously being hold down until letting the button go (I hope you get what I mean at all :D).


-level20peon

PS: The error logs say something about such "undefined jumps" in some places... maybe this is causing trouble ? I am not aware that I haven't linked anything correctly in the attached script at all.


Attachments:
blub.xml [5.44 KiB]
Downloaded 36 times
Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Mon Feb 18, 2008 8:36 pm 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
I am adding a screenshot of the Application error in Windows Event Viewer. Maybe it helps...


-level20peon


Attachments:
EG2.gif
EG2.gif [ 7.91 KiB | Viewed 1598 times ]
Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Tue Jun 02, 2009 10:19 pm 

Joined: Fri Jan 23, 2009 11:25 pm
Posts: 7
I have the same problem as level20peon. The joystick plugin crashes my EventGhost after a few button presses on my joystick (I'm using an xbox1 controller). Removing the joystick plugin results in EventGhost never crashing.

Did this problem ever get resolved?

This really is ruining my whole setup!

P.S. I am more than willing to add debug logs, I just first wanted to see if this problem was resolved. My EG build is about 4 months old (newer than when level20peon had this problem).

EG Build: 0.3.6.1476
OS: Vista Ultimate SP1


Last edited by rausch101 on Tue Jun 02, 2009 10:40 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: [OPEN] EG crashes on using Joystick plugin
PostPosted: Tue Jun 02, 2009 10:24 pm 
User avatar

Joined: Sun Dec 02, 2007 3:58 pm
Posts: 24
I never resolved the problem and moved to an external workaround with autoit.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group