RESOURCE NOT OWNED CRASH

Found a bug in "Everything"? report it here
Post Reply
powershellscripter
Posts: 5
Joined: Thu Feb 22, 2024 11:53 pm

RESOURCE NOT OWNED CRASH

Post by powershellscripter »

Following your directive on the -exit -wait switches for the "-exit not being respected" bug report, I built a custom script to implement it and everything seemed to worked accordingly on the server (Windows Server 22). But upon upgrading to the latest update of everything with the -exit -update switches fixed, I decided to bypass my script and utilize the config file manually with powershell and write the database file. Side Note, I reverted back to the previous build of everything after this happened.

Anywho, in powershell console, I ran:

Code: Select all

& "C:\ProgramData\Kane\VoidTools\Everythingx.exe" -config "\\CLOUD-DC1.kane.local\NETLOGON\Programs\VoidTools\configs\KaneTechAZ-Admin.ini" -db "\\CLOUD-DC1.kane.local\NETLOGON\Programs\VoidTools\db\KaneTechAZ-Admin.db" -instance 'KaneTechAZ-Admin' -reindex -save-db-now -startup
Which gave me a BSOD Crash of: RESOURCE NOT OWNED

So I went back and ran my original powershell script which is:

Code: Select all

$Script:rootPath = '\\CLOUD-DC1.kane.local\NETLOGON\Programs\VoidTools'
$Script:Entity = 'KaneTechAZ'
$Script:Folder = 'Admin'
$Script:configFile = "$Entity-$Folder.ini"
$Script:dbFile = "$Entity-$Folder.db"
$Script:iName = "$Entity-$Folder"
$Script:dbLWT = (Get-Item "$rootPath\db\$Entity\$dbFile" -ea si).LastWriteTime



@"
; Please make sure Everything is not running before modifying this file.
[Everything]

status_bar_visible=1
ntfs_volume_paths=C:,E:
ntfs_volume_guids=\\?\Volume{},\\.\E:
ntfs_volume_roots=,
ntfs_volume_includes=0,0
folders=E:\$Entity\$Folder
folder_subfolders=1
folder_monitor_changes=0
folder_buffer_size_list=65536
folder_rescan_if_full_list=0
folder_update_types=0
folder_update_days=0
folder_update_ats=3
folder_update_intervals=6
folder_update_interval_types=1
folder_multithreaded=1
exclude_folders=*__vers__
db_backup=0
ini_backup=0
csv_backup=0
index=0
options_last_advanced_setting=content_multithreaded_max_memory_percent

"@ | Out-File "$rootPath\configs\$Entity\$configFile" -fo -ea si

while(!(Test-Path "$rootPath\configs\$Entity\$configFile" -ea si)){}




    if(Test-Path "E:\$Entity" -ea si)
    {
        if(!(Test-Path "$rootPath\db\$Entity\$dbFile" -ea si))
        {
            & "C:\ProgramData\Kane\VoidTools\Everythingx.exe" -config "$rootPath\configs\$Entity\$configFile" -db "$rootPath\db\$Entity\$dbFile" -instance $iName -reindex -save-db-now -startup
            while(!(Test-Path "$rootPath\db\$Entity\$dbFile" -ea si)){}
            $Script:dbLWT = (Get-Item "$rootPath\db\$Entity\$dbFile" -ea si).LastWriteTime
        }
        Else{
            & "C:\ProgramData\Kane\VoidTools\Everythingx.exe" -config "$rootPath\configs\$Entity\$configFile" -db "$rootPath\db\$Entity\$dbFile" -instance $iName -reindex -save-db-now -startup
        }


        While($dbLWT -eq (Get-Item "$rootPath\db\$Entity\$dbFile").LastWriteTime){}

        & "C:\ProgramData\Kane\VoidTools\Everythingx.exe" -config "$rootPath\configs\$Entity\$configFile" -db "$rootPath\db\$Entity\$dbFile" -instance $iName -exit -wait

        $Script:dbLWT = (Get-Item "$rootPath\db\$Entity\$dbFile").LastWriteTime


        foreach($DC in (Get-ADDomainController -Filter {Name -ne "$ENV:COMPUTERNAME"}).HostName)
        {

        [void](Robocopy "$rootPath\db\$Entity" "\\$DC\NETLOGON\Programs\VoidTools\db\$Entity" "$dbFile" /XO /R:0 /W:0 /NJS /NJH /NC /NP)

        }


        
    }


and had no crashes. But, running this script; did:

Code: Select all

$Script:rootPath = '\\CLOUD-DC1.kane.local\NETLOGON\Programs\VoidTools'
$Script:Entity = 'KaneTechAZ'
$Script:Folder = 'Admin'
$Script:configFile = "$Entity-$Folder.ini"
$Script:dbFile = "$Entity-$Folder.db"
$Script:iName = "$Entity-$Folder"
$Script:dbLWT = (Get-Item "$rootPath\db\$Entity\$dbFile" -ea si).LastWriteTime



@"
; Please make sure Everything is not running before modifying this file.
[Everything]

status_bar_visible=1
ntfs_volume_paths=C:,E:
ntfs_volume_guids=\\?\Volume{},\\.\E:
ntfs_volume_roots=,
ntfs_volume_includes=0,0
folders=E:\$Entity\$Folder
folder_subfolders=1
folder_monitor_changes=0
folder_buffer_size_list=65536
folder_rescan_if_full_list=0
folder_update_types=0
folder_update_days=0
folder_update_ats=3
folder_update_intervals=6
folder_update_interval_types=1
folder_multithreaded=1
exclude_folders=C:\,__vers__
db_backup=0
ini_backup=0
csv_backup=0
index=0
options_last_advanced_setting=content_multithreaded_max_memory_percent

"@ | Out-File "$rootPath\configs\$Entity\$configFile" -fo -ea si


& "C:\ProgramData\Kane\VoidTools\Everythingx.exe" -config "$rootPath\configs\$Entity\$configFile" -db "$rootPath\db\$Entity\$dbFile" -instance $iName -reindex -save-db-now -startup

not sure what is happening, but this is the dump

Code: Select all

==================================================
Dump File         : 030724-2734-02.dmp
Crash Time        : 3/7/2024 9:00:28 PM
Bug Check String  : RESOURCE_NOT_OWNED
Bug Check Code    : 0x000000e3
Parameter 1       : ffffcb84`b13b0730
Parameter 2       : ffffcb84`b0911080
Parameter 3       : 00000000`00000000
Parameter 4       : 00000000`00000002
Caused By Driver  : cbfs6.sys
Caused By Address : cbfs6.sys+2e3b
File Description  : Callback File System Driver
Product Name      : Callback File System (R)
Company           : /n software, Inc.
File Version      : 6, 1, 184, 118
Processor         : x64
Crash Address     : ntoskrnl.exe+420450
Stack Address 1   : 
Stack Address 2   : 
Stack Address 3   : 
Computer Name     : 
Full Path         : C:\Windows\Minidump\030724-2734-02.dmp
Processors Count  : 4
Major Version     : 15
Minor Version     : 20348
Dump File Size    : 571,556
Dump File Time    : 3/7/2024 9:02:10 PM
==================================================
Not sure how else to get you more information on what the cause of this is.
I thought maybe it may have been RaiDrive since its a cloud storage mounter, but then I removed all traces of the E: Drive out and just scanned the C:\ Drive and the crash still happens
Last edited by void on Fri Mar 08, 2024 5:32 am, edited 1 time in total.
Reason: removed volume guids
Post Reply