fifonik / FFMetrics

Visualizes Video Quality Metrics (PSNR, SSIM & VMAF) calculated by ffmpeg.exe
562 stars 22 forks source link

repeatable crash - distorted files click+drag #135

Closed joeymavity closed 3 months ago

joeymavity commented 4 months ago

Steps to reproduce:

  1. Add a single reference file so that the reference area is valid
  2. Add a single distorted file to the project
  3. Click the file list item and drag to the column header

Expected behavior: Nothing happen

Actual behavior: App crashes

Version: 1.4.9b

Additional notes:

It's a weird edge case but my clumsy fingers have made it happen twice, so I thought I'd pass it along, especially since it doesn't happen in many cases. For instance, if multiple distorted files are in the list, or if no reference file is open. I hope this is helpful, it's pretty easily reproducible, though obviously a low priority.

fifonik commented 4 months ago

Hm. Unable to re-produce.

joeymavity commented 4 months ago

I thought I wasn't able to, then got it to repeat again. I'm on Windows 10.

  1. Open FFMetrics
  2. Start a new project (ctrl+shift+N)
  3. Drag reference file to Reference 'path to file'
  4. Drag two files to 'distored' area, let media info load
  5. Delete one of the files (del)
  6. Drag distorted file to 'distorted' area, let media info load
  7. Drag distorted file to column header (sometimes I had to do this twice)

This 'feels' less perfectly repeatable today than it did last night, but I've also attached a file to help. I have such anxiety about uploading bad bug reports to projects 😅

https://github.com/fifonik/FFMetrics/assets/8808740/d5323e57-430b-4de6-9136-7a66507896a8

fifonik commented 4 months ago

Thanks, I was able to re-produce it twice. Unfortunately, not really sure how to re-produce the issue reliably that is required to check if my code change will fix it. Still trying.

fifonik commented 4 months ago

I've made some changes and hope it fixed the issue. Can send you executable for testing if you like.

joeymavity commented 4 months ago

Happy to test - what's the best way?

fifonik commented 4 months ago

Here you are. Please let me know when you download it. Thanks. {link deleted}

joeymavity commented 4 months ago

Downloaded, sorry for the delay

joeymavity commented 4 months ago

I can't promise it's fixed - it wasn't as perfectly reproducible as initially thought - but none of my attempts have broken it so far. I included some weird dumb stuff, including multi-select, weird ordering/deleting, etc. And all seemed to be fine. I'll keep working with this version and let you know if something comes up, otherwise this seems fixed. I won't close this in case you want to tie it to code changes or something, but you obviously can feel free to.

fifonik commented 4 months ago

Thanks for testing. Lets keep it open for a while.

fifonik commented 3 months ago

The change implemented in 1.5.0 beta 1 (just released).