Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Vice indeterminism
2022-10-11 07:54
mankeli

Registered: Oct 2010
Posts: 110
Vice indeterminism

Hi, we've been debugging a mysterious bug that seems to be related to loading, but not necessarily, and it happens extremely seldomly.

We got a .vsf capture of a run that usually crashes in few seconds, but it did about 80% of the time (a week ago) and now it doesn't crash at all for me. (using of course same .d64 and .vsf)

Is it possible to make vice totally deterministic with some correct settings?
2022-10-11 09:37
Krill

Registered: Apr 2002
Posts: 2839
Try these options, found using "x64sc --help | grep random":
-seed <value>
        Set random seed (for debugging)
-autostart-delay-random
        Enable random initial autostart delay.
+autostart-delay-random
        Disable random initial autostart delay.
-raminitstartrandom <num of bytes>
        Number of random bytes in random pattern
-raminitrepeatrandom <num of bytes>
        Repeat random pattern after this many bytes
-raminitrandomchance <value>
        Random chance for any bit to flip (0-0xfff)
The first and the third options seem like what you're looking for.
The raminit options may help if you have uninitialised variables.
2022-10-11 17:32
chatGPZ

Registered: Dec 2001
Posts: 11111
Also note how it prints the seed into the log - So if you got a run that crashes, use that seed to reproduce.

That said, i can't recommend snapshots for this kind of debugging. It's close to impossible to test if snapshots even work correctly, let alone cycle exact - so there are probably errors involved in the process.
2022-10-13 15:47
mankeli

Registered: Oct 2010
Posts: 110
Thanks. Shame that .vsf's are not reliable, but now I/we know atleast. :D And didn't know anything about the random seed options / printouts ether, next time with those then.


ps. Buuut maybe I found the issue! \o/
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Barfly/Extend
Grue/Extend
Guests online: 118
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.035 sec.