Bug 419869 - Freezes for 3 minutes at startup if outgoing traffic blocking through iptables is enabled
Summary: Freezes for 3 minutes at startup if outgoing traffic blocking through iptable...
Status: RESOLVED NOT A BUG
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 19.04.3
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-09 06:12 UTC by inFlowia Lab.
Modified: 2020-06-03 08:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description inFlowia Lab. 2020-04-09 06:12:36 UTC
SUMMARY
If the blocking of outgoing traffic using the rule in iptables is enabled:
sudo iptables -I OUTPUT -m owner --uid-owner your_user_name -j DROP
then when you open the image in the file manager using gwenviev, it does not open, but freezes for 3 minutes or longer.

STEPS TO REPRODUCE
1. run in terminal:
sudo iptables -I OUTPUT -m owner --uid-owner your_user_name -j DROP
2. go to the image directory in the file manager
3. open image with gwenviev

OBSERVED RESULT
Nothing will happen for at least 3 minutes. In the list of processes the process of gwenviev will be visible.

EXPECTED RESULT
Gvenviev should open immediately and show the image

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: this behaves like this on all distributions and shells that I used:
Kubuntu 18.04.2 64-bit
UbuntuStudio 18.04.2 64-bit
UbuntuStudio 19.10 64-bit
Xubuntu 19.10 64-bit
Xubuntu 19.10 64-bit with Plasma
Xubuntu 19.10 64-bit with Mate

ADDITIONAL INFORMATION
If, during the operation of the firewall blocking rule, you start the Gwenviev file manager and not through the shortcut in the application menu, it will open immediately, but when you try to go to the image directory, it will freeze for the same 3 minutes.

This is a very critical bug for me. I use this rule to block traffic and because of this I can not normally use gwenviev as a default image viewer. To use them I have to disconnect the network and delete the blocking rule.
Comment 1 Kai Uwe Broulik 2020-04-09 07:32:38 UTC
Can you get a backtrace to see where it's blocking?
Comment 2 inFlowia Lab. 2020-04-10 09:52:14 UTC
(In reply to Kai Uwe Broulik from comment #1)
> Can you get a backtrace to see where it's blocking?
Sorry, I don’t understand what trace we are talking about. If you say how to do it, I will.
Comment 3 inFlowia Lab. 2020-06-03 08:16:43 UTC
Solution found. I had a similar problem with Ardour. https://tracker.ardour.org/view.php?id=8160
Apparently Gwenview also uses a localhost for some operations. You need to add permission for outgoing traffic to the localhost:
-A OUTPUT -d 127.0.0.1 -j ACCEPT