mIRC Home    About    Download    Register    News    Help

Print Thread
#268246 17/12/20 01:41 AM
Joined: Aug 2015
Posts: 71
Babel fish
OP Offline
Babel fish
Joined: Aug 2015
Posts: 71
[05:34:06pm] * [MESG]           (entropy_) i found a bug in the latest version
[05:34:07pm] * [MESG]           (entropy_) * /write: error writing 'C:\Users\entropy\Desktop\entrobot\uno\unoscores.txt' (line 1687, uno.mrc)
[05:34:18pm] * [MESG]           (entropy_) it worked perfectly untill i upgraded
[05:35:34pm] * [MESG]           (entropy_) if ($read(%az,wn,* $2)) { write -dl $+ $readn %az }
[05:35:38pm] * [MESG]           (entropy_) is line 1687
[05:37:06pm] * [MESG]           (entropy_) looks like a /write bug


mIRC Scripts IRC Network: irc://irc.mircscripts.info/chat
Joined: Dec 2002
Posts: 5,482
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,482
Thanks for your bug report. The /write command is working correctly for me here. Can you provide a short, simple script that reproduces the issue for you?

Joined: Feb 2011
Posts: 461
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 461
Looks like this bug started with 7.46. It still exists in the 7.76 release.

I tried this code in 7.45 and it did not cause a error.

The bug seems to be based on how fast your storage is. Slower the storage the more likely you will hit the bug.

250GB 5400RPM drive it prints the write error when %x gets between 997 and about 750.

100MB Ramdisk is a bit more difficult to replicate the issue, sometimes it will not error at all.

Code
alias write_bug {
  var %x 1000
  while (%x) { 
    write -l 1 test newline1 
    echo -ag %x
    dec %x 
  }
}

Joined: Dec 2002
Posts: 5,482
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,482
Thanks for your bug report.

The most common reason for this issue is anti-virus software that is blocking further writing to the file while it scans the file.

I just tested your script with v7.76 on a 5400rpm drive and it worked fine here.

I also tested v7.45 and v7.46 and they both worked fine as well. There is no difference in the /write source code between v7.45 and v7.46.


Link Copied to Clipboard