Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (monk12, Quad), 830 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Corrupted Z12.trd? #483606
06/21/21 03:13
06/21/21 03:13
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi. Windows (Server 2016) wanted to do Updates, so today (Sunday) I clicked Stop, No to Close Trades, Yes to Stop Trading, exited Zorro, and did the Updates, including the reboot after.

Now Z12 will not Trade. It logs in to the broker, loads prices, prints "Trade: Z12 <date>" and then up pops the "Zorro Automaton has stopped working" window. I have also tried with "- diag", but no additional information is recorded.

The same VPS also runs Z7 (from a different directory) and it has restarted fine.

So, it seems the Z12.trd file has somehow been corrupted? How can I verify this and repair the trd file? Is there a trd utility somewhere?

Thanks.

Re: Corrupted Z12.trd? [Re: DdlV] #483608
06/21/21 08:20
06/21/21 08:20
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Maybe a virus?

If it were the .trd you would see an error message, what you had looked to me more like a broken zorro.exe or z12.x. Better reinstall it.

Re: Corrupted Z12.trd? [Re: DdlV] #483610
06/21/21 11:48
06/21/21 11:48
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks Petra. Reinstall done. Unfortunately same crash.

Re: Corrupted Z12.trd? [Re: DdlV] #483611
06/21/21 12:29
06/21/21 12:29
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
FYI: Reinstall above was done into existing directory. Have also now done fresh install into new directory and copied the trd file into it - same crash.

Re: Corrupted Z12.trd? [Re: DdlV] #483612
06/21/21 13:26
06/21/21 13:26
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
I have also renamed the trd file and Traded Z12. A new trd file is created and Trade starts fine. The problem seems clearly to be the trd file has been corrupted. Is there any utility to examine and/or repair trd files? Or a manual way to examine/fix it?

Re: Corrupted Z12.trd? [Re: DdlV] #483614
06/22/21 05:57
06/22/21 05:57
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Its binary, so you cannot look into it easily, but you could load it with loadStatus and different SaveMode flags to check which parts of it are readable.

Re: Corrupted Z12.trd? [Re: DdlV] #483617
06/23/21 13:01
06/23/21 13:01
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks Petra. I will see if that gives any clues. Do the SaveMode modes cover the entire contents of a trd file?

Re: Corrupted Z12.trd? [Re: DdlV] #483619
06/23/21 14:35
06/23/21 14:35
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks again, Petra. loadStatus crashes trying to load the AlgoVars. Sliders and Trades seem OK.

Now, how can I fix the AlgoVars?!

Re: Corrupted Z12.trd? [Re: DdlV] #483627
06/24/21 10:23
06/24/21 10:23
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
You could reset the SV_ALGOVARS flag. They will then not be loaded. But that would not work for Z12 where you have no code access. Delete the broken .trd file and close the trades manually.

Re: Corrupted Z12.trd? [Re: DdlV] #483628
06/24/21 12:11
06/24/21 12:11
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @jcl.

Would the code below work? It creates a MUCH smaller trd...

Code
function run()
{
  if(Bar >= 1) {
    SaveMode = SV_SLIDERS+SV_TRADES;
    loadStatus("/home/user/QubesIncoming/a-personal/Z12.trd");
    saveStatus("/home/user/QubesIncoming/a-personal/Z12-Fixed.trd");
    quit();
  }
}


Page 1 of 3 1 2 3

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1