rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).

Home Page:https://rubberduckvba.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with JIT-Compiler

RongePartner opened this issue · comments

Rubberduck version information

Rubberduck version [2.5.9.6294]
Operating System: [Microsoft Windows NT 10.0.14393.0, x64]
Host Product: [Microsoft Office x64]
Host Version: [16.0.14332.20546]
Host Executable: [MSACCESS.EXE]

Description
A few seconds after switching to the VBA-Window a Window with the title "Microsoft .NET Framework" pops up.

To Reproduce
Steps to reproduce the behavior:

  1. Office is installed on a Terminal-Server. I start Access, open my program, start the VBA-Window and then the error-message pops up.

Expected behavior
There should be no error message

Screenshots
image

Logfile
JIT_ErrorMessages.txt
RubberduckLog.txt

I've experienced the same issue on version 2.5.9.6291. I've included the error message within the pop-up box. There was no log on my local Rubberduck-VBA install.

Rubberduck version [2.5.9.6291]
Operating System: [Windows 10 Enterprise, x64]
Host Product: [Microsoft Office x64]
Host Version: [22H2 Build: 19045.3324]
Host Executable: [EXCEL.EXE]

Rubberduck_Error_Message.txt

Having same issue.
Just upgraded to version 2.5.9.6291.
Also attempted to uninstall first then after restart reinstalled again, and this issue occurs.
In my case it only happens "once per run" a few seconds after opening the MS VBE from Excel.

Version 2.5.9.6291
OS: Microsoft Windows NT 10.0.19044.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.13127.21216
Host Executable: EXCEL.EXE

image

RubberduckLog.txt

About this issue, on a run i noticed on the RubberduckLog file that the moment the error occurs it was checking for a newer version.

2023-09-20 12:55:12.9398;INFO-2.5.9.6291;Rubberduck.UI.Command.VersionCheckCommand;Executing version check...;

image

the Version Check gets Canceled (after 5 seconds) and since it is not handled the error dialog is shown.
Why the Version Check is taking longer then 5 seconds, i have no idea.

As a workaround i disabled the option to check for a newer version and the error message is no longer displayed.

image

As a fix i would suggest increasing the CancellationToken TimeSpan and handle the exception with t.isCanceled

No idea why, but the site suddenly died last weekend; the URL being hit by the version check service was responding with HTTP500.
I've configured the website to query the backend API hosted on Azure (.net6 running on Linux in a Docker container) and the version check URL is now returning the expected version string; the site itself is still broken in several places, but it's at least serving a home page and fetching the download URLs.

The version check service definitely needs to handle exceptions, gosh what an oversight!

@vba-excel: Thanks for the investigation and the screenshots how to fix it. Great job!
@retailcoder: When something always works I wouldn´t write an errorhandler as well. So I understand. Despite of all: Rubberduck is a great product!

Nah, this is network I/O, it can reasonably fail for any random reason... I have no excuse here! 😅 thanks for the kind words!

Just tried out Rubberduck v2.5.9.6296-pre

Its working fine, no longer shows the popup error.
The Exception occurs and its properly logged.

image

@retailcoder Ty for you great work, and Ty for Rubberduck !

RubberduckLog.txt

@RongePartner Thanks it works! @retailcoder Excellent product, you really understand VBAers!