Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 RaiMan requested more information: Pls. post a typical snippet, where wait() hangs. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Assignee: None => RaiMan Summary changed to: [1.0 ]Sometimes "wait" hangs in sikuli 1.0 -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Needs information => Open dinev gave more information on the question: 1. Default scan rate. As far I remember it was 3 scans/sec 2. The typical case: type(some_text) click(some_image) wait(some_image, timeout) in the console i can see that type and click are executed. Wait hangs for hours(timeout is usually 10 to 60 seconds) I will continue to monitor the test and will add more info if another pattern appear -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 dinev gave more information on the question: I have new doubt now. In the console log i see the Type and Click written. Is there any possibility that click fail. Because the condition I saw today make me believe click was not performed. But it may be the AUT bug... Another thing. The click is performed on button that changes its color on mouse over -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Open => Answered RaiMan proposed the following answer: This is one of the major problems with Sikuli: You do not get any feedback, wether a click was performed in real. There are some known situations, where it might be possible, that a click is processed, but does not happen. The most often reason is timing: the GUI for some reason is not yet ready, to accept a click. Typical are sequences like click(...) # get to an entry field type(...) # type something click(...) # click a button even a short (e.g. wait(0.5) ) might stabilize the situation. (this was one of the reasons, why Sean implemented the mouse move animation: to give the GUI some time to prepare for the next click, but this sometimes does not help either) A button that changes on hover should not be the problem, since normally the search for the button was done in a situation before, where the mouse pointer was somewhere else on the screen. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Answered => Open dinev is still having a problem: I got this problem again today - 2 times. One test hangs for 13 hours. Another for 3h. The problem is not the AUT. If it is doesn't react to the click that fine - it is AUT bug. My big concern is that sikuli hangs indefinitely. This should never happen. Test should always complete and fail if AUT doesn't perform as expected. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Open => Needs information RaiMan requested more information: What exactly do you mean with AUT? And how could AUT problems force Sikuli to hang? What should be implemented with Sikuli, to avoid these problems? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Needs information => Open dinev gave more information on the question: 1. AUT = Application Under Tests 2. The AUT never should cause sikuli to hang. That is the whole point of this post. For sure i reproduced problem against Desktop WPF application and against Crome browser. So I believe AUT is not the reason for the hang. As far I know sikuly just click on some coordinates and doesn't care about application itself(In contrast to Selenium or QTP,Autoit tools) 3. I really do not know how sikuli executes the click, type or wait commands. I just noticed the regression from r3 to 1.0. I believe it is the click that hangs. I will continue to monitor my tests for such problems and will report them back -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Open => Needs information RaiMan requested more information: Ok, thanks for clarification. The click in the end is a Java Robot mouse click, that is performed on a point on the screen. This point usually is evaluated by a search operation for a given image on the screen (with all the options you have like restricting the search to a region, use Patterns, ...). So if it looks like a click is hanging, it must be a click of the form click(some_image_or_pattern), since a click(some_point) cannot hang (it might do nothing in some situations, where programmatic mouse actions are blocked by the system or app). So we are back to the point, that you think, you have situations where a search operation hangs and does not come back, though the search operation should have been either successful (the visual had appeared) or not successful, because the visual did not appear in the given region after the given (explicit or implicit) timeout (this usually should produce a FindFailed exception, with the exception of exists(), that simply returns false in this case). Together with my final works these days for the service update 1.0.1, I will again look into the code, add some debug options and run some long- run-tests. Do you have any additional patterns, that might help to focus the problem area? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 dinev posted a new comment: Nicole, Could you try to add "sleep(1)" before the wait command? I had some partial success to mitigate my problems in this way. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Needs information => Answered RaiMan proposed the following answer: that's really strange. Yes pls. send everything that could help zipped together including relevant screenshots silently to my mail at https://launchpad.net /~raimund-hocke. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Nicole Demers posted a new comment: I am also getting this problem! I can run other scripts and the initial exists in my code works fine, unfortunately for this one particular image/click it hangs... and hangs and hangs. I also have only been experiencing this since the upgrade from r3. I am not sure what the problem is since when I click on the image in the IDE it appears, shows me where it should match on the screen (So I know it should be found) and I can adjust the properties and target offset etc. Unfortunately when I run the following code, it doesn't find the image or throw a findFailed after the timeout: click(wait(Pattern("1378242343085.png").similar(0.80).targetOffset(-20,-38), 3 * 60)) I don't think this code is really fancy, other instances of this same code work great! I have tried separating the code into something like this: m = wait(Pattern("1378242343085.png").similar(0.80).targetOffset(-20,-38), 3 * 60) if m: click(m) but that hangs on the wait as well. I added a "print("Great success!") after the wait and it is never printed. Even after waiting a halfhour to cancel the script! I have also tried restarting the computer, creating a new file, using a new sikuli install and taking another screenshot. Nothing has worked! I will try a new file with all new screenshots after an immediate restart, but past that I just don't know what to do. If you need to know anything else please let me know! I'd even be happy to email you the offending image. :) -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 RaiMan posted a new comment: @ Nicole: Thanks for kind feedback. And for documenting your case. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Nicole Demers posted a new comment: Hi Everyone, Thank you all for the excellent, quick responses! I emailed RaiMan the extra images in case those had something to do with it and it turned out to be an error in the preceding line of code. I was using process.start() to run a batch file opening an access database and mistakenly thought it would return control once the script was done and the database open. It doesn't! It only returns control after the database closes. My bad! The more you know! *rainbow* Sore this doesn't help you more, Dinev. :( -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 RaiMan requested more information: BTW: are you using the latest 1.0.1 (setup past September 4th)? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 dinev posted a new comment: Today I had another hang - again in click command - last row below. click(img1) click(img2); sleep(0.5) click(img3); sleep(0.5) Still it is rare problem and do not hurt too much :-) Is there anything that I can do to debug this. To attach debugger when this happens? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 RaiMan proposed the following answer: --- Is there anything that I can do to debug this. if the situation is reproducible: - run script from command line - add in the script: Debug.setDebugLevel(3) click(img1) click(img2); sleep(0.5) click(img3); sleep(0.5) Debug.setDebugLevel(0) if it then hangs, the command line should have some information, what is going on (really hanging or silently looping) If it is not reproducible and not urgent as you say: just wait a little until I give you something to test with (latest end of next week) -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Status: Answered => Solved dinev confirmed that the question is solved: Seems that problem disappear in last version. I upgraded back in September and waited 2 months to confirm that I do not face the problem anymore. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 RaiMan posted a new comment: Thanks for feedback. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 Assi.NET posted a new comment: Hi, Raiman, Fortunately, TestMechanic helped me to find out this post and also try to help me with my issue. Unfortunately, 7 years later I hit a similar problem with version 2.0.4. I have never experienced such an issue with 1.1.3 version for years. I do a few days of experiments, described below I have a test set where I run it simultaneously on 1.1.3 and 2.0.4 via Jenkins (so 2 different jobs, the same code base, windows 10 machines, the same Java Version 11 LTS - just different Sikuli versions) After 200 builds I don't have any hangs with 1.1.3, but about 20% hangs with 2.0.4. I'm using unittest and HTMLTestRunner Few hangs appear here: click(Sport_UI.position_Statistics_Right_Result_1) sleep(1) all_remove_bet_buttons = list(findAll(Sport_UI.betslip_button_RemoveItem)) assert len(all_remove_bet_buttons) == 2 Another Here - this is from output: 03:06:01 [log] CLICK on L[1737,99]@S(0) (609 msec) 03:06:01 [log] ( Ctrl ) TYPE "a" 03:06:03 [log] ( Ctrl ) TYPE "c" 03:06:04 [log] CLICK on L[1737,99]@S(0) (43 msec) 03:13:40 Build timed out (after 12 minutes). Marking the build as aborted. Here is a few hangs with "-d 3" option of the Sikuli: 18:16:11 [debug] Region: wait: icon_User.png appeared (M[1871,81 33x37]@S(0) S:1.00 T:1737,99 [373 msec]) 18:16:11 [debug] CLICK on L[1737,99]@S(0) (569 msec) 18:16:11 [debug] ( Ctrl ) TYPE "a" 18:16:11 [debug] Region: ( Ctrl ) TYPE "a" 18:16:13 [debug] ( Ctrl ) TYPE "c" 18:16:13 [debug] Region: ( Ctrl ) TYPE "c" 18:16:14 [debug] Region: wait: waiting 3.0 secs for icon_User.png to appear in R[0,0 1920x1080]@S(0) 18:16:14 [debug] Finder2: makeMat: INT_RGB (33x37) 18:16:14 [debug] Finder2: makeMat: 3BYTE_BGR (33x37) 18:16:14 [debug] Finder2: doFindImage: start (stdDev: 211.3592 mean: 440.961507) 18:16:14 [debug] Finder2: doFindImage: in original: %-27.0082 (?99) 0 msec 18:16:14 [debug] Finder2: doFindImage: end 0 msec 18:16:14 [debug] Region: checkLastSeen: not there 18:16:14 [debug] Finder2: makeMat: INT_RGB (1920x1080) 18:16:14 [debug] Finder2: makeMat: 3BYTE_BGR (33x37) 18:16:14 [debug] Finder2: doFindImage: start (stdDev: 211.3592 mean: 440.961507) 18:16:14 [debug] Finder2: doFindImage: in original: %99.9987 (?70) 295 msec 18:16:14 [debug] Finder2: doFindImage: end 295 msec 18:16:14 [debug] Region: wait: icon_User.png appeared (M[1871,81 33x37]@S(0) S:1.00 T:1737,99 [382 msec]) 18:16:14 [debug] CLICK on L[1737,99]@S(0) (32 msec) 18:24:14 Build timed out (after 12 minutes). Marking the build as aborted. 18:24:14 New run name is '#147-sport_bet_tests-UAT-win10x64-2' 18:24:14 Build was aborted 18:24:14 [htmlpublisher] Archiving HTML reports... 18:24:14 [htmlpublisher] Archiving at BUILD level c:\ui-tests\results\jenkins to C:\_J\jobs\Sikuli_204\builds\147\htmlreports\HTMLReport 18:24:14 ^CTraceback (most recent call last): 18:24:14 File "runner.py", line 210, in 18:24:14 os.system(command) 18:24:14 KeyboardInterrupt 18:24:14 [717566 debug] RunTime:* final cleanup at System.exit() * 18:24:14 Terminate batch job (Y/N)? 18:24:14 The batch file cannot be found. 18:24:14 [717646 debug] FileManager: deleteFileOrFolder: 18:24:14 C:\Users\egttest\AppData\Local\Temp\Sikulix_1459735496 18:24:16 Recording test results 18:24:16 [Checks API] No suitable checks publisher found. 18:24:16 Finished: ABORTED 16:20:36 [debug] Region: wait: button_Statistics.png appeared (M[874,371 28x27]@S(0) S:1.00 C:888,384 [407 msec]) 16:20:36 [debug] Region: wait: waiting 3.0 secs for button_Statistics.png to appear in R[0,0 1920x1080]@S(0) 16:20:36 [debug] Finder2: makeMat: INT_RGB (28x27) 16:20:36 [debug] Finder2: makeMat: 3BYTE_BGR (28x27) 16:20:36 [debug] Finder2: doFindImage: start (stdDev: 126.5751 mean: 271.599206) 16:20:36 [debug] Finder2: doFindImage: in original: %7.4645 (?99) 1 msec 16:20:36 [debug] Finder2: doFindImage: end 1 msec 16:20:36 [debug] Region: checkLastSeen: not there 16:20:36 [debug] Finder2: makeMat: INT_RGB (1920x1080) 16:20:36 [debug] Finder2: makeMat: 3BYTE_BGR (28x27) 16:20:36 [debug] Finder2: doFindImage: start (stdDev: 126.5751 mean: 271.599206) 16:20:36 [debug] Finder2: doFindImage: in original: %99.9994 (?70) 282 msec 16:20:36 [debug] Finder2: doFindImage: end 282 msec 16:20:36 [debug] Region: wait: button_Statistics.png appeared (M[874,371 28x27]@S(0) S:1.00 T:1068,384 [397 msec]) 16:20:37 [debug] CLICK on L[1068,384]@S(0) (532 msec) 16:20:38 [debug] Region: findAll: waiting 3.0 secs for (multiple) betslip_button_RemoveItem.png to appear in R[0,0 1920x1080]@S(0) 16:20:38 [debug] Finder2: makeMat: INT_RGB (1920x
Re: [Sikuli-driver] [Question #230237]: [1.0 ]Sometimes "wait" hangs in sikuli 1.0
Question #230237 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/230237 RaiMan posted a new comment: @Ivomir It does not make sense, to add a new question using a comment on a solved question, that additionally is 7 years old. @your problem The log does not reveal hangs inside of Sikuli features. In both cases the search for the image was completed. So the hang might be with the following click op (system/environment problem?) In the first case even the click is reported: 18:16:14 [debug] CLICK on L[1737,99]@S(0) (32 msec) 18:24:14 Build timed out (after 12 minutes). Marking the build as aborted. In the second case we have 16:20:38 TEST STARTED: test_550_SPORT_Place_Bet_Combined (__main__.SportBetTests) 16:27:58 Build timed out (after 12 minutes). Marking the build as aborted. I am sorry, but I cannot help you. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp