Comments (8)
BTW, as a workaround, I'm just using Qt.ConnectionType.DirectConnection
as in many cases it doesn't matter much which one I use. However, in some cases it does, and also the AutoConnection, which is the default value, probably results in QueuedConnection, causing this problem.
That's how I discovered the issue - I was not explicitly stating the connection type, hence using the default value (AutoConnection). After upgrading Nuitka from 1.5.6 to 2.0.3, bugs in my application caused by this issue appeared.
from nuitka.
The use of 2.0.3 is strange, but I have to confirm that it's present in develop and probably 2.1.2 as well. I can bisect it, but it seems there is some of the fixes made it it in the meantime required, so it's a bit wonky. This area has seen a bunch of fixes, sometimes with regressions. Nuitka does the default automatically there for type to AutoConnection
, which is supposed to be the default value, and works for some versions, so hopefully that has nothing to do with it.
from nuitka.
So, for bisection this was too hard.
Removing this bit from the package configuration restores your behavior:
if not slot.im_func.__name__.startswith("_pyside6_workaround_"):
slot.im_func.__name__ = "_pyside6_workaround_" + slot.im_func.__name__
However, this feels very much needed. I feel stuck in a workaround trap. Apparently the __name__
is being used by PySide to identify the slot in its base class, and with that failing, I seem to remember, I might have seen code that does then just use what it has. So that workaround cannot remain. However, for names like update
or run
it fails to do the proper thing, and then finds the wrong slot.
Renaming it is apparently something that would also have to happen in its class, such that it will then work I will try and explore that option, adding a name to the class, might be the solution for both.
from nuitka.
So, adding the workaround name to the class indeed helps.
if not slot.im_func.__name__.startswith("_pyside6_workaround_"):
slot.im_func.__name__ = "_pyside6_workaround_" + slot.im_func.__name__
try:
setattr(slot.im_self.__class__, slot.im_func.__name__, slot.im_func)
except Exception:
pass
That seems to work, and should be very harmless, or so I am hoping. We might have to fix this in PySide6 proper one day.
from nuitka.
Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.
from nuitka.
I confused myself with 2.1 vs. 2.0.3 there, you had confirmed it's already bad today. In the 2.0.x series a bunch of hotfixes were made, to address issues like wrong argument names, and the name collision and that causing segfaults if done on just anything, etc. this has been a hot area since 1.9.x days, but I guess, we got all things covered again. This will likely arrive in a hotfix really soon now.
from nuitka.
@kayhayen Just tested Nuitka 2.2rc2 (factory), the example is working correctly I think. Thanks for the quick fix! :)
from nuitka.
This part of the 2.1.3 release I just made.
from nuitka.
Related Issues (20)
- Using malloc_trim of ctypes throws segfault at runtime in gstreamer pipeline
- unsloth, bitsandbytes fail with triton installed, giving OSError: could not get source code
- FATAL: tk-inter: Plugin issue while working on 'module 'tkinterdnd2.TkinterDnD''
- Self-updating with tufup.client
- Nuitka-Scons unable to "linking" under a special condition: cannot find -l:libHacl_Hash_SHA2.a HOT 3
- nuitka build of "wxhello.py" file fails when using msys2 "C:\msys64" on Windows 10
- not support python3.12 typing syntax
- ModuleNotFoundError: No module named 'pyexpat'
- Sklearn missing .libs folder after compiling on newest windows-2022 github actions runner
- How to include dll exe files? --include-raw-dir not work, --include-data-dir change its behavior HOT 1
- MetaPathBasedLoader.c handle leak
- FATAL: anti-bloat: Error, failed to evaluate expression HOT 3
- cannot locate symbol "_Py_FalseStruct" referenced
- BitBake build failure
- memory leak occurred while using matplotlib
- Django exception reporter fails because `tb_lasti` is `-1` in Python 3.12
- Faild to Compile with PymuPDF - fatal error C1002: compiler is out of heap space in pass 2 HOT 3
- nuitka --standalone exit immediately (Do nothing) if import pendulum
- Python flag no_annotations breaks NamedTuple HOT 2
- Compile failed after updating to macOS 15 Sequoia HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.