evilsocket / evilsocket/opensnitch
[Bug Report] Crash when trying to delete a rule from applications
- Dominant language
- Python
- Stars
- 14.1k
- Forks
- 665
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug:
The app crashed when trying to delete an entry from the applications tab.
Include the following information:
- OpenSnitch version: ~ OpenSnitch GUI - 1.7.2 ~ protobuf: 7.35.1 - grpc: 1.82.1
- OS: Arch Linux
- OS version: N/A
- Window Manager: Hyprland
- Kernel version: Linux archlinux 7.1.3-arch1-1 #\1 SMP PREEMPT_DYNAMIC Tue, 07 Jul 2026 05:05:48 +0000 x86_64 GNU/Linux
### To Reproduce:
- Add rule when an app tries to connect to the internet and the popup shows up.
- Open the GUI
- Go to `Applications` and select the entry you want to remove
- Press `delete` and click OK on the dialog that shows up
- *App freezes a bit and then crashes*
### Post error logs:
```text
Loaded network aliases from /usr/lib/python3.14/site-packages/opensnitch/utils/network_aliases/network_aliases.json
~ OpenSnitch GUI - 1.7.2 ~
protobuf: 7.35.1 - grpc: 1.82.1
--------------------------------------------------
QT_AUTO_SCREEN_SCALE_FACTOR: True
gRPC Max Message Length: None
Bytes: 4194304
is new file, or IN MEMORY, setting initial schema version
setting schema version to: 3
setting schema version to: 3
Setting journal_mode: OFF
Setting DB memory optimizations
schema version: 3
db schema is up to date
actions.__init__ exception: [Errno 17] File exists: '/home/elnix/.config//opensnitch/actions/'
actions.__init__ exception: [Errno 17] File exists: '/home/elnix/.config//opensnitch/actions/'
Loading translations: /usr/lib/python3.14/site-packages/opensnitch/utils/../i18n locale: en_US
exception loading ipasn db: No module named 'pyasn'
Install python3-pyasn to display IP's network name.
actions.__init__ exception: [Errno 17] File exists: '/home/elnix/.config//opensnitch/actions/'
Qt standardIcon exception: security-medium , 'security-medium'
Qt standardIcon exception: security-low , 'security-low'
Qt standardIcon exception: address-book-new , type object 'QStyle' has no attribute ''
Qt standardIcon exception: system-run , type object 'QStyle' has no attribute ''
Using server address: unix:///tmp/osui.sock auth type: simple
Setting daemon DefaultAction to: deny
new node connected, listening for client responses... /local
[Nodes]: reply notification not in the list: 0
Traceback (most recent call last):
File "/usr/lib/python3.14/site-packages/opensnitch/dialogs/stats.py", line 876, in eventFilter
self._table_menu_delete(self.tabWidget.currentIndex(), model, selection)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/opensnitch/dialogs/stats.py", line 1604, in _table_menu_delete
field = model.index(idx.row(), self.COL_WHAT).data()
^^^^^^^
AttributeError: 'list' object has no attribute 'row'
fish: Job 1, 'opensnitch-ui' terminated by signal SIGABRT (Abort)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in opensnitch/dialogs/stats.py at eventFilter and _table_menu_delete, especially the line shown in the traceback where the selected index is used. Reproduce deletion from the Applications tab, then verify that confirming deletion no longer freezes or crashes and that the rule is removed successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arch-linux, grpc, python
- Domain
- desktop, security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100