File used by another Process - SOLVED

Questions and answers about anything related to Helium Scraper
Post Reply
flotschie
Posts: 16
Joined: Wed May 15, 2013 6:24 pm

File used by another Process - SOLVED

Post by flotschie » Sun May 19, 2013 7:28 pm

When I try to use the StartProcesses action, i sometimes get

The process can not access the file because it is being used by another process.

Any help?
Last edited by flotschie on Sat Jun 15, 2013 5:26 pm, edited 1 time in total.

webmaster
Site Admin
Posts: 521
Joined: Mon Dec 06, 2010 8:39 am
Contact:

Re: File used by another Process

Post by webmaster » Sun May 19, 2013 11:32 pm

Hi,

Do you get to see any more details (i.e. the popup has a "Details" button)?
Juan Soldi
The Helium Scraper Team

flotschie
Posts: 16
Joined: Wed May 15, 2013 6:24 pm

Re: File used by another Process

Post by flotschie » Mon May 20, 2013 7:25 am

Not anymore, sorry. I got this error in a nightly run, i saw this message yesterday morning. I'm using the Task Scheduler in Windows and among other parameters I handed over Auto-Save to true. In the "StartProcesses" options of the project I also set Auto-Start to true and max Processes to 5. I guessed it has maybe to do with the "Auto-Save" option and turned it off in the "StartProcesses" action (but not in the task scheduler parameters), and today morning I didn't get this error.

Anyway, this "Auto-Save" option in the StartProcesses action confuses me. What should it do? If you start several processes from one instance of Helium Scraper, I would never want a child process to change my main program, so what is this option for? What does it exactly save? The shared database file? Well, isn't the auto-save option in the task scheduler parameters enough for that?

Also, today morning I got two other error messages:

[*] The first one is a "Timed out waiting for process to start ...in my StartProcesses Action Tree. I also got no error message details but I will send it to you next time.
[*] The second one is a very general Windows Error Window, it simply says "Helium Scraper does not work anymore. Due to a problem the program can not be executed correctly. The program will be closed and you will be informed when a solution is available" (translated from german). Only option I have here is to "Close Program".

These errors I got today morning after the nightly run of my program so i don't know yet how to reproduce it quickly. Anyway, I will try to get more details soon. But until then, any help would of course be appreciated :)

flotschie
Posts: 16
Joined: Wed May 15, 2013 6:24 pm

Re: File used by another Process

Post by flotschie » Mon May 20, 2013 5:15 pm

I get the second error on a regular basis. It appears 4 times in the middle of a 4 - hour - scraping process. In my URL list are 10250 items, and the process extracted 10246. So it seems those are the 4 processes which failed. Here is the Windows Event Log (if you need help with german please tell me) of one error occurance.

Name der fehlerhaften Anwendung: Helium Scraper.exe, Version: 2.4.0.2, Zeitstempel: 0x51758eba
Name des fehlerhaften Moduls: jscript9.dll, Version: 10.0.9200.16540, Zeitstempel: 0x5125e918
Ausnahmecode: 0xc0000005
Fehleroffset: 0x000095f5
ID des fehlerhaften Prozesses: 0xd88
Startzeit der fehlerhaften Anwendung: 0x01ce555d7279fd9f
Pfad der fehlerhaften Anwendung: C:\Users\flotschie\AppData\Local\Apps\2.0\9TNMG547.ZHR\7NZO1D6J.DPH\heli..tion_0000000000000000_0002.0004_e35b37860ab7a874\Helium Scraper.exe
Pfad des fehlerhaften Moduls: C:\Windows\SysWOW64\jscript9.dll
Berichtskennung: b428594d-c150-11e2-b45e-005056c00008

flotschie
Posts: 16
Joined: Wed May 15, 2013 6:24 pm

Re: File used by another Process

Post by flotschie » Tue May 21, 2013 6:53 am

And here are the Details for the first error:

<?xml version="1.0" encoding="utf-16"?>
<ErrorReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<InnerError>
<InnerError>
<InnerError>
<Message>Timed out waiting for process to start.</Message>
<TypeName>System.Exception</TypeName>
</InnerError>
<Message>Timed out waiting for process to start.</Message>
<TypeName>Player.Actions.StopException</TypeName>
</InnerError>
<Message>Timed out waiting for process to start.
... in 'GetDetailsMultipleProcesses'</Message>
<TypeName>Player.Actions.StopException</TypeName>
</InnerError>
<Message>Timed out waiting for process to start.
... in 'GetDetailsMultipleProcesses'</Message>
<TypeName>Player.Actions.StopException</TypeName>
<StackTrace> bei Player.Actions.Executor.a()</StackTrace>
<TimeStamp>2013-05-21T08:51:10.2157252+02:00</TimeStamp>
<Version>2.4.0.2</Version>
<WorkingSet>33968128</WorkingSet>
<Is64Bit>true</Is64Bit>
<WinVersion>Microsoft Windows NT 6.1.7601 Service Pack 1</WinVersion>
<BrowserVersion>10.0.9200.16576</BrowserVersion>
</ErrorReport>

flotschie
Posts: 16
Joined: Wed May 15, 2013 6:24 pm

Re: File used by another Process

Post by flotschie » Thu May 23, 2013 6:47 am

Today I got another error after my nightly run. The error message simply says "The File exists" and it seems that 5-6 Helium instance triggered by "StartProcesses" threw this error tonight. Here are the Details:

<?xml version="1.0" encoding="utf-16"?>
<ErrorReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Message>Die Datei ist vorhanden.
</Message>
<TypeName>System.IO.IOException</TypeName>
<StackTrace> bei WebScraperAndPlayer.MetaProject.a(String A_0, Boolean A_1, Boolean A_2)
bei WebScraperAndPlayer.BuilderForm2.OpenProject(String fileName)
bei WebScraperAndPlayer.BuilderForm2.b(String A_0)</StackTrace>
<TimeStamp>2013-05-23T08:38:52.0490991+02:00</TimeStamp>
<Version>2.4.0.2</Version>
<WorkingSet>19632128</WorkingSet>
<Is64Bit>true</Is64Bit>
<WinVersion>Microsoft Windows NT 6.1.7601 Service Pack 1</WinVersion>
<BrowserVersion>10.0.9200.16576</BrowserVersion>
</ErrorReport>

I wonder which error comes next....so far it seems the StartProcess action is not working well and the Documentation how to handle it correctly is not 100% complete. Please Juan, it would be nice to have a statement from you. An answer to this post or my other topic how to use StartProcesses in a more efficient way would be nice.

flotschie
Posts: 16
Joined: Wed May 15, 2013 6:24 pm

Re: File used by another Process

Post by flotschie » Thu May 23, 2013 5:47 pm

I just opened HS. Immediately, the error-report window opened. After sending the error report, I try to open a project with "File" - "Open", choose the project and the error message "The File exists" appears:

<?xml version="1.0" encoding="utf-16"?>
<ErrorReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Message>Die Datei ist vorhanden.
</Message>
<TypeName>System.IO.IOException</TypeName>
<StackTrace> bei WebScraperAndPlayer.MetaProject.a(String A_0, Boolean A_1, Boolean A_2)
bei WebScraperAndPlayer.BuilderForm2.OpenProject(String fileName)
bei WebScraperAndPlayer.BuilderForm2.b(String A_0)</StackTrace>
<TimeStamp>2013-05-23T19:44:23.1500275+02:00</TimeStamp>
<Version>2.4.0.2</Version>
<WorkingSet>69124096</WorkingSet>
<Is64Bit>true</Is64Bit>
<WinVersion>Microsoft Windows NT 6.1.7601 Service Pack 1</WinVersion>
<BrowserVersion>10.0.9200.16576</BrowserVersion>
</ErrorReport>

Right now, it seems i can't use Helium. Its getting really urgent... :(

flotschie
Posts: 16
Joined: Wed May 15, 2013 6:24 pm

Re: File used by another Process

Post by flotschie » Sat Jun 15, 2013 5:26 pm

Solved by deleting the TEMP Folder in "C:\Users\<username>\AppData\Local\Temp"

Post Reply