What steps will reproduce the problem?
1. Open an epub which has content.opf with malformed xml
2. Epub crashes
What is the expected output? What do you see instead?
At least show an error message, but don't crash.
What version of the product are you using? On what operating system?
Sigil 0.4.2, OS X 10.7.2
The crash information from Sigil is:
Error info: Cannot load file /Users/xrm0/Desktop/malformed.epub:
/Users/john/Tmp/s/sc/src/Sigil/Importers/ImportOEBPS.cpp(351): Throw in
function QString ImportOEBPS::GetNCXId()
Dynamic exception type: boost::exception_detail::clone_impl<ErrorParsingOpf>
std::exception::what: std::exception
[line_number*] = 9
[error_string*] = Opening and ending tag mismatch.
[column_number*] = 13
Sigil version: 0.4.2
Runtime Qt: 4.7.3
Compiled Qt: 4.7.3
Platform: Mac SysInfo ID 9
The attached epub has the <dc:title> not closed on purpose to reproduce the
error.
Original issue reported on code.google.com by lparr...@gmail.com on 17 Nov 2011 at 3:20
Original issue reported on code.google.com by
lparr...@gmail.com
on 17 Nov 2011 at 3:20Attachments: