View Issue Details

IDProjectCategoryView StatusLast Update
0013093ScribusPDFpublic2015-08-12 12:05
ReporterKunda Assigned Tojghali  
PriorityhighSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
PlatformMacOSOSXOS Version10.9.5
Product Version1.5.1svn 
Target Version1.5.1Fixed in Version1.5.1svn 
Summary0013093: Crash signal 6 when exporting as PDF
DescriptionSee steps to reproduce
Steps To Reproduce1) download attached .zip
3) install fonts in to your system
4) run scribus and allow the scribus to swap the fonts that are missing to the arial derivative font
5) export to PDF
this may cause the crash if not
6) Choose 'subset all' in the PDF export menu 'Font' tab
Signal 6
Additional InformationOSX 10.9.5 1.5.1svn r20138

Backtrace:
ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/local/opt/qt5/lib/QtCore.framework/Headers/qlist.h, line 486
Assertion failed: (false), function abort_on_error, file /tmp/scribus20150620-59140-k3eiej/scribus/scribuscore.cpp, line 76.
Process 70226 stopped
* thread 0000001: tid = 0x48f8e, 0x00007fff9cd74286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff9cd74286 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
-> 0x7fff9cd74286 <+10>: jae 0x7fff9cd74290 ; <+20>
    0x7fff9cd74288 <+12>: movq %rax, %rdi
    0x7fff9cd7428b <+15>: jmp 0x7fff9cd6fc53 ; cerror_nocancel
    0x7fff9cd74290 <+20>: retq
(lldb) bt
* thread 0000001: tid = 0x48f8e, 0x00007fff9cd74286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
  * frame #0: 0x00007fff9cd74286 libsystem_kernel.dylib`__pthread_kill + 10
    frame 0000001: 0x00007fff8f9a942f libsystem_pthread.dylib`pthread_kill + 90
    frame 0000002: 0x00007fff8f5e3b53 libsystem_c.dylib`abort + 129
    frame 0000003: 0x00007fff8f5abc39 libsystem_c.dylib`__assert_rtn + 321
    frame 0000004: 0x00000001003dbb38 Scribus`abort_on_error(QtMsgType, QMessageLogContext const&, QString const&) + 150
    frame 0000005: 0x0000000105bfa8ca QtCore`QMessageLogger::fatal(char const*, ...) const + 234
    frame 0000006: 0x0000000105bf5655 QtCore`qt_assert_x(char const*, char const*, char const*, int) + 85
    frame 0000007: 0x0000000100819985 Scribus`QList<unsigned short>::operator[](int) + 93
    frame 0000008: 0x000000010080ffd8 Scribus`cff::CFF::extractSubset(unsigned int, QList<unsigned int>) const + 1078
    frame 0000009: 0x0000000100810aa8 Scribus`cff::subsetFace(QByteArray const&, QList<unsigned int>) + 66
    frame 0000010: 0x0000000100218e87 Scribus`PDFLibCore::PDF_WriteCffSubsetFont(QByteArray const&, ScFace&, QMap<unsigned int, FPointArray> const&) + 309
    frame 0000011: 0x000000010020b0f9 Scribus`PDFLibCore::PDF_Begin_WriteUsedFonts(SCFonts&, QMap<QString, QMap<unsigned int, FPointArray> > const&) + 1899
    frame 0000012: 0x00000001001f915f Scribus`PDFLibCore::PDF_Begin_Doc(QString const&, SCFonts&, QMap<QString, QMap<unsigned int, FPointArray> > const&, BookMView*) + 201
    frame 0000013: 0x00000001001f8837 Scribus`PDFLibCore::doExport(QString const&, QString const&, int, std::__1::vector<int, std::__1::allocator<int> > const&, QMap<int, QPixmap> const&) + 227
    frame 0000014: 0x00000001003c14e2 Scribus`ScribusMainWindow::getPDFDriver(QString const&, QString const&, int, std::__1::vector<int, std::__1::allocator<int> > const&, QMap<int, QPixmap> const&, QString&, bool*) + 112
    frame 0000015: 0x00000001003c2281 Scribus`ScribusMainWindow::doSaveAsPDF() + 2891
    frame 0000016: 0x0000000105e52f49 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2953
    frame 0000017: 0x0000000105e52f49 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2953
    frame 0000018: 0x0000000104cfff50 QtWidgets`QAbstractButton::clicked(bool) + 64
    frame 0000019: 0x0000000104a5553a QtWidgets`QAbstractButtonPrivate::emitClicked() + 58
    frame 0000020: 0x0000000104a553a7 QtWidgets`QAbstractButtonPrivate::click() + 263
    frame 0000021: 0x0000000104a563de QtWidgets`QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 270
    frame 0000022: 0x00000001049b085b QtWidgets`QWidget::event(QEvent*) + 1675
    frame 0000023: 0x0000000104a56133 QtWidgets`QAbstractButton::event(QEvent*) + 179
    frame 0000024: 0x0000000104970713 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 307
    frame 0000025: 0x0000000104973ec1 QtWidgets`QApplication::notify(QObject*, QEvent*) + 9233
    frame 0000026: 0x0000000105e20253 QtCore`QCoreApplication::notifyInternal(QObject*, QEvent*) + 115
    frame 0000027: 0x00000001049710c4 QtWidgets`QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 1012
    frame 0000028: 0x00000001049cb906 QtWidgets`QWidgetWindow::handleMouseEvent(QMouseEvent*) + 1190
    frame 0000029: 0x00000001049cab5f QtWidgets`QWidgetWindow::event(QEvent*) + 111
    frame 0000030: 0x0000000104970713 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 307
    frame 0000031: 0x0000000104973b15 QtWidgets`QApplication::notify(QObject*, QEvent*) + 8293
    frame 0000032: 0x0000000105e20253 QtCore`QCoreApplication::notifyInternal(QObject*, QEvent*) + 115
    frame 0000033: 0x0000000105027260 QtGui`QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 2032
    frame 0000034: 0x00000001050134ba QtGui`QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 346
    frame 0000035: 0x0000000107b27941 libqcocoa.dylib`QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 33
    frame 0000036: 0x00007fff96328a01 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame 0000037: 0x00007fff9631ab8d CoreFoundation`__CFRunLoopDoSources0 + 269
    frame 0000038: 0x00007fff9631a1bf CoreFoundation`__CFRunLoopRun + 927
    frame 0000039: 0x00007fff96319bd8 CoreFoundation`CFRunLoopRunSpecific + 296
    frame 0000040: 0x00007fff9c8d156f HIToolbox`RunCurrentEventLoopInMode + 235
    frame 0000041: 0x00007fff9c8d11ee HIToolbox`ReceiveNextEventCommon + 179
    frame 0000042: 0x00007fff9c8d112b HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame 0000043: 0x00007fff9490f9bb AppKit`_DPSNextEvent + 978
    frame 0000044: 0x00007fff9490ef68 AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
    frame 0000045: 0x00007fff94904bf3 AppKit`-[NSApplication run] + 594
    frame 0000046: 0x0000000107b2689a libqcocoa.dylib`QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2266
    frame 0000047: 0x0000000105e1da3c QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 396
    frame 0000048: 0x0000000105e207fa QtCore`QCoreApplication::exec() + 346
    frame 0000049: 0x00000001007d3fe9 Scribus`mainApp(int, char**) + 90
    frame 0000050: 0x00007fff9bbb55c9 libdyld.dylib`start + 1
    frame 0000051: 0x00007fff9bbb55c9 libdyld.dylib`start + 1
Tagsexport, PDF
PatchNo

Relationships

related to 0013240 closedjghali export to pdf crashes with signal 6 
parent of 0013293 closedjghali Crashes with assertion failure while exporting PDF embedding Noto Sans Ja fonts 
related to 0013189 closedjghali 1.5.1svn does not export vector objects to PDF 1.3 and crashes for other PDF versions 

Activities

Kunda

2015-05-27 22:13

updater   ~0035279

Last edited: 2015-05-27 22:13

CLI Output

ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/local/opt/qt5/lib/QtCore.framework/Headers/qlist.h, line 486
Assertion failed: (false), function abort_on_error, file /tmp/scribus20150527-58688-dvseqz/scribus/scribuscore.cpp, line 76.
Scribus Crash
-------------
Scribus crashes due to Signal 6

Kunda

2015-06-20 13:00

updater  

Signal 6.zip (315,829 bytes)

Kunda

2015-06-20 13:04

updater   ~0035461

Added backtrace and simplified the bug by adding attachment.

brozkeff

2015-06-30 08:30

reporter   ~0035572

I have a company newsletter that for certain reasons had to be done on Scribus 1.5.0svn on linux for almost a year because of some features not present in S 1.4.x. Some vector graphics is being used over and over again each month. Recently a correct export to PDF is not possible anymore with the more recent 1.5.1svn versions on Linux:
When exporting as PDF 1.3, it exports but without any vector objects on all pages.
Exporting as anything else than PDF 1.3 crashes Scribus during the export (error 6 or 11), using Linux Mint 17.1 64bit with Xfce.

Very freshly I have also the Windows 1.5.0svn build (19 May 2015, Build ID: C-*-T-*-C1.12.18-Windows) running on Czech Windows 8.1 Pro 32bit and this build can succesfully open also the file modified by (newer) Linux build 1.5.1svn, and can export succesfully also with the vector graphics when using PDF 1.3 profile.

The SLA file has a lot of embedded images and is cca 20 MB big in size, using Linux Biolinum fonts.

Check both the SLA file (last edited and with PDF exported succesfully on Windows) and screenshots of an older version of the same file as exported in 1.5.0svn Windows version and 1.5.1svn Linux version - Linux version is the one without vector images)

https://akasha.brozkeff.net/owncloud/index.php/s/8OX4jLtSc75PURb

brozkeff

2015-06-30 08:31

reporter   ~0035573

To avoid the SSL self-signed error you can also use the non-encrypted version at http://akasha.brozkeff.net/owncloud/index.php/s/8OX4jLtSc75PURb

Kunda

2015-06-30 18:04

updater   ~0035589

Brozkeff, Can you use the 'Collect for Output' function ?
http://wiki.scribus.net/canvas/How_can_I_move_a_Scribus_file_to_another_computer_along_with_its_images%3F

brozkeff

2015-06-30 22:21

reporter   ~0035594

Yes, I did it (on Windows with Scribus 1.5.0svn but the problem should persist after opening in Linux with 1.5.1svn and trying to export) and you can download it in the zip file "collect for output.zip" on my ownCloud, the same link as before.

ftake

2015-07-19 04:32

reporter   ~0035845

I am also in trouble because of this bug.

As far as I understand, Scribus (with new font-related code introduced in around April) cannot handle some CFF fonts correctly and crashes.

In my document, Noto Sans Japanese, an OSS font from Google and Adobe, is the case.

I think, an easy workaround is outlining such problematic font, but where the listbox to select fonts to be outline has gone? Why is not "Outline All Fonts" in "Embedding Mode:" for PDF/X?

Kunda

2015-07-25 13:14

updater   ~0035893

Fix committed by jghali to r20274
Thanks!

Issue History

Date Modified Username Field Change
2015-05-27 22:11 Kunda New Issue
2015-05-27 22:13 Kunda Note Added: 0035279
2015-05-27 22:13 Kunda Steps to Reproduce Updated
2015-05-27 22:13 Kunda Note Edited: 0035279
2015-05-30 07:07 fschmid Assigned To => avox
2015-05-30 07:07 fschmid Status new => assigned
2015-06-20 12:59 Kunda Steps to Reproduce Updated
2015-06-20 12:59 Kunda Additional Information Updated
2015-06-20 13:00 Kunda File Added: Signal 6.zip
2015-06-20 13:02 Kunda Assigned To avox =>
2015-06-20 13:02 Kunda Status assigned => new
2015-06-20 13:03 Kunda Assigned To => avox
2015-06-20 13:03 Kunda Status new => assigned
2015-06-20 13:04 Kunda Note Added: 0035461
2015-06-30 08:30 brozkeff Note Added: 0035572
2015-06-30 08:31 brozkeff Note Added: 0035573
2015-06-30 08:32 brozkeff Tag Attached: export
2015-06-30 08:32 brozkeff Tag Attached: pdf
2015-06-30 18:04 Kunda Note Added: 0035589
2015-06-30 18:06 Kunda Relationship added related to 0013189
2015-06-30 22:21 brozkeff Note Added: 0035594
2015-07-17 23:38 FirasH Relationship added related to 0013240
2015-07-19 04:32 ftake Note Added: 0035845
2015-07-25 13:03 jghali Status assigned => resolved
2015-07-25 13:03 jghali Fixed in Version => 1.5.1svn
2015-07-25 13:03 jghali Resolution open => fixed
2015-07-25 13:03 jghali Assigned To avox => jghali
2015-07-25 13:14 Kunda Note Added: 0035893
2015-07-25 16:59 Kunda Status resolved => closed
2015-08-12 12:05 Kunda Relationship added parent of 0013293