tutorial 1 hangs, then screen-scraper gui disappears
installed ss basic on win xp pro, running thru tutorial 1 fine, until end when time to write .txt file, using VBscript. Seemed to hang for about a minute, then application disappeared! No text file written to disk, but it did write to an error log called "hr_err_pid2344.log...
#
# An unexpected error has been detected by Java Runtime Environment:
#
# Internal Error (53414645504F494E540E435050024F), pid=2344, tid=764
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x03512400): JavaThread "Thread-53" [_thread_in_native, id=764]
Stack: [0x0bfe0000,0x0c030000)
tutorial 1 hangs, then screen-scraper gui disappears
pspeirs,
What operating system are you running? Did you happen to try Pars Ethis's technique of indicating the full path to the screen-scraper installation directory when your creating the text file object?
-Scott
tutorial 1 hangs, then screen-scraper gui disappears
Being in Australia I really have no need for Jefferson's shiny head so I guess I'll need to continue down the dark path!!
basically by switching to Javascript to call the details extraction script all lockups were solved. I have a javascript which then writes to a text file, all problems solved.
I would however like to use vbscript to write directly to database, parse text, etc as I'm not confident with java at all.
I have installed the Microsoft VM as described, however the issue still exists.
Paul
tutorial 1 hangs, then screen-scraper gui disappears
pspeirs,
I'll give you a nickel if you'll switch over to using Java. But...if you insist. It sounds like both your issues may be related to either of the following issues addressed in our FAQ.
[url=http://www.screen-scraper.com/support/faq/faq.php#VBScriptCrash]VBScript causes crash[/url]
[url=http://www.screen-scraper.com/support/faq/faq.php#ComActiveXCreateProblem]ActiveX on notice, too[/url]
Please try the solutions offered for those FAQ's and if afterwards you don't have a need for Jefferson's shiny head in your pocket then we'll continue down the ever darkening road.
-Scott
Screen Scraper Hangs
I am experiencing this issue now. It is present in the free version and I have tested the trial version also with the same results. Installing onto different machines doesn't change the results. I have to install version 3 for things to work correctly.
Basically the scraping session (not just the sample) will get to a certain point and just hang. Not always the same point every run.
I had two sub extractor patterns entered and I ran it a couple of times without a problem. I added another sub extractor pattern and the program hung. I deleted the sub extractor pattern back to the last good config and it hung again.
Paul
tutorial 1 hangs, then screen-scraper gui disappears
tia,
Not sure what to say on this one. Seems like an anomaly. If you happen to test it again or run into the problem elsewhere please let us know.
Thanks,
Scott
tutorial 1 hangs, then screen-scraper gui disappears
I installed screen-scraper basic edition on a (old) Dell PC with winXP pro, sp2.
It only has 256Mb of RAM. No changes made to settings/config of screen-scraper, running as installed.
I was attributing the hanging and eventual disappearance of the GUI from the taskbar to fact this is an old box with little RAM. Also seeing screen-scraper taking up to 100% cpu, and still showing in taskmgr even after disappearing from taskbar.
However, I have had issues with spaces in path/file names in past, especially in context of file system objects.
If I get time to test on better systems, I'll post findings here.
thanks
tutorial 1 hangs, then screen-scraper gui disappears
Pars Ethis,
Thanks for posting your findings. I wasn't able to replicate the original issue you had on my XP install. What O/S are you running? Are you modifying which JRE screen-scraper is using in any way?
If we can replicate the problem you had we may just use your code in place of what we currently have since your code works on my XP install.
Thanks,
Scott
tutorial 1 hangs, then screen-scraper gui disappears
next test was to explicitly set the full path using a couple of vars added to tutorial script...
' Output a message to the screen-scraper log so we know that we'll be writing the text out to a file.
Session.Log "Writing data to a file."
' Create a FileWriter object that we'll use to write out the text.
[b]Dim objFso, objStoriesFile, strFolder, strFileName, strPath
[/b]
Set objFSO = CreateObject( "Scripting.FileSystemObject" )
[b]strFolder = "C:\Program Files\screen-scraper basic edition\"
strFileName = "form_submitted_text.txt"
strPath = strFolder & strFileName[/b]
Set objStoriesFile = objFSO.CreateTextFile( [b]strPath, True[/b] )
' Write out the text.
objStoriesFile.Write Session.GetVariable( "FORM_SUBMITTED_TEXT" )
' Close the file.
objStoriesFile.Close
worked perfectly!
seems like scripting engine cannot handle spaces in the default installation path when screen-scraper calls it?
tutorial 1 hangs, then screen-scraper gui disappears
rebooted, restarted app, and changed the script from VBscript to interpreted Java...worked like a charm!
I'm thinking the VBscript FSO doesn't like spaces in path and/or file names?
tutorial 1 hangs, then screen-scraper gui disappears
wanted to try different scripting lang, so tried to launch app again (post disappearance), and got the following pop-up...
[b]Port Error[/b]
? Sorry, screen-scraper will need to exit because it can't bind to the following port(s):
* 9001 (for the database)
Would you like to see more details on this error?
I clicked Yes, and nothing happened
Guess I'll do the reboot and try again...