Crash frequently while use script to manage my files with DOpus13.4

I'm facing terrible crash while I use DOpus to manage my files, the most things I do is almost like the following code:

Dim objCmd
Set objCmd = DOpus.CreateCommand
objCmd.SetSourceTab (DOpus.Listers.lastactive.activetab)
'...
objCmd.ClearFiles()
objCmd.RunCommand("Select * DESELECT")
For Each selItem In DOpus.Listers.lastactive.activetab.files
'...
' if match the conditions then put to file list.
objCmd.AddFile selItem
'....
Next
objCmd.RunCommand("Select FROMSCRIPT")
objCmd.RunCommand("Select NOPATTERN HIDEUNSEL")
objCmd.SetDest(dstPath)
objCmd.RunCommand("Copy MOVE")

It will crash in several minutes while I use DOpus, I want to report the problem to someone, so whom I can send email to and what log files I need to report?

Btw, the view panel was opened.

This script looks incomplete. Can you post the full version so we can try using it?

I've tried and get a easy way to get the bug, details are as follows:

  1. I've put more than 200 image files in the folder.
  2. Set view mode to "Thumb"
  3. Open view panel
  4. Create a button and put the following code in the script window, and close the script window.
Option Explicit

Function OnClick(ByRef clickData)

    Dim objCmd, i, selItem, wsh
    Set objCmd = DOpus.CreateCommand
    objCmd.SetSourceTab (DOpus.Listers.lastactive.activetab)

    For i = 1 to 10
        objCmd.ClearFiles()
        objCmd.RunCommand("Select * DESELECT")
        For Each selItem In DOpus.Listers.lastactive.activetab.files
            If CLng(selItem.size.val) Mod CInt(10 * Rnd + 2) = 0 Then
                objCmd.AddFile selItem
            End If
        Next
        objCmd.RunCommand("Select FROMSCRIPT")
        objCmd.RunCommand("Select NOPATTERN HIDEUNSEL")
        objCmd.RunCommand("Go REFRESH=source")
    Next

End Function
  1. Now click the button, and when the files show and hide, just try to click some file, and you many get the crash.

I've just tried, and this crash is still in DOpus 13.4.1 beta.

Hasn't crashed here so far.

Were any crash logs created? Automatic crash logs (for bug reports)

By the way, you should normally use DOpus.Listers.lastactive.activetab in an OnClick script. That could get a random window if you click somewhere else while the script is running. The clickData object provides you with both the active tab and a Command object which is pre-configured to use the active tab. Use those instead of creating a new Command and changing its source.

(I assume the rest of the script isn't the real one you're using, but something made to demonstrate the bug, since what it's doing doesn't really make sense.)

I've already send the dump files to crashdumps@gpsoft.com.au, hope it will help.

The older one is created by my normal operation, and the latest one is created when I debug the issue use the crazy code above.

I'm manage my photos these days, and mark some keywords in the filename, move the useless photos to a trash folder(not the trash of windows), move some other photos to the folder where they should in.

So, I use a button to show a Dialog which I create by Script Editor, this dialog have several function area: renaming, moving, file timestamp fixing and so on. The DOpus.Listers.lastactive.activetab is more suitable, because the Dialog always showing, and I reselect files frequently, also I need work in deferent tabs, the clideData only get the first status when the Dialog popup, if I move to other tab rather than the one when I click the button, it will not work correctly.

We've made a change in 13.4.2, please see if it helps.

Unfortunately, I've tried, and crash again, the dumps have sent to crashdumps@gpsoft.com.au yet, hope it helps.

Crash again with DOpus 13.4.2 beta, just simply open the PDF file.
Step 1: Open the view panel of DOpus
Step 2: Download offline manual of DOpus from https://cdn.gpsoft.com.au/files/Opus12/Opus12_Reference_Manual.zip
Step 3: unzip the zip file and get a PDF file
Step 4: Select the PDF file, and wait for a while
Step 5: Right click the PDF file and select "Open with ... " , and don't select any sub menu of "Open with..." just wait for a while, it will popup a error window like following
image

Btw, the dump file already sent email.

In the last step, you need click any application that in "Open with...", and when the pdf file is opened by the application, the error popup.

This last one is crashing in a third-party DLL called XCShInfo.x64.dll, which is a shell extension installed by something called "Tracker Software".

I think not simply the 3rd part software cause this crash, almost all of the application to open a pdf file while use "Open with..." will popup that error window.
image

Btw, dump files already send to the email address.

Same problem. Try uninstalling the Tracker Software.

I don't doubt what you're saying, but this is somewhat surprising. Tracker Software is the maker of PDF-XChange PDF Editor. I use it and, based on past posts, so do other Opus users. I'm not currently having any issues with it and, to my knowledge, there haven't recently been any other posts here involving it,

@tyysoft do you have the current version of PDF-XChange PDF Editor.?

It may also depend on the PDF files.

If the DLL is already up to date, sending the same DMPs to the team who makes the DLL should let them analyse what’s going wrong.

The PDF caused crash was fixed by reinstall the PDF-XChange PDF Editor!

2 Likes

New crash while rename a video file, already sent the dump file, hope it helps.

Please try 13.4.3 to see if that helps with the original issue.

Ha ha, Great! No crash anly more!

3 Likes

Crash again while click(select) video file and keep preview panel open, already send dump file to email, please check, thanks!