Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

F&R crash with multiple replace Next #1219

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There still seems to be a crash issue - this with replace next not replace all 
so this may be different.  I get this on 0.5.0 Ubuntu 11.10 and on source 
compiled including the revision mentioned above.

File attached - very simple with a few files and very little text.

Open, go to Book View, Cursor at start
Open F&R, set Normal, Look in Current File, type Heading into the Find box, 
nothing in the replace box.

Click on Replace Next
->1st heading highlighted
Click on Replace Next
->1st heading is removed, second heading is chopped to just "ng 1.2" when it 
should have just been highlighted, and the 3rd heading is highlighted
Check on Replace Next
-> Crash

ASSERT: "input.start_node != NULL && input.end_node != NULL" in file 
/home/sigil/meme9000x-sigil-updates/src/Sigil/ViewEditors/BookViewEditor.cpp, 
line 833

#0  0x00130416 in __kernel_vsyscall ()
#1  0x0244fc8f in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0x024532b5 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0x020983ba in qt_message_output(QtMsgType, char const*) () from 
/opt/sigil/libQtCore.so.4
#4  0x02098581 in ?? () from /opt/sigil/libQtCore.so.4
#5  0x02098689 in qFatal(char const*, ...) () from /opt/sigil/libQtCore.so.4
#6  0x02098715 in qt_assert(char const*, char const*, int) () from 
/opt/sigil/libQtCore.so.4
#7  0x083ffbf6 in BookViewEditor::GetRangeInputs (this=0x9422180, 
node_offsets=..., string_start=25, 
    string_length=32)
    at /home/sigil/meme9000x-sigil-updates/src/Sigil/ViewEditors/BookViewEditor.cpp:833
#8  0x083fe3b0 in BookViewEditor::ReplaceSelected (this=0x9422180, 
search_regex=..., replacement=..., 
    search_tools=..., direction=Searchable::Direction_Down)
    at /home/sigil/meme9000x-sigil-updates/src/Sigil/ViewEditors/BookViewEditor.cpp:425
#9  0x083fe273 in BookViewEditor::ReplaceSelected (this=0x9422180, 
search_regex=..., replacement=..., 
    direction=Searchable::Direction_Down)
    at /home/sigil/meme9000x-sigil-updates/src/Sigil/ViewEditors/BookViewEditor.cpp:409
#10 0x084252df in FindReplace::ReplaceText (this=0x8c9fe18, 
direction=Searchable::Direction_Down)
    at /home/sigil/meme9000x-sigil-updates/src/Sigil/MainUI/FindReplace.cpp:292
#11 0x08424d99 in FindReplace::ReplaceNext (this=0x8c9fe18)
    at /home/meme9000x-sigil-updates/src/Sigil/MainUI/FindReplace.cpp:162
#12 0x084404b7 in FindReplace::qt_metacall (this=0x8c9fe18, 
_c=QMetaObject::InvokeMetaMethod, _id=6, 
    _a=0xbfffe258) at /home/sigil-build/src/Sigil/MainUI/moc_FindReplace.cxx:92
#13 0x0219d6ba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, 
void**) ()
   from /opt/sigil/libQtCore.so.4

Original issue reported on code.google.com by meme90...@gmail.com on 31 Jan 2012 at 6:00

Attachments:

GoogleCodeExporter commented 9 years ago
I've disabled replace in book view simply because it doesn't work properly. 
Until this can be fixed it will remain disabled. Unfortunately, I don't see 
this as being fixable while using the current BV implementation.

Original comment by john@nachtimwald.com on 1 Feb 2012 at 12:37

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:20