Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PT Run] Crash in thumbnail provider #38199

Open
htcfreek opened this issue Mar 27, 2025 · 4 comments
Open

[PT Run] Crash in thumbnail provider #38199

htcfreek opened this issue Mar 27, 2025 · 4 comments
Labels
Issue-Bug Something isn't working Priority-1 Bug that is high priority Product-PowerToys Run Improved app launch PT Run (Win+R) Window Severity-Medium PowerToys is crashing Status-Reproducible This issue was reproduced by a maintainer

Comments

@htcfreek
Copy link
Collaborator

Microsoft PowerToys version

0.90.0-DEV

Installation method

Dev build in Visual Studio

Running as admin

No

Area(s) with issue?

PowerToys Run

Steps to reproduce

Image

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Other Software

No response

@htcfreek htcfreek added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 27, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@htcfreek htcfreek added Product-PowerToys Run Improved app launch PT Run (Win+R) Window Status-In progress This issue or work-item is under development Priority-1 Bug that is high priority Status-Reproducible This issue was reproduced by a maintainer Severity-Medium PowerToys is crashing and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 27, 2025
@htcfreek htcfreek assigned htcfreek and unassigned htcfreek Mar 27, 2025
@htcfreek
Copy link
Collaborator Author

This might help for logging but still stop program execution in debugging mode.

            catch (COMException ex)
            {
                Log.Exception($"Error while extracting thumbnail for {fileName}", ex, MethodBase.GetCurrentMethod().DeclaringType);
                throw;
            }

@htcfreek htcfreek removed the Status-In progress This issue or work-item is under development label Mar 27, 2025
@zadjii-msft
Copy link
Member

Is this the CharSet = CharSet.Unicode thing from zadjii-msft#573?

@htcfreek
Copy link
Collaborator Author

@zadjii-msft
If the code from above is added, the following is written to the log file:

[2025-03-27 17:48:50.8680] [ERROR] [D:\AppDev\Github\htcfreek\PT_TdpCFromats\src\modules\launcher\Wox.Infrastructure\Image\WindowsThumbnailProvider.cs::147]
-------------------------- Begin exception --------------------------
Message: Error while extracting thumbnail for C:\Users\Heiko\.lesshst

Exception full name  : System.Runtime.InteropServices.COMException
Exception message    : The data necessary to complete this operation is not yet available. (0x8000000A)
Exception stack trace:
   at Wox.Infrastructure.Image.WindowsThumbnailProvider.GetHBitmap(String fileName, Int32 width, Int32 height, ThumbnailOptions options) in D:\AppDev\Github\htcfreek\PT_TdpCFromats\src\modules\launcher\Wox.Infrastructure\Image\WindowsThumbnailProvider.cs:line 140
Exception source     : Wox.Infrastructure
Exception target site: IntPtr GetHBitmap(System.String, Int32, Int32, Wox.Infrastructure.Image.ThumbnailOptions)
Exception HResult    : -2147483638
-------------------------- End exception --------------------------


[2025-03-27 17:48:50.8680] [ERROR] [D:\AppDev\Github\htcfreek\PT_TdpCFromats\src\modules\launcher\Wox.Infrastructure\Image\WindowsThumbnailProvider.cs::147]
-------------------------- Begin exception --------------------------
Message: Error while extracting thumbnail for C:\Users\Heiko\.bash_history

Exception full name  : System.Runtime.InteropServices.COMException
Exception message    : The data necessary to complete this operation is not yet available. (0x8000000A)
Exception stack trace:
   at Wox.Infrastructure.Image.WindowsThumbnailProvider.GetHBitmap(String fileName, Int32 width, Int32 height, ThumbnailOptions options) in D:\AppDev\Github\htcfreek\PT_TdpCFromats\src\modules\launcher\Wox.Infrastructure\Image\WindowsThumbnailProvider.cs:line 140
Exception source     : Wox.Infrastructure
Exception target site: IntPtr GetHBitmap(System.String, Int32, Int32, Wox.Infrastructure.Image.ThumbnailOptions)
Exception HResult    : -2147483638
-------------------------- End exception --------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Priority-1 Bug that is high priority Product-PowerToys Run Improved app launch PT Run (Win+R) Window Severity-Medium PowerToys is crashing Status-Reproducible This issue was reproduced by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants