Closed nkatsidis closed 3 years ago
On Linux via App-image 2.8.12 the same... the same behaviour as 2.8.10 before.
The Movies are on a Network Share, by pressing "Filme neu laden" the App crashed. maybe the Title could be changed, not only for Windows.
i must update my report...
i left mediaelch running... and although it displayed Program not responding in Windows.. Scanning was completed normally .....
but ofc this requires fixing :)
Hi,
thank you for reporting this issue.
@nkatsidis How long does it normally take for MediaElch to finish scraping your movies?
@Bitsauger Does MediaElch really crash, i.e. the app closes, or does it just not respond?
In v2.8.12 I fixed a crash in MediaElch. However, that also had the side effect that MediaElch may not seem responding.
Please let me know whether MediaElch really crashes or just not responds. In the latter case, I know how I could fix it. In the former, I need more information.
@bugwelle
I loaded the Appimage and started again. Now after a short Freeze it worked as it should. The problem is that not all Network shares were mounted and it looks like the App stops working. See Picture.
When all Shares are connected it works faster... but on 2.8.6 there was no freeze or notification, if not all shares were connect.
(I have more than one share with Movies, so when for example only one is mounted, the following message will appear.)
The problem is that not all Network shares were mounted and it looks like the App stops working.
Thanks. That may help to debug this issue.
Hi,
I've prepared a possible fix in #1331.
Could you please test this version?
It isn't faster than the current version, but MediaElch should not freeze anymore.
Please let me know if:
Thanks.
@bell07 You helped to debug a crash in v2.8.8 and v2.8.10. Could you test #1331, please? :-) I tested it on macOS and Kubuntu 20.04 with ASAN enabled. No crash, no freezing, etc. If it works for you, then I'm sure that I haven't missed (yet another) race condition.
Regards,
Andre
Tried the 3064aea9aa14e05721a7b1aad6f684cd814dfb84 with your file-searcher branch. MediaElch is hanging on start with never ending File scanner popup "Searching for movies...(1/2)" Full console output is:
2021-05-16 20:27:05.401 DEBUG [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/settings/AdvancedSettingsXmlReader.cpp:23] | Loading advanced settings from: FilePath("/home/user/.local/share/kvibes/MediaElch/advancedsettings.xml")
2021-05-16 20:27:05.403 WARN [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/settings/AdvancedSettingsXmlReader.cpp:33] | [AdvancedSettings] advancedsettings.xml not found at "/home/user/.local/share/kvibes/MediaElch/advancedsettings.xml"
2021-05-16 20:27:05.403 DEBUG [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/settings/Settings.cpp:82] | Advanced settings:
locale: German (Germany)
debugLog: false
logFile:
forceCache: false
stylesheet: <bundled>
sortTokens: Der, Die, Das, The, Le, La, Les, Un, Une, Des
movieFilters: *.mkv, *.mk3d, *.avi, *.mpg, *.mpeg, *.mp4, *.m2ts, *.disc, *.m4v, *.strm, *.dat, *.flv, *.vob, *.ts, *.iso, *.ogg, *.ogm, *.rmvb, *.img, *.wmv, *.mov, *.divx, VIDEO_TS.IFO, *.webm, index.bdmv, *.wtv
concertFilters: *.mkv, *.mk3d, *.avi, *.mpg, *.mpeg, *.mp4, *.m2ts, *.disc, *.m4v, *.strm, *.dat, *.flv, *.vob, *.ts, *.iso, *.ogg, *.ogm, *.rmvb, *.img, *.wmv, *.mov, *.divx, VIDEO_TS.IFO, *.webm, index.bdmv, *.wtv
tvShowFilters: *.mkv, *.mk3d, *.avi, *.mpg, *.mpeg, *.mp4, *.m2ts, *.disc, *.m4v, *.strm, *.dat, *.flv, *.vob, *.ts, *.iso, *.ogg, *.ogm, *.rmvb, *.img, *.wmv, *.mov, *.divx, VIDEO_TS.IFO, *.webm, index.bdmv, *.wtv
subtitleFilters: *.idx, *.sub, *.srr, *.srt, *.ass, *.ttml
genreMappings:
audioCodecMappings:
aac lc: aac
mpa1l2: mp2
mpa1l3: mp3
videoCodecMappings:
avc: h264
v_mpeg4/iso/avc: h264
certificationMappings:
studioMappings:
countryMappings:
writeThumbUrlsToNfo: true
episodeThumb dimensions:
width: 400
height: 300
bookletCut: 2
useFirstStudioOnly: false
exclude patterns:
2021-05-16 20:27:05.435 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/globals/ScraperManager.cpp:139] | [TvScraper] Initializing "TMDb TV"
2021-05-16 20:27:05.436 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/globals/ScraperManager.cpp:139] | [TvScraper] Initializing "TheTvDb"
2021-05-16 20:27:05.436 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/globals/ScraperManager.cpp:139] | [TvScraper] Initializing "IMDb TV"
2021-05-16 20:27:05.436 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/globals/ScraperManager.cpp:139] | [TvScraper] Initializing "TVmaze"
2021-05-16 20:27:06.532 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/ui/imports/DownloadsWidget.cpp:83] | [DownloadsWidget] Start scanning for imports/downloads. Start Timer.
2021-05-16 20:27:07.025 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/ui/main/MainWindow.cpp:76] | MediaElch version "2.8.13-dev" starting up
2021-05-16 20:27:07.459 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/globals/ScraperManager.cpp:142] | [TvScraper] Initialized: "IMDb TV"
2021-05-16 20:27:07.465 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/ui/imports/DownloadsWidget.cpp:474] | [DownloadsWidget] Scanning for imports/downloads took: 933 ms
2021-05-16 20:27:07.465 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/ui/imports/DownloadsWidget.cpp:492] | [DownloadsWidget] Updating imports/downloads lists: 0 ms
2021-05-16 20:27:07.470 DEBUG [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/tv_shows/TvShowFileSearcher.cpp:40] | [TvShowFileSearcher] Adding TV show directory "/home/user/Videos/Serien"
2021-05-16 20:27:07.764 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/movies/file_searcher/MovieFileSearcher.cpp:55] | [Movies] Start reloading movies from cache
2021-05-16 20:27:07.765 DEBUG [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/scrapers/concert/tmdb/TmdbConcert.cpp:314] | TMDb base url: "http://image.tmdb.org/t/p/"
2021-05-16 20:27:07.766 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/globals/ScraperManager.cpp:142] | [TvScraper] Initialized: "TMDb TV"
2021-05-16 20:27:07.966 DEBUG [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/scrapers/tv_show/thetvdb/TheTvDbApi.cpp:51] | [TheTvDbApi] Received JSON web token
2021-05-16 20:27:07.966 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/globals/ScraperManager.cpp:142] | [TvScraper] Initialized: "TheTvDb"
Thank you very much! This helps a lot. I'm a bit surprised that nothing happens. Maybe a deadlock or an issue with signals/slots. But at least no crash 😅
Can you abort the file searcher? (escape key)
How many hardware threads does your CPU have? :)
I can stop the searcher using escape key, but get the same issue if I click to reload:
2021-05-16 21:11:11.669 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/movies/file_searcher/MovieFileSearcher.cpp:55] | [Movies] Start reloading movies from disk
2021-05-16 21:11:11.674 INFO [/var/tmp/portage/media-video/mediaelch-9999/work/mediaelch-9999/src/movies/file_searcher/MovieDirectorySearcher.cpp:70] | [Movie] Scanning directory: "/home/user/Videos/Filme"
Tested on AMD A8-7600 Radeon R with 4 cores without Hyper-Threading.
OK, thanks! Seems I was not careful enough... I should really avoid last minute changes. Those leaks didn't arise when I tested it on my Linux machine.
Ok, my coding was correct but I forgot to initialize an std:.atomic_bool
. And without setting it explicitly to false
on construction, it's value is undefined (i.e. depends on the platform and what's in memory already).
I reproduced the issue in a virtual machine. #1331 now contains the fixed state.
@bell07 Thank you for testing MediaElch. Could you give https://github.com/Komet/MediaElch/commit/d9e3c29fcf4ffe2bbf698fa039d0afbb94e21efb one last shot? :-) I'm now pretty sure that it works and is thread safe.
Tried the last commit. Now all is fine ;-). The initial load and reload does work, for movies and shows. No memory leaks messages on exit.
Great!
Wow, no memory leaks? At least I get a few that aren't MediaElch's fault (some in a system font loader, some in QMLEngine).
I'll merge #1331 . Thank you very much for testing it. :-)
Windows 10.. Downloaded latest 2.8.12 latest and 2.8.13
My movies are on network.. When i run Mediaelch movie window is blank. Trying to do a new scan but program crashed...