Bug #185

Rotate doesnt work under Mac OSX 10.7.7 (Lion)

Added by Anonymous over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:24.02.2013
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:1.0.1
Version:0.3.2 Operating System:

Description

Hi!

I have been enjoying nomacs a lot until i found that the rotate features won't work on any .jpg pictures. Choosing the command (either clock- or counterclockwise) causes the program to crash. I hope you can fix this ;)

Best,

Michael

History

#1 Updated by petr over 6 years ago

confirmed. Mountain Lion 1.8.x. I'll try to examine it more.

Process:         nomacs [55630]
Path:            /Applications/MacPorts/nomacs.app/Contents/MacOS/nomacs
Identifier:      org.nomacs
Version:         1.0.0 (1.0.0)
Code Type:       X86-64 (Native)
Parent Process:  launchd [233]
User ID:         501

Date/Time:       2013-02-26 14:00:12.344 +0100
OS Version:      Mac OS X 10.8.2 (12C3103)
Report Version:  10
Sleep/Wake UUID: 69991D22-06E4-4117-A333-4DCF668F084B

Interval Since Last Report:          893729 sec
Crashes Since Last Report:           561
Per-App Interval Since Last Report:  64 sec
Per-App Crashes Since Last Report:   2
Anonymous UUID:                      F4B560D2-3116-3D9D-9F77-42D6DF959A21

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010

VM Regions Near 0x10:
--> 
    __TEXT                 000000010eecc000-000000010f04a000 [ 1528K] r-x/rwx SM=COW  /Applications/MacPorts/nomacs.app/Contents/MacOS/nomacs

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.nomacs                        0x000000010eef5fb6 nmc::DkMetaData::saveOrientation(int) + 2134
1   org.nomacs                        0x000000010eef5113 nmc::DkImageLoader::rotateImage(double) + 371
2   org.nomacs                        0x000000010ef91924 nmc::DkViewPort::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 1588
3   QtCore                            0x000000010f2027b3 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2259
4   QtGui                             0x000000010f49371a QAction::activate(QAction::ActionEvent) + 266
5   QtGui                             0x000000010f7cb21d QAbstractButtonPrivate::click() + 141
6   QtGui                             0x000000010f7cbed9 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 89
7   QtGui                             0x000000010f88f70f QToolButton::mouseReleaseEvent(QMouseEvent*) + 15
8   QtGui                             0x000000010f4e91d4 QWidget::event(QEvent*) + 308
9   QtGui                             0x000000010f7cbdfd QAbstractButton::event(QEvent*) + 205
10  QtGui                             0x000000010f88fbb9 QToolButton::event(QEvent*) + 169
11  QtGui                             0x000000010f49c2ef QApplicationPrivate::notify_helper(QObject*, QEvent*) + 255
12  QtGui                             0x000000010f49e07d QApplication::notify(QObject*, QEvent*) + 2749
13  QtCore                            0x000000010f1eb701 QCoreApplication::notifyInternal(QObject*, QEvent*) + 113
14  QtGui                             0x000000010f49cc3e QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 446
15  QtGui                             0x000000010f44d7f1 qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) + 1025
16  com.apple.AppKit                  0x00007fff870c76d6 -[NSWindow sendEvent:] + 7053
17  QtGui                             0x000000010f4451ae -[QCocoaWindow sendEvent:] + 110
18  com.apple.AppKit                  0x00007fff870c3744 -[NSApplication sendEvent:] + 5761
19  QtGui                             0x000000010f449d7e -[QNSApplication sendEvent:] + 78
20  com.apple.AppKit                  0x00007fff86fd92fa -[NSApplication run] + 636
21  QtGui                             0x000000010f452903 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1219
22  QtCore                            0x000000010f1e8d45 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 501
23  QtCore                            0x000000010f1ebc3e QCoreApplication::exec() + 206
24  org.nomacs                        0x000000010ef81522 main + 2434
25  libdyld.dylib                     0x00007fff86e8b7e1 start + 1

#2 Updated by petr over 6 years ago

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000010
std::vector<unsigned short, std::allocator<unsigned short> >::operator[] (this=0x10, __n=0) at stl_vector.h:478
478          { return *(this->_M_impl._M_start + __n); }
(gdb) bt
#0  std::vector<unsigned short, std::allocator<unsigned short> >::operator[] (this=0x10, __n=0) at stl_vector.h:478
#1  0x000000010004189f in nmc::DkMetaData::saveOrientation (this=0x10022d098, o=-90) at /Users/pvanek/oss/nomacs/nomacs-code/ImageLounge/src/DkImage.cpp:3770
#2  0x000000010004051f in nmc::DkImageLoader::rotateImage (this=0x1078003b0, angle=-90) at /Users/pvanek/oss/nomacs/nomacs-code/ImageLounge/src/DkImage.cpp:1899
#3  0x00000001000daa64 in nmc::DkViewPort::rotateCCW (this=0x10264dd50) at /Users/pvanek/oss/nomacs/nomacs-code/ImageLounge/src/DkViewPort.cpp:1814
#4  0x000000010012bbf4 in nmc::DkViewPort::qt_static_metacall (_o=0x10264dd50, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fff5fbfe680) at /Users/pvanek/oss/nomacs/build-git/src/moc_DkViewPort.cxx:590

with some interesting variables:

(gdb) f 1
#1  0x000000010004189f in nmc::DkMetaData::saveOrientation (this=0x10022d098, o=-90) at /Users/pvanek/oss/nomacs/nomacs-code/ImageLounge/src/DkImage.cpp:3770
3770        orientation = (int) rv->value_[0];
(gdb) print rv
$1 = {
  _M_ptr = 0x0
}
(gdb) print pos
$2 = {
  _M_node = 0x10e920940
}
(gdb) print prv
$3 = (UShortValue *) 0x0

#3 Updated by petr over 6 years ago

fix confirmed: fixed with the latest commit

#4 Updated by Markus over 6 years ago

  • Status changed from New to Closed
  • Target version set to 1.0.1
  • % Done changed from 0 to 100

Also available in: Atom PDF