Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message during startup and eaf-open-demo does not work #1143

Open
uherbst opened this issue Mar 6, 2024 · 1 comment
Open

error message during startup and eaf-open-demo does not work #1143

uherbst opened this issue Mar 6, 2024 · 1 comment

Comments

@uherbst
Copy link

uherbst commented Mar 6, 2024

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

  1. Start emacs
  2. 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.

@manateelazycat
Copy link
Member

You can remove 2048 app, I guess this application not upgrade to newest Qt version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants