Ticket #1690 (closed bug: fixed)

Opened 12 months ago

Last modified 11 months ago

StyledEdit cost 100% CPU when open files

Reported by: anthonylee Owned by: jackburton
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1 development
Cc: andreasf Blocked By:
Platform: All Blocking:

Description

When I just open one file in StyledEdit, it worked fine.

Then I double click another file in Tracker in order to be opened by StyledEdit, in the mean time, StyledEdit cost 100% CPU and seemed through into dead-lock state or dead cycle.

Attachments

cwstring.pp (19.5 KB) - added by oco 11 months ago.
Here is a file to reproduce this bug

Change History

Changed 12 months ago by korli

I can't reproduce. Could you elaborate ?

Changed 12 months ago by anthonylee

I can't reproduce again because updated to SVN version lately, so I guess it's not a bug of StyledEdit.

Just don't know what's the problem before, sorry.

Thanks.

Changed 11 months ago by andreasf

  • cc andreasf added

I occasionally get this, too. Not reproducibly though.

Changed 11 months ago by nielx

Testing comment.

Changed 11 months ago by oco

Here is a file to reproduce this bug

Changed 11 months ago by jackburton

  • owner changed from korli to jackburton

Changed 11 months ago by jackburton

  • status changed from new to assigned
  • component changed from Applications/StyledEdit to Kits/Interface Kit

Looks like the culprit is BTextView::_RecalculateLineBreaks().

Changed 11 months ago by korli

Also when testing with Dano StyledEdit, I noticed it kept the document at its position (somehow) when activating/deactivating word wrapping, whereas Haiku StyledEdit reset the position at the beginning.

Changed 11 months ago by jackburton

  • status changed from assigned to closed
  • resolution set to fixed

It's fixed in r24071

Note: See TracTickets for help on using tickets.