StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Bug and Issues
 Resolved Bugs and Issues
 [99% RESOLVED] APPCRASH when doing gestures fast
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andreasvb

Sweden
46 Posts

Posted - 06/22/2012 :  05:33:13  Show Profile  Reply with Quote
I've noticed a bug, present in older version than 2.0 as well.

If doing several gestures very fast it crashes and the mouse cursor lags very bad until pressing "Close the program" on the crash dialog.

quote:
Problem signature:
Problem Event Name: APPCRASH
Application Name: StrokesPlus.exe
Application Version: 2.0.6.0
Application Timestamp: 4fe3e666
Fault Module Name: StrokesPlus.dll
Fault Module Version: 2.0.6.0
Fault Module Timestamp: 4fe3a9c1
Exception Code: c0000005
Exception Offset: 00000000000329e7
OS Version: 6.2.8400.2.0.0.256.48
Locale ID: 1053
Additional Information 1: e42c
Additional Information 2: e42c856ffa3ad6ee54465d3c61d55eeb
Additional Information 3: d1cd
Additional Information 4: d1cd5297db81a02b85b74d42baa6f612


Can reproduce it all the time.

Not sure if it's something in Windows 8 RP.

Just wanted to let you know.

Thanks for all the work.

Rob

USA
2591 Posts

Posted - 06/22/2012 :  15:55:08  Show Profile  Visit Rob's Homepage  Reply with Quote
Any particular actions (Lua script) which cause this more than others?

Are they longer running ones?

What happens if you disable the Draw Gestures option?

Just trying to find out where the failure is since I can draw as many and as fast as I want without issues, but I have a very fast system with 12GB of RAM, so it may prevent me from finding bugs where system resources (e.g. timing) may be playing a part in things.
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 06/22/2012 :  16:46:35  Show Profile  Reply with Quote
Same if disabling Draw Gestures.

It's mostly when I switching or open tabs.
quote:
- New Tab ( D )
acSendKeys("^t")

- Next Tab ( R )
acSendKeys("{DELAY=50}^{TAB}")


Go to Top of Page

Rob

USA
2591 Posts

Posted - 06/22/2012 :  16:57:17  Show Profile  Visit Rob's Homepage  Reply with Quote
Ok, it doesn't surprise me that acSendKeys could be the culprit..I didn't make that code and haven't really dug through it, step by step, to see what's going on inside..will have to get to that at some point.
Go to Top of Page

Rob

USA
2591 Posts

Posted - 06/30/2012 :  16:43:10  Show Profile  Visit Rob's Homepage  Reply with Quote
Let me know if this crashes too. This actually prevents running actions in parallel..not something I want to change, but just to narrow down if that's the problem, or if it's somewhere else.

(64-bit)
http://www.strokesplus.com/files/StrokesPlus_ClearAfterLua_x64.zip
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 06/30/2012 :  16:50:15  Show Profile  Reply with Quote
Same issue. =(

quote:
Problem signature:
Problem Event Name: APPCRASH
Application Name: StrokesPlus.exe
Application Version: 2.1.2.0
Application Timestamp: 4fef63d5
Fault Module Name: StrokesPlus.dll
Fault Module Version: 2.1.2.0
Fault Module Timestamp: 4fef63d2
Exception Code: c0000005
Exception Offset: 0000000000032a87
OS Version: 6.2.8400.2.0.0.256.48
Locale ID: 1053
Additional Information 1: 7531
Additional Information 2: 7531cce1341e0c64073e43dceab393ae
Additional Information 3: 8d6f
Additional Information 4: 8d6f5ecc9d0b5ed8e14bc29c6d09bc6f

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=190175

If the online privacy statement is not available, please read our privacy statement offline:
C:\WINDOWS\system32\en-US\erofflps.txt

Go to Top of Page

Rob

USA
2591 Posts

Posted - 06/30/2012 :  16:55:10  Show Profile  Visit Rob's Homepage  Reply with Quote
Ok, what about this:

(64-bit)
http://www.strokesplus.com/files/StrokesPlus_SendKeysWait_x64.zip
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 06/30/2012 :  16:58:51  Show Profile  Reply with Quote
Sorry, afraid it's same.
Sometimes I can do several in row very fast and some times it crashes after just a few.
Have been same with all versions I've tried with.

I only used gesture for switching to next tab.
acSendKeys("{DELAY=50}^{TAB}")

quote:
Problem signature:
Problem Event Name: APPCRASH
Application Name: StrokesPlus.exe
Application Version: 2.1.2.0
Application Timestamp: 4fef66bd
Fault Module Name: StrokesPlus.dll
Fault Module Version: 2.1.2.0
Fault Module Timestamp: 4fef66ba
Exception Code: c0000005
Exception Offset: 0000000000032a87
OS Version: 6.2.8400.2.0.0.256.48
Locale ID: 1053
Additional Information 1: 7531
Additional Information 2: 7531cce1341e0c64073e43dceab393ae
Additional Information 3: cb98
Additional Information 4: cb9865ac9c8b0250b57245fbb5e10414


Edited by - Andreasvb on 06/30/2012 17:01:33
Go to Top of Page

Rob

USA
2591 Posts

Posted - 06/30/2012 :  17:10:29  Show Profile  Visit Rob's Homepage  Reply with Quote
What about this?

http://www.strokesplus.com/files/StrokesPlus_catch_x64.zip

This will be my last try for today =)
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 06/30/2012 :  17:15:41  Show Profile  Reply with Quote
Nope.
quote:
Problem signature:
Problem Event Name: APPCRASH
Application Name: StrokesPlus.exe
Application Version: 2.1.2.0
Application Timestamp: 4fef6a2c
Fault Module Name: StrokesPlus.dll
Fault Module Version: 2.1.2.0
Fault Module Timestamp: 4fef6a2a
Exception Code: c0000005
Exception Offset: 0000000000032a87
OS Version: 6.2.8400.2.0.0.256.48
Locale ID: 1053
Additional Information 1: 7531
Additional Information 2: 7531cce1341e0c64073e43dceab393ae
Additional Information 3: 1168
Additional Information 4: 116878d2d46471c3c305733b3e742b49

Go to Top of Page

Rob

USA
2591 Posts

Posted - 06/30/2012 :  17:18:05  Show Profile  Visit Rob's Homepage  Reply with Quote
Also, what browser are you using?
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 06/30/2012 :  17:24:01  Show Profile  Reply with Quote
IE10 and Google Chrome 21.0.1180.15 dev-m.

Tried creating a global action that just sends an "x"
acSendKeys("x")


Same thing, doesn't matter which program that's used.
Go to Top of Page

Rob

USA
2591 Posts

Posted - 06/30/2012 :  17:36:23  Show Profile  Visit Rob's Homepage  Reply with Quote
Ok, I forgot you said Windows 8..will have to install it again.

Also, what happens if you add this before your acSendKeys call:

acDelay(100)

Just to see if it has any effect at all (try higher/lower numbers as well).
Go to Top of Page

Rob

USA
2591 Posts

Posted - 06/30/2012 :  17:42:23  Show Profile  Visit Rob's Homepage  Reply with Quote
Heh, forgot I already installed Win8 RP =)

I just tried in Win8, IE..using:

Left with acSendKeys("{DELAY=50}^+{TAB}")

Right with acSendKeys("{DELAY=50}^{TAB}")

Dragged right and left, tapping the right mouse button to trigger multiple gestures per second..no crash at all..no matter how fast I go; switches tabs quickly just as I'd expect.

Now, I know Hypernova had an issue with Windows 8 and sendkeys (http://www.strokesplus.com/forum/topic.asp?TOPIC_ID=357).

Do you have a non-English language/keyboard layout? If so, does applying the settings mentioned in the above post have any effect at all?
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 06/30/2012 :  17:46:58  Show Profile  Reply with Quote
I use Swedish as my keyboard layout.

Thanks, I'll try.

Edit:
Still crashes after enabling option to use input language for each program.

Will try the delay next.

Edit:
That only seemed to delay the initial command, all following were fast and then it crashed.

Uploaded a video demonstrating the issue: http://www.youtube.com/watch?v=hpcCExpOK3A

Edited by - Andreasvb on 06/30/2012 18:50:12
Go to Top of Page

Rob

USA
2591 Posts

Posted - 07/01/2012 :  02:11:24  Show Profile  Visit Rob's Homepage  Reply with Quote
Well, at least I can reproduce it now =)

It has nothing to do with acSendKeys and everything to do with the acDisplayText call you have firing after each gesture. When I added a call to that after actions, I was able to cause the crash.

FINALLY I have something to work with.
Go to Top of Page

Rob

USA
2591 Posts

Posted - 07/01/2012 :  02:43:53  Show Profile  Visit Rob's Homepage  Reply with Quote
I'm going to have to create a new method for acDisplayText, it's been kind of a hack from the beginning; need to look at it from a fresh perspective and rebuild from the ground up.

In the meantime, I'd recommend turning that off for every action. For other purposes it's fine, where it's not going to be called in rapid succession.

Note that it has nothing to do with the sp_after_action code, when I experienced the error there first, I disabled after action script and put the acDisplayText call inside the action itself with the same result.
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 07/01/2012 :  03:32:46  Show Profile  Reply with Quote
Haha, oh.

It works now.

I'll disable the text in the meantime.

Here's the code I used:
function sp_after_action(gnm, gsx, gsy, gex, gey, gwd, gapp, gact)
	act_len = string.len(gact)
	acDisplayText(gact, "zeroes two", 80, 255, 0, 200, 450, 960-act_len*30, 300)
end
Go to Top of Page

Rob

USA
2591 Posts

Posted - 07/01/2012 :  13:54:49  Show Profile  Visit Rob's Homepage  Reply with Quote
Try 2.1.2 and see if that works with the after action script.
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 07/01/2012 :  15:35:45  Show Profile  Reply with Quote
I did managed to crash it with 450ms text duration but with 250ms it doesn't "want" to crash.

I'll consider it fixed for what it's worth.

Thanks.
Go to Top of Page

Rob

USA
2591 Posts

Posted - 07/01/2012 :  15:40:35  Show Profile  Visit Rob's Homepage  Reply with Quote
Ok good..because I'm kind of done with this one
Go to Top of Page

Rob

USA
2591 Posts

Posted - 07/01/2012 :  15:45:18  Show Profile  Visit Rob's Homepage  Reply with Quote
I'm guessing it now comes down to some kind of race condition where S+ is trying to access/store the string at the same time one of the other action threads is trying to modify it (or vice versa).. I'm sure there's an elegant solution to permanently and properly address this, but I'm out of steam on this issue (and really need a development break!)
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 07/01/2012 :  16:14:13  Show Profile  Reply with Quote
Oh noes.

The ghost-button in Windows 8 is back now.

If I close it the text isn't displayed anymore.

Just a heads-up.
Go to Top of Page

Rob

USA
2591 Posts

Posted - 07/01/2012 :  16:44:31  Show Profile  Visit Rob's Homepage  Reply with Quote
Try these and let me know if they both work before I release a patch..but then I'm REALLY done!

32-bit:
http://www.strokesplus.com/files/StrokesPlus_2.1.4_x86_chg.zip

64-bit:
http://www.strokesplus.com/files/StrokesPlus_2.1.4_x64_chg.zip
Go to Top of Page

Andreasvb

Sweden
46 Posts

Posted - 07/01/2012 :  16:54:15  Show Profile  Reply with Quote
No ghost so far.

Thanks so much. ^^
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000