BUG logicaldrives
 
Notifications
Clear all

BUG logicaldrives

8 Posts
2 Users
0 Reactions
232 Views
(@donagrejja)
Eminent Member Registered
Joined: 2 years ago
Posts: 16
Topic starter  

DesktopInfo version: 3.7.0
Windows version: 10.0.22621 (windows 11)

logicaldrives diskio:1 has a bug when the transferrate of a disk is too high it throws an error:
[e:EVariantOverflowError Overflow while converting variant of type (Double) into type (Integer)]

The chart stops displaying and desktopinfo stops rendering the whole application after the error happens. I have to do a complete restart for it to start working again.

My config:

LOGICALDRIVES=interval:1,diskio:1,include:cde,chart:line scale:linear series1:11 color1:%darkgreen% series2:13 color2:%darkred% row-id:1 width:120, row-text:%1: (%3),display:%chart% r: %11[1.1B]B/s / w: %13[1.1B]B/s


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

Logged. Thanks for the bug report.


   
ReplyQuote
(@donagrejja)
Eminent Member Registered
Joined: 2 years ago
Posts: 16
Topic starter  

If anyone is interested.

Temporary workaround:

LOGICALDRIVES=interval:1,diskio:1,include:cdefghi,chart:filled height:2 scale:linear series1:{{(%11/1024)/1024}} color1:%darkgreen% series2:{{Neg((%13/1024)/1024)}} color2:%darkred% row-id:1 width:140, row-text:%1: (%3),display:%chart% {{(%11/1024)/1024}}[1.2f] / {{(%13/1024)/1024}}[1.2f] MB/s

You may correct me on my math if i'm wrong πŸ˜‰


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

where do you see the exception error? does it pop up a dialog?


   
ReplyQuote
(@donagrejja)
Eminent Member Registered
Joined: 2 years ago
Posts: 16
Topic starter  

In the logfile. No dialog.
And the application stops rendering information after the affected graph.


   
ReplyQuote
(@donagrejja)
Eminent Member Registered
Joined: 2 years ago
Posts: 16
Topic starter  

To me it looks like an issue with the graph value similar to one of the netpacketsrate issues i reported.
When the value being fed into the graph is too large it just can't cope with it.

So if you look at the workaround I posted it works if i decrease the value being fed into the graph.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

There's a lot of legacy 32 bit code kicking around in there that barfs on big numbers, this is such a case. Converting them to 64 bit solves the problem.


   
ReplyQuote
(@donagrejja)
Eminent Member Registered
Joined: 2 years ago
Posts: 16
Topic starter  

This bug was fixed in latest version =)

Thanks !


   
ReplyQuote
Glenn's Page