SearchBar Causes Application Crash on Linux Mint 22.1 with No Error Logs
Duplicate Check
- [x] I have searched the opened issues and there are no duplicates
Describe the bug
The SearchBar component in Flet causes the application to crash immediately upon clicking it, with no error messages in the console except for package:media_kit_libs_linux registered. The issue occurs on Linux Mint 22.1 but does not occur on Windows with the same code. The crash persists even with a minimal example and after installing all recommended system dependencies.
Environment:
- Operating System: Linux Mint 22.1
- Flet Version: 0.28.3
- Python Version: 3.12
Dependencies (from requirements.txt): flet==0.28.3 httpx==0.28.1 httpx-socks>=0.8.0 aiohttp>=3.9.5 aiohttp_socks==0.10.0 beautifulsoup4==4.12.3 fake_useragent==2.0.3 numpy==2.2.2 requests==2.32.3 tqdm==4.67.1 lxml==5.3.0 fuzzywuzzy==0.18.0 python-Levenshtein==0.27.1 python-socks~=2.7.1
Code sample
import flet as ft
def main(page: ft.Page):
page.title = "Test SearchBar"
search_bar = ft.SearchBar(bar_hint_text="Enter text...")
page.add(search_bar)
page.update()
ft.app(target=main)
To reproduce
Steps to Reproduce:
import flet as ft
def main(page: ft.Page):
page.title = "Test SearchBar"
search_bar = ft.SearchBar(bar_hint_text="Enter text...")
page.add(search_bar)
page.update()
ft.app(target=main)
Expected behavior
The SearchBar should focus and allow text input without crashing the application.
Screenshots / Videos
No response
Operating System
Linux
Operating system details
Linux Mint 22.1
Flet version
0.28.3
Regression
No, it isn't
Suggestions
No response
Logs
No logs after interacting with SearchBar despite having dedicated logger and print debug messages
Additional details
- The issue started after upgrading to Linux Mint 22.1
- The same code works perfectly on Windows with Flet 0.28.3.
- No additional errors appear in system logs
Can you please try the latest pre-release and let know if you still face this issue?
Sorry, I uninstalled mint, so I can't (
чт, 13 нояб. 2025 г., 04:12 TheEthicalBoy @.***>:
ndonkoHenri left a comment (flet-dev/flet#5420) https://github.com/flet-dev/flet/issues/5420#issuecomment-3524645908
Can you please try the latest pre-release https://flet.dev/blog/introducing-flet-1-0-alpha/#trying-flet-10-alpha and let know if you still face this issue?
— Reply to this email directly, view it on GitHub https://github.com/flet-dev/flet/issues/5420#issuecomment-3524645908, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBCKGB3G4MXP2L3TLI7ZE7D34PLHXAVCNFSM6AAAAACA257WBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKMRUGY2DKOJQHA . You are receiving this because you authored the thread.Message ID: @.***>