View Issue Details

IDProjectCategoryView StatusLast Update
0014233ScribusStory Editor / Text Framespublic2016-12-28 14:42
Reportermvow Assigned ToKunda  
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSUbuntuOS Version14.04
Product Version1.5.2 
Target VersionFixed in Version 
Summary0014233: Crash when inserting sample text on a text frame of a new document after that previous open documents had been closed.
Description(Tested with: Scribus 1.5.2 - Ubuntu 14.04 Unity)

I get a crash when I:

    A) close all the open documents (don't quit Scribus)
    B) create a new document
    C) try to insert default sample text into a text frame

Notice that the textarea on the "Sample Text" dialog box is empty.
Steps To ReproduceStep by step to reproduce:

    1) restart Scribus
    2) "CTRL + N" to create a new document
    3) "T" to switch to the Text Frame tool
    4) click and drag over the page to create a text frame
    5) with the text frame selected, go to: (main menu) "Insert > Sample Text..."
    6) click "OK"
    7) "CTRL + W" in order to close the document without saving

now repeat steps 2-6:
    2) "CTRL + N" to create a new document
    3) "T" to switch to the Text Frame tool
    4) click and drag over the page to create a text frame
    5) with the text frame selected, go to: (main menu) "Insert > Sample Text..." (notice that the textarea of the dialog box is blank)
    6) click "OK"
Additional InformationActual Results: Scribus crash.

Expected Results: the text frame should be filled with the sample text.

(Not sure if it could be somewhat related to this fixed bug: 0012367 )
Tags#tobeclosed
PatchNo

Relationships

related to 0012367 closedcbradney "Sample Text" crashes Scribus if no document is opened 

Activities

mvow

2016-07-21 13:57

reporter  

2016-07-21_01_Scribus_Crash-when-inserting-sample-text-on-a-text-frame-of-a-new-document-after-that-previous-open-documents-had-been-closed.mp4 (1,347,594 bytes)

mauder

2016-07-21 14:38

reporter   ~0041825

Last edited: 2016-07-21 17:58

View 2 revisions

Does work here without crash with 1.5.3svn and Ubuntu 16.04

mvow

2016-07-21 16:43

reporter   ~0041826

Hi, I'm not a developer however here in attachment is a text file with the gdb output of the crash. I'm not sure if it's a good/valid backtrace since it's pretty much gibberish to me. If someone is looking into this issue and needs further informations, please let me know and I'll try to get back to. Thanks

mvow

2016-07-21 16:43

reporter  

2016-07-21_01_Scribus-1.5.2_Crash-when-inserting-sample-text-on-a-text-frame-of-a-new-document-after-that-previous-open-documents-had-been-closed.txt (5,940 bytes)
Program received signal SIGSEGV, Segmentation fault.
0x0000000000cea840 in LoremManager::getName() ()
(gdb) thread apply all bt

Thread 9 (Thread 0x7fffdeffd700 (LWP 26042)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b76648fe4 in g_main_context_poll (priority=2147483647, n_fds=1,
    fds=0x7fffd40013c0, timeout=10000, context=0x7fffd4000990)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7fffd4000990,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x0000003b766490ec in g_main_context_iteration (context=0x7fffd4000990,
    may_block=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x00007ffff7ba275b in ?? ()
#5  0x00007fffd40032b4 in ?? ()
#6  0x00007fffdeffcc80 in ?? ()
#7  0x0000000000000024 in ?? ()
#8  0x00007fffd4003240 in ?? ()
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fffec8a7700 (LWP 26039)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b76648fe4 in g_main_context_poll (priority=2147483647, n_fds=2,
    fds=0x7fffd00008c0, timeout=-1, context=0x17715a0)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
---Type <return> to continue, or q <return> to quit---
#2  g_main_context_iterate (context=context@entry=0x17715a0,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x0000003b766490ec in g_main_context_iteration (context=0x17715a0,
    may_block=may_block@entry=1)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x0000003b76649129 in glib_worker_main (data=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:5541
#5  0x0000003b7666df05 in g_thread_proxy (data=0x16f7a80)
    at /build/buildd/glib2.0-2.40.2/./glib/gthread.c:764
#6  0x0000003b75208184 in start_thread (arg=0x7fffec8a7700)
    at pthread_create.c:312
#7  0x0000003b74afa37d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fffedf35700 (LWP 26037)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b76648fe4 in g_main_context_poll (priority=2147483647, n_fds=5,
    fds=0x7fffe4011280, timeout=-1, context=0x7fffe4000990)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7fffe4000990,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
---Type <return> to continue, or q <return> to quit---
#3  0x0000003b766490ec in g_main_context_iteration (context=0x7fffe4000990,
    may_block=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x00007ffff7ba27b3 in ?? ()
#5  0x00007fffe4002a54 in ?? ()
#6  0x00007fffedf34c50 in ?? ()
#7  0x0000000000000024 in ?? ()
#8  0x00007fffe40029e0 in ?? ()
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fffee951700 (LWP 26036)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b76648fe4 in g_main_context_poll (priority=2147483647, n_fds=3,
    fds=0x7fffe00010c0, timeout=-1, context=0x7fffe800f870)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=0x7fffe800f870, block=block@entry=1,
    dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x0000003b7664930a in g_main_loop_run (loop=0x7fffe800f800)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3928
#4  0x0000003b7a6d7336 in gdbus_shared_thread_func (user_data=0x7fffe800f840)
    at /build/buildd/glib2.0-2.40.2/./gio/gdbusprivate.c:273
#5  0x0000003b7666df05 in g_thread_proxy (data=0x1688190)
    at /build/buildd/glib2.0-2.40.2/./glib/gthread.c:764
---Type <return> to continue, or q <return> to quit---
#6  0x0000003b75208184 in start_thread (arg=0x7fffee951700)
    at pthread_create.c:312
#7  0x0000003b74afa37d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fffef152700 (LWP 26035)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b76648fe4 in g_main_context_poll (priority=2147483647, n_fds=1,
    fds=0x7fffe80010c0, timeout=-1, context=0x1655c80)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x1655c80,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x0000003b766490ec in g_main_context_iteration (context=0x1655c80,
    may_block=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x00007fffef15a1ad in ?? ()
   from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#5  0x0000003b7666df05 in g_thread_proxy (data=0x162d540)
    at /build/buildd/glib2.0-2.40.2/./glib/gthread.c:764
#6  0x0000003b75208184 in start_thread (arg=0x7fffef152700)
    at pthread_create.c:312
#7  0x0000003b74afa37d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
---Type <return> to continue, or q <return> to quit---

Thread 2 (Thread 0x7ffff4b87700 (LWP 26034)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003f5da09b9a in ?? ()
#2  0x0001000100000004 in ?? ()
#3  0x00000000015c60b8 in ?? ()
#4  0x00000000015c5da0 in ?? ()
#5  0x00000000015b86a0 in ?? ()
#6  0x00000000015b86e0 in ?? ()
#7  0x00000000015b86b8 in ?? ()
#8  0x00000000015b9748 in ?? ()
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff5a51940 (LWP 26016)):
#0  0x0000000000cea840 in LoremManager::getName() ()
#1  0x0000000000a7519e in ScribusMainWindow::insertSampleText() ()
#2  0x00000000006049d4 in ?? ()
#3  0x00007ffff7b82efc in ?? ()
#4  0x0000000003095770 in ?? ()
#5  0x00000031b4f8623b in ?? ()
#6  0x0000000000000000 in ?? ()
(gdb)

mauder

2016-07-21 18:04

reporter   ~0041827

Last edited: 2016-07-21 18:05

View 2 revisions

Maybe the reason that I do have no crash is that the problem is already fixed in 1.5.3svn? You can try packet scribus-trunk from "Daily Ubuntu packages" ppa:scribus/ppa. The only problem is that the repository there for Ubuntu 14.04 is out of date. You have to upgrade to 16.04 first.

mvow

2016-07-21 19:45

reporter   ~0041828

Hi mauder, I'm not ready to upgrade Ubuntu yet so I can't confirm that, sorry. Thanks anyway for the hint

jghali

2016-07-24 12:54

administrator   ~0041838

I cannot reproduce this, neither on Windows, nor in Linux Mint 17.3, not in Ubuntu 16.04.

PeterBenedek

2016-07-24 14:52

developer   ~0041839

I can reproduce r21360; Linux Mint 17.3 (Ubuntu 14.04)
I cannot reproduce this r21413; Linux Mint 18

Quote:
ppa:scribus/ppa (https://launchpad.net/~scribus/+archive/ubuntu/ppa)
"scribus-trunk is not updated anymore in 14.04 LTS Trusty Tahr due to a too old Qt, please upgrade your system to a newer Ubuntu release (suggested: 16.04 LTS Xenial Xerus)."

mvow

2016-07-25 04:19

reporter   ~0041840

Thanks. It's the Linux AppImage "scribus-1.5.2-linux-x86_64.AppImage" (2016-05-16), by the way.

Kunda

2016-11-09 11:35

manager   ~0042368

I can't reproduce on Manjaro Linux 16.10 Scribus 1.5.3svn r21500
Question: I see that after Sample Text is chosen a small hyphenation dialog opens up. How does one trigger that to occur ?

Kunda

2016-11-09 11:45

manager   ~0042369

@mvow would you mind retesting the latest svn? do you know ho to build from source ?

jghali

2016-11-09 12:17

administrator   ~0042371

>> Question: I see that after Sample Text is chosen a small hyphenation dialog opens up. How does one trigger that to occur ?

That can happen if you have both "hyphenation suggestions" and "Hyphenate Text Automatically during typing" options enable in hyphenation preferences.

mvow

2016-12-22 10:48

reporter   ~0043138

@Kunda I'm sorry, I can't make enough room on my disk right now and I'm not ready to upgrade Ubuntu. If the issue has disappeared in newer versions please, feel free to close this report. Thanks.

Kunda

2016-12-22 14:11

manager   ~0043149

@FirasH can you take a stab at reproducing this?

FirasH

2016-12-22 20:59

developer   ~0043164

I cannot reproduce the issue with 1.5.2 and 1.5.3.svn.
Are you sure you reported everything in the Steps?

mvow

2016-12-23 11:29

reporter   ~0043168

@FirasH I think so. A video example for the steps in attachment. For any informations please let me know. Thanks

2016-12-23_01_Scribus_Crash-when-inserting-sample-text-on-a-text-frame-of-a-new-document-after-that-previous-open-documents-had-been-closed.mp4 (1,507,538 bytes)

Kunda

2016-12-27 12:33

manager   ~0043212

Weird.
@mvow I still can't reproduce (using 1.5.3svn r21681 Manjaro 16.10 Qt 5.7)
Maybe you can try testing on a temporarily generated appimage for 1.5.3svn I created: https://transfer.sh/FsFaW/scribus-git269f1e9-glibc2.14-x86-64.appimage

mvow

2016-12-28 10:46

reporter   ~0043231

@Kunda Hi and thank you very much for the link you provided to the 1.5.3svn appimage. Unfortunately, it seems that besides with the 1.5.2 also with the 1.5.3svn version, fresh configurations, I get the same message "Program received signal SIGSEGV, Segmentation fault" (GDB report and new video example in attachment). Testing on on Ubuntu 14.04.5 LTS - unity 7.2.6 - GeForce 9800 GT NVIDIA Driver Version: 340.98

2016-12-28_02_Scribus_1.5.3.svn_fresh-prefs_Text-frame-sample-text-crash_GDB.txt (2,388 bytes)
QPainter::end: Painter not active, aborted

Program received signal SIGSEGV, Segmentation fault.
0x0000000000d14910 in LoremManager::getName() ()
(gdb) thread apply all bt

Thread 4 (Thread 0x7fffea467700 (LWP 27034)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b76648fe4 in g_main_context_poll (priority=2147483647, n_fds=1,
    fds=0x7fffe00013c0, timeout=9990, context=0x7fffe0000990)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7fffe0000990,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x0000003b766490ec in g_main_context_iteration (context=0x7fffe0000990,
    may_block=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x00007ffff3abb29c in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fffeac68700 (LWP 27033)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b76648fe4 in g_main_context_poll (priority=2147483647, n_fds=4,
    fds=0x7fffdc013cb0, timeout=-1, context=0x7fffdc000990)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7fffdc000990,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x0000003b766490ec in g_main_context_iteration (context=0x7fffdc000990,
---Type <return> to continue, or q <return> to quit---
    may_block=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x00007ffff3abb2bb in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffeb886700 (LWP 27032)):
#0  0x0000003b74aecfdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003b77209b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x0000003b7720b64f in xcb_wait_for_event ()
   from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffed403039 in ?? ()
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fffedba19c0 (LWP 26988)):
#0  0x0000000000d14910 in LoremManager::getName() ()
#1  0x0000000000ac565e in ScribusMainWindow::insertSampleText() ()
#2  0x0000000000690eb4 in ?? ()
#3  0x00007ffff3a949d5 in ?? ()
#4  0x0000000001c999c0 in ?? ()
#5  0x00007ffff41e8567 in ?? ()
#6  0x000000000161ca70 in ?? ()
#7  0x0000000000000000 in ?? ()
(gdb)

mvow

2016-12-28 10:48

reporter   ~0043233

(Video example with the 1.5.3svn)

2016-12-28_02_Scribus_1.5.3.svn_fresh-prefs_Text-frame-sample-text-crash.mp4 (1,619,614 bytes)

Kunda

2016-12-28 12:46

manager   ~0043235

mvow, thanks for your great bug reporting and promptness. Still working to understand the problem. BTW, what version of Qt does Scribus say you are running ?

mvow

2016-12-28 14:37

reporter   ~0043237

@Kunda Thanks. It says it's Qt version 5.7.0 (main menu > Help > About Qt)

mvow

2016-12-28 14:42

reporter   ~0043238

(that's with Scribus 1.5.3svn appimage)

Issue History

Date Modified Username Field Change
2016-07-21 13:57 mvow New Issue
2016-07-21 13:57 mvow File Added: 2016-07-21_01_Scribus_Crash-when-inserting-sample-text-on-a-text-frame-of-a-new-document-after-that-previous-open-documents-had-been-closed.mp4
2016-07-21 14:38 mauder Note Added: 0041825
2016-07-21 16:43 mvow Note Added: 0041826
2016-07-21 16:43 mvow File Added: 2016-07-21_01_Scribus-1.5.2_Crash-when-inserting-sample-text-on-a-text-frame-of-a-new-document-after-that-previous-open-documents-had-been-closed.txt
2016-07-21 17:58 mauder Note Edited: 0041825 View Revisions
2016-07-21 18:04 mauder Note Added: 0041827
2016-07-21 18:05 mauder Note Edited: 0041827 View Revisions
2016-07-21 19:45 mvow Note Added: 0041828
2016-07-24 12:54 jghali Note Added: 0041838
2016-07-24 14:52 PeterBenedek Note Added: 0041839
2016-07-25 04:19 mvow Note Added: 0041840
2016-11-09 11:11 Kunda Additional Information Updated View Revisions
2016-11-09 11:35 Kunda Note Added: 0042368
2016-11-09 11:45 Kunda Note Added: 0042369
2016-11-09 11:45 Kunda Assigned To => Kunda
2016-11-09 11:45 Kunda Status new => feedback
2016-11-09 12:17 jghali Note Added: 0042371
2016-12-22 10:48 mvow Note Added: 0043138
2016-12-22 10:48 mvow Status feedback => assigned
2016-12-22 14:10 Kunda Relationship added related to 0012367
2016-12-22 14:11 Kunda Note Added: 0043149
2016-12-22 14:12 Kunda Tag Attached: #tobeclosed
2016-12-22 20:59 FirasH Note Added: 0043164
2016-12-23 11:29 mvow File Added: 2016-12-23_01_Scribus_Crash-when-inserting-sample-text-on-a-text-frame-of-a-new-document-after-that-previous-open-documents-had-been-closed.mp4
2016-12-23 11:29 mvow Note Added: 0043168
2016-12-27 12:33 Kunda Note Added: 0043212
2016-12-28 10:46 mvow File Added: 2016-12-28_02_Scribus_1.5.3.svn_fresh-prefs_Text-frame-sample-text-crash_GDB.txt
2016-12-28 10:46 mvow Note Added: 0043231
2016-12-28 10:48 mvow File Added: 2016-12-28_02_Scribus_1.5.3.svn_fresh-prefs_Text-frame-sample-text-crash.mp4
2016-12-28 10:48 mvow Note Added: 0043233
2016-12-28 12:46 Kunda Note Added: 0043235
2016-12-28 14:37 mvow Note Added: 0043237
2016-12-28 14:42 mvow File Added: 2016-12-28_03_Scribus_1.5.3.svn_Text-frame-sample-text-crash_Qt-version-5.7.0.png
2016-12-28 14:42 mvow Note Added: 0043238