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

Executing escapes for cardlist summaries causes segfaults #12

Open
zw opened this issue May 24, 2010 · 1 comment
Open

Executing escapes for cardlist summaries causes segfaults #12

zw opened this issue May 24, 2010 · 1 comment

Comments

@zw
Copy link
Owner

zw commented May 24, 2010

I got the following crashes at various points with cardlist escape evaluation turned on, which I think was caused by them being on.

Changing a card's model:

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   QtGui                               0x0a75c118 QPaintDevice::~QPaintDevice() + 328
1   QtGui                               0x0a8ba549 QMacStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const + 73
2   QtGui                               0x0aafb9e3 QItemDelegate::drawFocus(QPainter*, QStyleOptionViewItem const&, QRect const&) const + 243
3   QtGui.so                            0x0a0ec573 sipQItemDelegate::drawFocus(QPainter*, QStyleOptionViewItem const&, QRect const&) const + 107
4   QtGui                               0x0ab000dc QItemDelegate::paint(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const + 1500
5   QtGui.so                            0x0a0ecae2 sipQItemDelegate::disconnectNotify(char const*) + 358
6   org.python.python                   0x006bb165 PyEval_EvalFrameEx + 19429
7   org.python.python                   0x006bd2dd PyEval_EvalCodeEx + 2109
8   org.python.python                   0x0063a746 PyFunction_SetClosure + 1894
9   org.python.python                   0x00609d35 PyObject_Call + 85
10  org.python.python                   0x0061bb36 PyMethod_New + 2646
11  org.python.python                   0x00609d35 PyObject_Call + 85
12  org.python.python                   0x006b55be PyEval_CallObjectWithKeywords + 78
13  sip.so                              0x09f36470 initsip + 7131
14  QtGui.so                            0x09f46ae3 sipVH_QtGui_48(PyGILState_STATE, _object*, QPainter*, QStyleOptionViewItem const&, QModelIndex const&) + 143

Simply opening the browser:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000009cc0e69c
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   com.apple.QD                        0x9691d5d8 GetPenState + 41
1   QtGui                               0x0a569516 QPixmap::macQDHandle() const + 390
2   QtGui                               0x0a533ef0 QWidgetPrivate::setWindowIcon_sys(bool) + 352
3   QtGui                               0x0a50a613 QWidget::create(int, bool, bool) + 739
4   QtGui                               0x0a5059d5 QWidgetPrivate::createWinId(int) + 325
5   QtGui                               0x0a903b09 QToolBar::setAllowedAreas(QFlags) + 889
6   QtGui                               0x0a903db4 QToolBar::QToolBar(QWidget*) + 244
7   QtGui.so                            0x09e9de43 sipQToolBar::sipQToolBar(QWidget*) + 31
8   QtGui.so                            0x09ea1d6f sipQToolBar::disconnectNotify(char const*) + 9801
9   sip.so                              0x09e37e54 sip_api_common_dtor + 6569
10  org.python.python                   0x0066f2c0 PyType_GenericNew + 18368
11  org.python.python                   0x00609d35 PyObject_Call + 85
...

Deleting several tags at once:

Traceback (most recent call last):
  File "anki/hooks.pyc", line 61, in repl
  File "/Users/zak/Library/Application Support/Anki/plugins/CodeInCards.py", line 405, in cardListData
    card = self.getCard(index)
  File "ankiqt/ui/cardlist.pyc", line 206, in getCard
  File "anki/hooks.pyc", line 58, in repl
  File "ankiqt/ui/main.pyc", line 2630, in checkProgressHandler
Exception: Accessed DB while in progress handler

A short while after doing something vaguely clipboardy:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   QtGui                               0x0a626a17 QClipboard::clear(QClipboard::Mode) + 2599
1   QtCore                              0x09e10ac9 QCoreApplication::flush() + 41
2   QtGui                               0x0a9406dd QAbstractButton::mousePressEvent(QMouseEvent*) + 429
3   QtGui                               0x0a940940 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 128
4   QtGui                               0x0aa10afc QToolButton::mouseReleaseEvent(QMouseEvent*) + 28
5   QtGui                               0x0a60d978 QWidget::event(QEvent*) + 3736
@zw
Copy link
Owner Author

zw commented May 24, 2010

Worked around by commit a06b92c

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

1 participant