Double Crash while running script column

Opus crashed while running a script column that uses PowerShell. The second crash occurred immediately (!) after restarting Opus.

ID: 351, 352, 353, 354

It looks like it's happening when retrieving the value of a variable called PSDI - does that make sense? What type of value/object does it hold?

Yes! This variable holds a JScript array.

Here's the script column that caused the crashes:

ColumnPowerShellDiskInfo.js.txt (5.7 KB)

This newer version appears to be more stable, despite only minor changes to the array:

ColumnPowerShellDiskInfo2.js.txt (6.1 KB)

XML
<?xml version="1.0"?>
<button backcol="none" display="both" hotkey_label="yes" label_pos="right" textcol="none">
	<label>Set COLUMNS PS</label>
	<tip>scp:PowerShellDiskInfo/FriendlyName</tip>
	<icon1>#set</icon1>
	<function type="normal">
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/Number(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=sh:physicaldevice(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/DeviceID(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/AllocatedSize(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/BusType(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/CanPool(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/FirmwareVersion(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/FriendlyName(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/HealthStatus(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/IsBootDisk(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/IsSystemDisk(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/LogicalSectorSize(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/MediaType(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/Model(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/Number(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/OperationalDetails(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/OperationalStatus(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/PartitionStyle(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/PhysicalSectorSize(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/PowerProtected(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/SerialNumber(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/Size(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/SpindleSpeed(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/UniqueId(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/Usage(!,a,0)</instruction>
		<instruction>Set COLUMNSTOGGLE=scp:PowerShellDiskInfo/DriveId(!,a,0)</instruction>
	</function>
</button>
1 Like