Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 604 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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