import numpy asynchronously causes EXC_BAD_ACCESS
@FeodorFitsner is already working on this.
Since Apr 24, 2024.
Assessment
This issue has not been assessed yet.
Description
Hello,
the package is amazing, but I encountered an error that makes it impossible to continue developing.
I am working on macOS with an Apple Silicon processor (M2).
The line import numpy as np always makes the code (and the whole flutter app) crashes with EXC_BAD_ACCESS, specifically, I tracked down the error to the line let result = PyRun_SimpleFileEx(file, appPath, 1) in SeriousPythonPlugin.swift.
The interesting thing is that if I use sync: true, the python code gets executed correctly without issues, but the flutter app hangs, so it's not a viable solution.
I've tried using Isolates, but either the method channel cannot be invoked, or the flutter UI hangs (if I use BackgroundIsolateBinaryMessenger.ensureInitialized).
Let me know if I can provide more info.
- Dominant language
- Dart
- Stars
- 324
- Forks
- 47
- Avg merge
- 7h 41m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flet-dev/serious-python
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
flet-dev/serious-python#226 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
flet-dev/serious-python#169 ·
-
iOS Build Failure: Missing site-xcframeworks Directory in serious_python_darwin PhaseScriptExecution Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
flet-dev/serious-python#168 ·
-
documentation
flet-dev/serious-python#157 · 1 comment · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
flet-dev/serious-python#133 · 2 comments ·
All issues in flet-dev/serious-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
conceptadev/noir#95 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
leancodepl/patrol#3296 ·
-
from.page-issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
bug Fundamental
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100