home recent topics recent posts search faq  

Schaudin.com Forum



register | lost password | |
Messages in this topic - RSS

Home » RC-WinTrans Support » Executing RCWinTrans 11 in parallel throws error

For support issues and specific questions related to RC-WinTrans' use, features and functions.
08.07.2019 12:07:23

Support
Support
Administrator
Posts: 234
No. We could not find something. We canceled forcing to find the reason.

Regards, Support Schaudin.com
0 permalink
09.07.2019 16:19:25

AlexC
AlexC
Posts: 16
Is the conclusion on this thread then that there is an issue on running RCWinTrans.exe in parallel and it will not be fixed?


I also get problems with RcWinTrans.exe when I try to do some operation on different databases simultaneously.
My setup is a windows command script, lets call it NighTest.cmd. NightTest.cmd kicks off a perl script that does work on different databases simultaneously. So, I will have eg. 4 instances of RCWinTrans.exe running at the same time doing work on 4 different databases. No database is accessed by more than 1 instance of RCWinTrans.exe at the same time.
When I run NightTest.cmd from a windows command prompt there don’t seem to be any issues with running RcWinTrans.exe in parallel except from the output to the console is off course messed up due to that 4 instances of RcWinTrans.exe is writing to the same console.
But I need to run NightTest.cmd from a Windows scheduled task and then the problems start to occur. If the scheduled task option “Run only when user is logged on” is checked things seems to work fine.
If the option “Run whether user is logged on or not” is checked I start to have problems with running RcWinTrans.exe in parallel, and in my case, I need this option to be checked. My guess is that the problems is related to not having a console when this option is checked.
In general, it is a bit of a mess to write to the console in stead of writing to standard output and standard error especially when a program can (should be able to) be run in parallel.


Best regards
Alex
0 permalink
17.07.2019 12:54:46

Support
Support
Administrator
Posts: 234
Hello Alex,

> Is the conclusion on this thread then that there is an issue on running RCWinTrans.exe
> in parallel and it will not be fixed?
>
No.

> ... run NightTest.cmd from a Windows scheduled task and then the problems start to occur.
> If the scheduled task option “Run only when user is logged on” is checked things seems to work fine.
> If the option “Run whether user is logged on or not” is checked I start to have problems with running
> RcWinTrans.exe in parallel, and in my case, I need this option to be checked. My guess is that the problems
> is related to not having a console when this option is checked.
>
This is a concrete evidence and observation. Very helpful.
Writing to the standard output we have to fix first.

Thank you for your cooperation and your input up to now.

Regards,
Support, Schaudin.com
+1 permalink
25.02.2020 14:21:43

AlexC
AlexC
Posts: 16
Hi,
Is there is news regarding changing the output from the console to stardard output?
Best regards
Alex
0 permalink
26.02.2020 11:38:10

Support
Support
Administrator
Posts: 234
No Alex. Sorry. It still hasn't been done.

Regards,
Support, Schaudin.com
0 permalink
18.02.2021 13:39:27

AlexC
AlexC
Posts: 16
Hi

I have been debugging this parallel problem a lot more the last week.
My OS is windows server 2012 R2 version 6.3 Build 9600
My RC-WinTrans version is 11.5.2.74 and I am using the new command line interface.

I have a script that runs two processes in parallel. Each process works on their own database so it is not multiple access to the same database, but running RCWintrans.exe in parallel and each instance of RCWintrans.exe has exclusive access to the database it is working on.
Each process does an update and writes the target files.

When I run the script from a command line it works fine and I can see the two instances of RCWinTrans running when I monitor it in Process Explorer, so this is as expected.

But when I try to run the script as a scheduled task it starts to fail. Then scheduled task has the feature "Run whether user is logged on or not" enabled. I see that it is the update that is failing. And when I am monitoring it in Process Explorer I can that the WerFault.exe is started so there is some error reporting going on.
From my log files I have some times see error messages like these:
=========

RCWinTrans.exe /Update /proj MzChart_rc.rwtproject /lang ja-JP -all /log C:\Users\MZSERV~1\AppData\Local\Temp\wtout_4908.log

Date: Thursday, February 18, 2021 Time: 12:07



Update database...
Project/Database: "c:\f-share\latest\Source\MZ\Util\MzChart\MzChart_rc.rwtproject"
Language: Japanese (Japan) (ja-JP)
Number of files: 1
Data file error! Language: "ja-JP"; Source file: "c:\f-share\latest\Source\MZ\Util\MzChart\MzChart.rc"


Temp. file: C:\Users\mzservices\AppData\Local\Temp\mzchart\RC-WinTrans\RCT11681.rwtxlf


Not enough storage is available to complete this operation.




Error: Failed to run VBA function. VBA macro: "ConvProp", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvRC", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvIni", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvXliff", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvWin32EXE", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvSHL", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvXML", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvTABSep", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvXML", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvCHeader", Function: "SupportedDatatypes"


Error (401): The file "c:\f-share\latest\Source\MZ\Util\MzChart\MzChart.rc" could not be converted to the internal processing format.

=========

Further more I see error messages in the windows application logs:
First there is Application error:
=====

Faulting application name: RCWinTrans.exe, version: 11.5.2.74, time stamp: 0x5eb863b3
Faulting module name: ntdll.dll, version: 6.3.9600.19678, time stamp: 0x5e82c0f7
Exception code: 0xc0000374
Fault offset: 0x000e5d84
Faulting process id: 0x1100
Faulting application start time: 0x01d705e4b15fe62b
Faulting application path: c:\Program Files (x86)\RC-WinTrans\RC-WinTrans 11\Program\RCWinTrans.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: ef3733b4-71d7-11eb-890c-00155d140905
Faulting package full name:
Faulting package-relative application ID:

=====
And after that there is an Windows Error Reporting event
=====

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0


Problem signature:
P1: RCWinTrans.exe
P2: 11.5.2.74
P3: 5eb863b3
P4: StackHash_44b4
P5: 6.3.9600.19678
P6: 5e82c0f7
P7: c0000374
P8: PCH_4C_FROM_ntdll+0x0003C62C
P9:
P10:


Attached files:
C:\Users\mzservices\AppData\Local\Temp\WERA87F.tmp.appcompat.txt
C:\Users\mzservices\AppData\Local\Temp\WERAEAA.tmp.WERInternalMetadata.xml
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_RCWinTrans.exe_6f8c68d45b968877b57a86c6481a462889f66be9_4e70d803_cab_0c62aeb8\memory.hdmp
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_RCWinTrans.exe_6f8c68d45b968877b57a86c6481a462889f66be9_4e70d803_cab_0c62aeb8\triagedump.dmp


These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_RCWinTrans.exe_6f8c68d45b968877b57a86c6481a462889f66be9_4e70d803_cab_0c62aeb8


Analysis symbol:
Rechecking for solution: 0
Report Id: ef3733b4-71d7-11eb-890c-00155d140905
Report Status: 4
Hashed bucket:

=====

There are different version of there Error Logs. some time it is ntdll.dll that is the Faulting module and I have also seen MSVCR100.dll as the faulting module.

Hope this can help you closing in on the problem.
Best regards
Alex

By the way, forgot the tell I have made sure that each instance of RcWintrans.exe have its own temporary directory, I modify then TMP and TEMP environments variables before calling RCWintrans.exe to a unique directory.
edited by AlexC on 18.02.2021


just noticed this logfile : "C:\Program Files (x86)\RC-WinTrans\RC-WinTrans 11\LoggingFile.log" it had this error message:

Starting RC-WinTrans...Date: Thursday, February 18, 2021 Time: 15:20
ApcOleInit
InitATL
LoadSettingFromINIFile
CSftTree::RegisterApp
Creating document templates
Creating main frame window...
Error: Creating main frame window failed!
Exit.



To me that seems like several problems here. This gives at least 2 questions:
1) Why cant WinTrans create the main windows.?
2) It cant be safe for running in parallel to have such a file all instances of RcWintrans is writng to?
edited by AlexC on 18.02.2021
edited by AlexC on 19.02.2021
0 permalink
22.02.2021 21:52:30

Support
Support
Administrator
Posts: 234
Hello AlexC,

we need a few more time to answer you.

Regards, Support Schaudin.com
0 permalink
28.02.2021 20:33:38

Support
Support
Administrator
Posts: 234
Hello AllexC,


maybe it is not the palalel processing (?). The "Update Database" process is the most expensive RC-WinTrans function in time, RAM usage and creating/using a huge amount of .Net objects, each wrapped as COM object.


You wrote:
- "...run the script from a command line: Each process does an update and writes the target files.."
- " Task Scheduler: it starts to fail"


The scheduler task priorities/resources could make the difference (?)
I do not know your project (MzChart_rc.rwtproject) but maybe it is size of this project and it would run with a smaller project (? )
Note: RC-WinTrans needs to load and hold all data (whole project) in memory while updating the project database.


Your questions
1) "Why cant WinTrans create the main windows.?"


I do not know. I think something is out of "resources" to create another main window with all its requirments (?).




2) "It cant be safe for running in parallel to have such a file all instances of RcWintrans is writing to?"


It is true, the log file is made for writing infos from/by a single application instance.
Also: The log file is placed in the installation folder where it usually can be written only when RC-WinTrans is started with "Start as administrator"
-- it is wrong the log file is in the installatin folder.
But: Opening and writing the log file is not forced and no error is created/thrown by RC-WinTrans if it is not possible.




Regards, Support Schaudin.com
0 permalink

Home » RC-WinTrans Support » Executing RCWinTrans 11 in parallel throws error





Powered by AspNetForum 6.9.6.0 © 2006-2010 Jitbit Software