question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: MacOS - Window Spawn Loop

See original GitHub issue

What happens:

When starting FastFlix bin, after the UI loads it loads a secondary UI window. This process repeats itself (endlessly).

Attempted to kill with:

sudo killall FastFlix

While the killall was able to close all of the windows, they continued to spawn. Only solution was to remove executable permissions from the FastFlix bin:

chmod -x ./FastFlix

After removing exe permissions, the spawn loop was broken and I was able to re-add the exe permissions. Spawn loop did not start again until I manually invoked ./FastFlix again.

Environment Details:

  • FastFlix Version: 4.0.3
  • MacOS Big Sur 11.1 (20C69)
  • python --version Python 2.7.16
  • python3 --version Python 3.9.1
  • ffmpeg -version ffmpeg version 4.3.1 Copyright © 2000-2020 the FFmpeg developers built with Apple clang version 12.0.0 (clang-1200.0.32.27) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100

Steps to reproduce:

chmod +x ./FastFlix
./FastFlix

Logs

$> ./FastFlix

2020-12-30 00:43:33 MacBook-Pro.local fastflix-core[58524] INFO Starting FastFlix 4.0.3
2020-12-30 00:43:34 MacBook-Pro.local fastflix[58527] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -version
2020-12-30 00:43:35 MacBook-Pro.local fastflix[58527] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -hide_banner -encoders
qt.qpa.fonts: Populating font family aliases took 734 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost.
2020-12-30 00:43:37 MacBook-Pro.local fastflix-core[58528] INFO Starting FastFlix 4.0.3
2020-12-30 00:43:38 MacBook-Pro.local fastflix[58533] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -version
2020-12-30 00:43:38 MacBook-Pro.local fastflix[58533] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -hide_banner -encoders
qt.qpa.fonts: Populating font family aliases took 750 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost.
2020-12-30 00:43:40 MacBook-Pro.local fastflix-core[58534] INFO Starting FastFlix 4.0.3
2020-12-30 00:43:42 MacBook-Pro.local fastflix[58538] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -version
2020-12-30 00:43:42 MacBook-Pro.local fastflix[58538] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -hide_banner -encoders
qt.qpa.fonts: Populating font family aliases took 732 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost.
^CTraceback (most recent call last):
  File "fastflix/widgets/main.py", line 1364, in close
KeyboardInterrupt
Traceback (most recent call last):
  File "fastflix/widgets/main.py", line 1364, in close
KeyboardInterrupt
2020-12-30 00:43:44 MacBook-Pro.local fastflix-core[58539] INFO Starting FastFlix 4.0.3
2020-12-30 00:43:47 MacBook-Pro.local fastflix-core[58543] INFO Starting FastFlix 4.0.3
2020-12-30 00:43:49 MacBook-Pro.local fastflix[58546] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -version
2020-12-30 00:43:49 MacBook-Pro.local fastflix[58546] INFO Running command: /usr/local/Cellar/ffmpeg/4.3.1_4/bin/ffmpeg -hide_banner -encoders
qt.qpa.fonts: Populating font family aliases took 734 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
asleeiscommented, Jan 4, 2021

And I’ve confirmed that directly cloning the repo, setting up the python requirements/environment, and running the Python (as noted above)… no issues.

1reaction
TigerC10commented, Jan 1, 2021

So here’s something really interesting… When I clone the repo and run FastFlix from python directly, there’s no issues.

git clone git@github.com:cdgriffith/FastFlix.git
cd FastFlix
python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt
python3 -m fastflix

Might be a pyinstaller thing afterall…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Event Loop problem - Apple Support Communities
Lets say I have a multi-platform application object. It has a method called Run(). Run does NOT return until the application exists.
Read more >
Spawned Ruby process on Windows dies when shell is ...
rb: can be executed via ruby spawner.rb and just spawns a new sub-process. The process creates is loop.rb which is just an endless...
Read more >
Kernel Issues | OpenCore Install Guide - Dortania
Issues surrounding from initial booting the macOS installer to right before the ... Stuck after selecting macOS partition in OpenCore; Getting the error...
Read more >
Parallelize a Bash FOR Loop - Unix & Linux Stack Exchange
Sample task. task(){ sleep 0.5; echo "$1"; }. Sequential runs. for thing in a b c d e f g; do task "$thing"...
Read more >
Allow parallel test runner to work with Windows/macOS ...
but nothing conclusive. My theory is that the memory copying semantics between MacOS and Windows are different and hence the spawn method doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found