files-community / Files

Building the best file manager for Windows
https://files.community
MIT License
33k stars 2.11k forks source link

Bug: Preview app crashing when opening preview panel #15505

Open CAPSLOOCK opened 1 month ago

CAPSLOOCK commented 1 month ago

Description

The app is crashing or freezing every time i'm opening the preview pannel for a .docx/.xlsx/.pptx file. For some other types of files, the app doesn't crash but nothing is displayed, e.g. for .pdf files the app seems to be running forever, without showing anything.

Steps To Reproduce

  1. Open the app for the first time after launch
  2. Select a file (e.g. .docx/.xlsx/.pptx file in my case)
  3. Open the preview panel
  4. Try to see the preview

Requirements

Files Version

3.4.4.0

Windows Version

26120.680 (24H2)

Log File

debug.log

Josh65-2201 commented 1 month ago

Thanks for the report, I've added this to the project board.

yaira2 commented 1 month ago

@CAPSLOOCK is this an issue in the stable version?

yaira2 commented 1 month ago

Fyi @0x5bfa

CAPSLOOCK commented 1 month ago

@yaira2 no, in the stable version, everything seems OK for the .xlsx and .docx files. But, a freeze occurs when returning to the details panel after viewing the preview for large .pptx files in my case (but this seems to be more to do with the application's performance than a bug). Also, nothing is displayed on preview .pdf files either, as in the preview app version.

0x5bfa commented 1 month ago

How big your pptx file is?

And I can’t preview PDF, is there need to external library?

Josh65-2201 commented 1 month ago

You would need a program to give PDF previews. Power Toys works for me with it.

CAPSLOOCK commented 1 month ago

https://github.com/files-community/Files/assets/170892796/14650352-08a7-487e-84eb-32158a2a4604

0x5bfa commented 1 month ago

I see. Nvm about my question. @yaira2 I’m not sure this problem is caused by my change or gave’s.

with only large .pptx. And

Tell me the size. I’ll try to reproduce

CAPSLOOCK commented 1 month ago

@0x5bfa The file is about 30Mb, but something weird happen actually, with the edge of the app, see the video to understand well. I have exactly the same problem with the stable version.

https://github.com/files-community/Files/assets/170892796/fe424fac-8202-4df8-898a-eef21a780429

The 'HELLO WORLD' file is only 1 slide and 33 kb large.

0x5bfa commented 1 month ago

Can you reproduce in docx and xlsx file?

yaira2 commented 1 month ago

We hope to solve this issue, but it's good to hear this isn't a new regression.