f3d: Application fails when has to generate thumbnail for certain 3mf file because of a crash on exit
Describe the bug Installed on Windows 11. I installed the app with the option to create thumbnails. There are 3mf files in the directory that are created by Prusa Slicer 2.6.x and 2.7.x applications. File Explorer spins the loading wheel icon in the upper left for a while, when refreshing the contents of the directory window (F5 key), but the thumbnails for the 3mf files are not created.
Interesting is, if I drop the 3mf file into opened F3D application, the model in 3mf file is shown. It also works in different way: if I click on 3mf file right mouse, select “open with” choose or locate F3D app, then aso application open and show the model with any problem.
I looked in the Windows event log for applications and found the error listings for F3d.exe This is what one of the listings looks like:
Faulting application name: f3d.exe, version: 0.0.0.0, time stamp: 0x65ad7026
Faulting module name: ntdll.dll, version: 10.0.22621.3085, time stamp: 0xbced4b82
Exception code: 0xc0000374
Fault offset: 0x000000000010c7a9
Faulting process ID: 0x0x9A0
Faulting application start time: 0x0x1DA6EE7DEFA4060
Faulting application path: C:\Program Files\F3D\bin\f3d.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report ID: b42b1aee-fc6f-41b1-a803-f709314cb79e
Faulting package full name:
Faulting package-relative application ID:
The fault offset and exception code are always the same. So it crashes at the same place.
To Reproduce Steps to reproduce the behavior:
- I uninstall the application, restarted computer and installed it again with ability to create thumbnail enabled
- open file explorer and navigate to folder with some 3d files including 3mf files
- if i am first time at this folder, I see that windows is generating thumbnails. It took a while.
- I see that step or stl files now have correct thumbail, but 3mf file not
- go to the event viewer calling eventvwr.exe program, navigate to the Windows logs/Applications and see the last error at top of the log
- log Ii found includes report about f3d.exe crash.
Expected behavior Expected is to see thumbnails of 3mf files.
System Information:
- OS: Winfdows 11 Pro Version 10.0.22631 Build 22631
- CPU: Processor AMD Ryzen 9 5900X 12-Core Processor, 3701 Mhz, 12 Core(s), 24 Logical Processor(s)
- GPU and GPU driver: Name NVIDIA GeForce GTX 1060 6GB, Driver Version: 31.0.15.4633
- Installed Drivers C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_866484083fc526af\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_866484083fc526af\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_866484083fc526af\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_866484083fc526af\nvldumdx.dll
F3D Information
Paste the content of f3d --version
:
F3D 2.3.0
F3D - A fast and minimalist 3D viewer Version: 2.3.0. Build date: 2024-01-21 19:27:08. Build system: Windows 64-bits. Compiler: MSVC 19.37.32826.1. External rendering module: ON. Raytracing module: ON. VTK version: 9.3.0-1702-geb008dfe7b (date: 20240111). Copyright © 2019-2021 Kitware SAS. Copyright © 2021-2024 Michael Migliore, Mathieu Westphal. License BSD-3-Clause. By Michael Migliore, Mathieu Westphal and Joachim Pouderoux.
Additional context 3mf files in my case are created in Prusa Slicer, currently I am using the latest version 2.7.2.
this is how looks my folder with sample case. STL and STEP has valid and correct thumbnal, 3MF not.
here is screenshot of event log:
here is screenshot shown opened 3mf file in F3D app, no problem.
and here is zipped that 3mf file, maybe it help to find the problem. calibration-cube.zip
I have a lot of 3mf files and they all have the same problem with thumbnails.
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Comments: 22 (12 by maintainers)
So lets wait for their next minor release to close this: https://github.com/assimp/assimp/discussions/5489
Great job guys, thanks for solving it out 😉 looking forward to the next release 😉
Fixed in assimp master already, updating assimp on the next release should fix it: https://github.com/assimp/assimp/pull/5361
Sounds like the thumbnailers crash on exit then
I found some interesting behavior. I have attached a zip file with files 01.3mf (no preview generated) and 02.3mf (preview generated).
Scenario 1, procedure:
And then this, the scenario (procedure with reversed file order):
files.zip
The files are very small (~300kB), it’s not related.
Running the same command than the thumbnailer manually works:
f3d --output test.png --config=thumbnail --verbose=quiet --resolution 200,200 calibration-cube.3mf
🤔I reproduce the issue. Thank you for reporting, I’m adding that to the next release project.