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

fix: terminate f3d process spawned by F3DShellExtension if its still active after timeout #1291

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

chirag-droid
Copy link
Contributor

@chirag-droid chirag-droid commented Feb 15, 2024

Previous Behaviour

If you previewed a thumbnail that took longer than 8 sec, the thumbnail would return in E_FAIL but wouldn't properly terminate the process associated with it. And continue running in the background.

Current Behaviour

The spawned process is properly terminated.

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a525fd) 96.57% compared to head (ec603b6) 96.57%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1291   +/-   ##
=======================================
  Coverage   96.57%   96.57%           
=======================================
  Files         138      138           
  Lines        8494     8500    +6     
=======================================
+ Hits         8203     8209    +6     
  Misses        291      291           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chirag-droid
Copy link
Contributor Author

related to #300 #441

Copy link
Member

@Meakk Meakk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I'm not a Win32 expert. @mwestphal wdyt?

@chirag-droid
Copy link
Contributor Author

chirag-droid commented Feb 15, 2024

I am sure this only solves a part of the puzzle.

It needs a proper investigation. And its difficult without someone from windows dev team.

The function should return a default icon instead of returning error so windows saves it in cache. Or something like that.

@mwestphal
Copy link
Contributor

f you previewed a thumbnail that took longer than 8 sec,

Is this a Windows limitation ? in any case, the fix is good, there is no reason to leave the process running if Windows is not going ot do anything with it.

Dataset that are too slow to be opened but smaller than the max-size we should study to understand why they are slow, which is why @snoyer is doing in #1292 :)

@mwestphal mwestphal merged commit f59fb8d into f3d-app:master Feb 18, 2024
39 checks passed
@chirag-droid
Copy link
Contributor Author

f you previewed a thumbnail that took longer than 8 sec,

Is this a Windows limitation ? in any case, the fix is good, there is no reason to leave the process running if Windows is not going ot do anything with it.

Its actually a timeout set in the code. The timeout can be changed by a compile definition.

In CMakeLists.txt it is set to 8000ms

@chirag-droid
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants