emacs-application-framework
emacs-application-framework copied to clipboard
error message during startup and eaf-open-demo does not work
Describe the bug
There is an error message during emacs-startup:
Error (use-package): eaf/:config: Symbol’s value as variable is void: eaf-pdf-viewer-keybinding
M-x eaf-open-demo => python dies unexpectedly.
To Reproduce
- Start emacs
- M-x eaf-open-demo
Expected behavior Demo App should run
Versions (please complete the following info):
- MacOS 14.2.1 with MacM1-Chip
- EAF version fresh from git 2024-03-06
- M-x emacs-version: 29.2 (from mac-ports)
Error logs
Please check the *eaf* buffer, if there is any error in it, paste it here.
2024-03-06 09:58:13.329 Python[88969:10102916] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Traceback (most recent call last):
File "/Users/uherbst/.emacs.d/site-lisp/emacs-application-framework/app/2048/buffer.py", line 89, in resizeEvent
self.font = QtGui.QFont("Arial", self.tileSize / 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QFont(): too many arguments
QFont(families: Iterable[str], pointSize: int = -1, weight: int = -1, italic: bool = False): argument 1 has unexpected type 'str'
QFont(family: str, pointSize: int = -1, weight: int = -1, italic: bool = False): argument 2 has unexpected type 'float'
QFont(a0: QFont): argument 1 has unexpected type 'str'
QFont(variant: Any): too many arguments
Process *eaf* abort trap: 6
From Apple Debug window:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Python [88969]
Path: /Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.12.2 (3.12.2)
Code Type: ARM-64 (Native)
Parent Process: Emacs [88840]
Responsible: Emacs [88840]
User ID: 501
Date/Time: 2024-03-06 11:21:49.7706 +0100
OS Version: macOS 14.2.1 (23C71)
Report Version: 12
Anonymous UUID: 07438D0B-C224-BB08-C62B-74CD30B8A316
Sleep/Wake UUID: 3F85B8F6-B503-44F8-9BC1-16F95A1A2446
Time Awake Since Boot: 340000 seconds
Time Since Wake: 1439 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Python [88969]
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1894be0dc __pthread_kill + 8
1 libsystem_pthread.dylib 0x1894f5cc0 pthread_kill + 288
2 libsystem_c.dylib 0x189401a40 abort + 180
3 QtCore 0x10736c1f0 qAbort() + 12
4 QtCore 0x10736f724 0x107364000 + 46884
5 QtCore 0x1076527d8 QMessageLogger::fatal(char const*, ...) const + 68
6 QtCore.abi3.so 0x10a23a01c pyqt6_err_print() + 824
7 sip.cpython-312-darwin.so 0x10488db88 sip_api_call_procedure_method + 232
8 QtWidgets.abi3.so 0x1061d0ef4 sipQWidget::resizeEvent(QResizeEvent*) + 132
9 QtWidgets 0x104bbf11c QWidget::event(QEvent*) + 988
10 QtWidgets.abi3.so 0x1061d2114 sipQWidget::event(QEvent*) + 224
11 QtWidgets 0x104b75b00 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
12 QtWidgets 0x104b774a8 QApplication::notify(QObject*, QEvent*) + 3396
13 QtWidgets.abi3.so 0x1061ba548 sipQApplication::notify(QObject*, QEvent*) + 248
14 QtCore 0x1073cce18 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292
15 QtWidgets 0x104bb9198 QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) + 248
16 QtWidgets 0x104bbdcb8 QWidgetPrivate::show_helper() + 52
17 QtWidgets 0x104bbea40 QWidgetPrivate::setVisible(bool) + 804
18 QtWidgets.abi3.so 0x1061d1ad8 sipQWidget::setVisible(bool) + 140
19 QtWidgets 0x104eb20c4 0x104b68000 + 3449028
20 QtWidgets 0x104ebf12c QGraphicsScene::addWidget(QWidget*, QFlags<Qt::WindowType>) + 60
21 QtWidgets.abi3.so 0x10626ad20 meth_QGraphicsScene_addWidget(_object*, _object*, _object*) + 168
22 Python 0x1054aba0c cfunction_call + 72
23 Python 0x10543cd20 _PyObject_MakeTpCall + 128
24 Python 0x105583d08 _PyEval_EvalFrameDefault + 45232
25 Python 0x10543caa4 _PyObject_FastCallDictTstate + 96
26 Python 0x1054d989c slot_tp_init + 208
27 Python 0x1054ce728 type_call + 148
28 Python 0x10543cd20 _PyObject_MakeTpCall + 128
29 Python 0x105583d08 _PyEval_EvalFrameDefault + 45232
30 Python 0x105440d78 method_vectorcall + 180
31 QtCore.abi3.so 0x10a241228 PyQtSlot::call(_object*, _object*) const + 68
32 QtCore.abi3.so 0x10a2410b0 PyQtSlot::invoke(void**, _object*, void*, bool) const + 292
33 QtCore.abi3.so 0x10a2420a4 PyQtSlotProxy::unislot(void**) + 92
34 QtCore.abi3.so 0x10a242014 PyQtSlotProxy::qt_metacall(QMetaObject::Call, int, void**) + 68
35 QtCore 0x10740e9e0 QObject::event(QEvent*) + 612
36 QtWidgets 0x104b75b00 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
37 QtWidgets 0x104b76964 QApplication::notify(QObject*, QEvent*) + 512
38 QtWidgets.abi3.so 0x1061ba548 sipQApplication::notify(QObject*, QEvent*) + 248
39 QtCore 0x1073cce18 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292
40 QtCore 0x1073ce0c8 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + ...
(text deleted, because too long)
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
You can remove 2048 app, I guess this application not upgrade to newest Qt version.
2048 is a community package that's not maintained by us. Raise the issue at metaescape/2048pyqt6 you need further help.