View Issue Details

IDProjectCategoryView StatusLast Update
0004513ScribusStory Editor / Text Framespublic2012-07-09 18:40
ReporterRvX Assigned Toale  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformAthlon 1 Ghz, 512 MB RAMOSXubuntu LinuxOS Version6.0.6.1
Product Version1.3.3.5 
Summary0004513: 100% cpu usage while aligning the text
DescriptionWhen I open Story Editor and try to align the text, Scribus takes up 100% cpu and freezes my PC for nice amount of time. Opening Story Editor seems to be more slow that it should.
TagsNo tags attached.
Patch

Relationships

child of 0002438 acknowledged Metabug: Cases of extreme memory use 

Activities

mhanski

2006-11-11 18:24

developer   ~0013360

cannot replicate on Kubuntu Dapper Drake (system up to date) with scribus 1.3.3.5. Could you please upload a sample document which causes this behaviour?

2006-11-11 20:08

 

RvX_lorem_ipsum.sla.gz (40,709 bytes)

mhanski

2006-11-11 21:18

developer   ~0013362

I cannot even open the attached file in Scribus 1.3.3.5 on Kubuntu, keep getting the fatal error: "File blabla is not in an acceptable format". Switching to WinXP to check it there.

Rvx, the file seems to be damaged somehow, what steps exactly have you performed on this file?

mhanski

2006-11-11 21:34

developer   ~0013363

The same fatal error while opening your attachment on WinXP with 1.3.3.5. Are you sure you uploaded the right file? Are you able to open it yourself with 1.3.3.5?

btw, neither does text aligning in Story Editor cause high cpu load with scribus 1.3.3.5 on WinXP.

RvX

2006-11-11 21:35

reporter   ~0013364

Last edited: 2006-11-11 21:37

I have added 4 thin text frames, splat them and inserted 20 paragraphs of Lorem ipsum. Then I have switched to the Story Editor and selected all and applied justified alignment. And then I got 100% cpu for several minutes (about 10).

EDIT:
This file, I uploaded, is able to be opened on my Scribus.

mhanski

2006-11-11 21:56

developer   ~0013365

Reminder sent to: cbradney

cbradney, could you check on your Gentoo, if you get the same behaviour as me on Kubuntu:

-- create 4 text frames and chain them
-- fill them with 20 pars of Lorem ipsum
-- open the Story editor
-- select all and justify the text.

The CPU load goes immediately to 100%, in my case it lasts 13 secs until Scribus responses again (Pentium M 1.5 Ghz and 768 MB RAM here)

cbradney

2006-11-11 22:29

administrator   ~0013366

Yes, but a lot longer than 13s (Core Duo 2ghz)

mhanski

2006-11-11 22:40

developer   ~0013367

thx craig, I'm confirming it now

cbradney

2006-11-11 22:54

administrator   ~0013368

I doubt there is anything we can do until 1.3.4 or later though, unfortunately.

mkoren

2006-11-12 18:36

reporter   ~0013384

It seems that changing pretty much anything for blocks of text in the SE takes longer than on the canvas--setting parastyle for existing paragraphs is slow too, especially with hyphenated text.

On a similar note, I recently waited half an hour for the SE to refresh after going to the edit styles manager from there while editing 7 pages of justified hyphenated text, and it still wasn't done until after I left and came back later. The best part was, the styles I had edited weren't even in use yet in the text! Doing the same kind of style edit operation initiated from the canvas worked fine.

I think even telling the code to internally close and reopen the story text and applying large changes in "canvas mode"/non-SE-mode would be a lot faster here. Any optimizations in the short term would be appreciated. :)

cbradney

2006-11-13 00:54

administrator   ~0013390

Found it! Its the story/paragraph counter in SE. Slow regular expressions.

mhanski

2006-11-13 11:15

developer   ~0013392

Great news! Do you have a quick&dirty workaround in mind to ease the pain?

I've just tested the issue with 1.3.4cvs from yesterday (the same steps as for 1.3.3.5) -- 1.3.4cvs suffers from it too, although the 100% load lasts a little shorter here (about 10s in my case)

ale

2012-07-05 17:06

manager   ~0028374

in 1.4 justifying 20 paragraphs of lorem ipsum takes 0s

Issue History

Date Modified Username Field Change
2006-11-11 17:41 RvX New Issue
2006-11-11 18:00 jo-hannes Severity block => minor
2006-11-11 18:24 mhanski Note Added: 0013360
2006-11-11 18:24 mhanski Status new => feedback
2006-11-11 20:08 RvX File Added: RvX_lorem_ipsum.sla.gz
2006-11-11 21:18 mhanski Note Added: 0013362
2006-11-11 21:34 mhanski Note Added: 0013363
2006-11-11 21:35 RvX Note Added: 0013364
2006-11-11 21:35 RvX Note Edited: 0013364
2006-11-11 21:37 RvX Note Edited: 0013364
2006-11-11 21:56 mhanski Note Added: 0013365
2006-11-11 21:58 mhanski Relationship added child of 0002438
2006-11-11 22:04 mhanski Platform PC => Athlon 1 Ghz, 512 MB RAM
2006-11-11 22:29 cbradney Note Added: 0013366
2006-11-11 22:40 mhanski Note Added: 0013367
2006-11-11 22:40 mhanski Status feedback => confirmed
2006-11-11 22:54 cbradney Note Added: 0013368
2006-11-12 18:36 mkoren Note Added: 0013384
2006-11-13 00:54 cbradney Note Added: 0013390
2006-11-13 09:34 mhanski Severity minor => major
2006-11-13 11:15 mhanski Note Added: 0013392
2012-07-05 17:06 ale Note Added: 0028374
2012-07-05 17:07 ale Status confirmed => resolved
2012-07-05 17:07 ale Resolution open => no change required
2012-07-05 17:07 ale Assigned To => ale
2012-07-09 18:40 cbradney Status resolved => closed
2015-09-17 20:08 Kunda Category Story Editor / Text Frames => Story Ed/Txt Frames
2015-09-17 20:12 Kunda Category Story Ed/Txt Frames => Story Editor / Text Frames