-
Notifications
You must be signed in to change notification settings - Fork 584
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
When using Flet to package desktop (Linux) applications and run embedded Python in the Native layer, an incompatibility issue may be observed with older x86_64 CPUs. This issue usually occurs when the compiled code or binary libraries rely on AVX2 or AVX-512 instructions, while the system in use only supports primitive AVX or older instructions. In such a situation, when running the application or calling embedded Python modules, the following error is usually observed:
Illegal instruction (core dumped)
I tested and ran my built application on new hardware and it ran without any problems, but on an older CPU Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
I am encountering problems. Is there a way to fix this incompatibility in serious python or in the native layer of the flutter project created by flet? Because building the program with Flutter itself and without flet and serious python works perfectly on my old system and the build is done correctly, but when I ran my built program using flet with gdb, it seems like the problem is with the lib project next to the libpython project inside it and its embedded python, but I'm not sure, it seems like somewhere it is using avx2 or avx 512 commands, which causes the program to crash.
Please let me know if there is a solution.
I am using flet version 0.28.3.
I even built the default Flat app but the problem still persists.
Code sample
Code
[Paste your code here]
To reproduce
Many Native packages and layers in Flet (especially when using Flutter for desktop and Python embedded) are compiled by default with modern CPU instruction levels (AVX2/AVX-512) for optimal performance.
Older CPUs that only support early AVX cannot execute these instructions, causing the application to crash.
When running an application built with flet build linux on an older system, a core dump occurs.
I even built the default Flet application, but the problem persists.
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
Linux
Operating system details
Debian 13
Flet version
0.28.3
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response