Skip to content

BUG: Double Click on an Event in a zoomed annotation area make the application crash #42

Open

Description

@MichaelPapinutto

When creating event there is no issue but if you zoom in the annotation area then creating and double clicking on the event to set manually the frame make the application crash with the following error:

Traceback (most recent call last):
  File "/pythonVideoAnnotator/libraries/pyforms-gui/pyforms_gui/controls/control_number.py", line 48, in update_event
    self.value = value
  File "//pythonVideoAnnotator/libraries/pyforms-gui/pyforms_gui/controls/control_number.py", line 72, in value
    ControlBase.value.fset(self, self.form.spinBox.value())
  File "/pythonVideoAnnotator/libraries/pyforms-gui/pyforms_gui/controls/control_base.py", line 215, in value
    self.changed_event()
  File "/pythonVideoAnnotator/libraries/pyforms-gui/pyforms_gui/controls/control_event_timeline/events/win_event.py", line 74, in __begin_changed_event
    if not hasattr(self, '_updating') and self._begin.value >= self._end.value:
AttributeError: 'EventWindow' object has no attribute '_begin'
Abort trap: 6

And this apple report of python quitting unexpectedly:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff610a6b86 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff6115cc50 pthread_kill + 285
2   libsystem_c.dylib             	0x00007fff610101c9 abort + 127
3   QtCore                        	0x000000010eeab5e9 0x10ee93000 + 99817
4   QtCore                        	0x000000010eeacd34 QMessageLogger::fatal(char const*, ...) const + 202
5   QtCore.so                     	0x000000010f612912 pyqt5_err_print() + 802
6   QtCore.so                     	0x000000010f618464 PyQtSlotProxy::unislot(void**) + 100
7   QtCore.so                     	0x000000010f6183ca PyQtSlotProxy::qt_metacall(QMetaObject::Call, int, void**) + 58
8   QtCore                        	0x000000010f0ae373 QMetaObject::activate(QObject*, int, int, void**) + 995
9   QtWidgets                     	0x000000010e555db3 0x10e3a4000 + 1777075
10  QtWidgets                     	0x000000010e54e0f4 0x10e3a4000 + 1745140
11  QtWidgets                     	0x000000010e5546d7 QDoubleSpinBox::setValue(double) + 135
12  QtWidgets.so                  	0x000000010dfd53a6 meth_QDoubleSpinBox_setDecimals(_object*, _object*) + 86
...
...

Is it only on my side or this bug is reproductible ? @UmSenhorQualquer Do you have any solution for a quick fix ?

Best regards,

Michael Papinutto

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions