Bug 108297 - Crash in: SalFrame::SetCallback(vcl::Window *,bool (*)(vcl::Window *,SalEvent,void const *))
Summary: Crash in: SalFrame::SetCallback(vcl::Window *,bool (*)(vcl::Window *,SalEvent...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-02 06:13 UTC by Amol Khiste
Modified: 2017-06-02 11:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature: ["SalFrame::SetCallback(vcl::Window *,bool (*)(vcl::Window *,SalEvent,void const *))"]


Attachments
PDF file opened in Writer and saved as ODT (1.24 MB, application/vnd.oasis.opendocument.text)
2017-06-02 10:08 UTC, Amol Khiste
Details
PDF file format option in Writer open dialog (32.84 KB, image/png)
2017-06-02 11:08 UTC, Amol Khiste
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amol Khiste 2017-06-02 06:13:59 UTC
This bug was filed from the crash reporting server and is br-1709a07a-a774-47b4-ab79-6abee410db28.
=========================================

1. Opened a PDF file available here: http://www.allitebooks.com/clojure-data-structures-and-algorithms-cookbook/.
2. After opening, saved it as ODT.
After some time Writer window closed by itself without completing saving.

Also reproduced with another similar PDF file from same source (www.allitebooks.com).
Comment 1 Xisco Faulí 2017-06-02 09:30:04 UTC
Hi Amol,
Thanks for reporting the bug.
Out of curiosity, How do you convert the PDF file to .ODT ?
Comment 2 Xisco Faulí 2017-06-02 10:00:51 UTC Comment hidden (obsolete)
Comment 3 Amol Khiste 2017-06-02 10:04:39 UTC
Hi Xisco,

  > How do you convert the PDF file to .ODT ?

In Writer open file dialog, i selected file type as:
"PDF - Portable Document Format (Writer) (*.pdf)"
to open the PDF file.

(It is the last one in the list for supported Writer file formats.)

After the file opened, i then tried to save it in ODT format when Writer crashed.

By the way, i was able to save it in Linux without any crash (Writer version 5.1.6.2, build ID: 1:5.1.6~rc2-0ubuntu1~xenial2) (Ubuntu 16.04 LTS). I have attached the saved ODT file for reference.

It adds each line in the PDF in a separate "textbox" control in Writer. But overall i suppose it does a reasonably good job considering the complexity involved.

Actually i am trying to convert the PDF to ePub using the "writer2pub" extension. However, it looks like writer2pub is unable to work with the document converted from PDF above. Possibly it ignores the "textbox" controls.
Comment 4 Amol Khiste 2017-06-02 10:08:02 UTC
Created attachment 133803 [details]
PDF file opened in Writer and saved as ODT

While Writer crashed in Windows while saving the PDF file as ODT, was able to save it in Linux without any crash (Writer version 5.1.6.2, build ID: 1:5.1.6~rc2-0ubuntu1~xenial2) (Ubuntu 16.04 LTS).
Comment 5 Xisco Faulí 2017-06-02 10:24:36 UTC
(In reply to Amol Khiste from comment #3)
> Hi Xisco,
> 
>   > How do you convert the PDF file to .ODT ?
> 
> In Writer open file dialog, i selected file type as:
> "PDF - Portable Document Format (Writer) (*.pdf)"
> to open the PDF file.
> 
> (It is the last one in the list for supported Writer file formats.)

I can't find that option. are you using any extension with LibreOffice?


> By the way, i was able to save it in Linux without any crash (Writer version
> 5.1.6.2, build ID: 1:5.1.6~rc2-0ubuntu1~xenial2) (Ubuntu 16.04 LTS). I have
> attached the saved ODT file for reference.

Does LibreOffice crash if you open that file and save it again?
Comment 6 Amol Khiste 2017-06-02 11:04:10 UTC Comment hidden (obsolete)
Comment 7 Amol Khiste 2017-06-02 11:05:44 UTC
(In reply to Xisco Faulí from comment #5)
> (In reply to Amol Khiste from comment #3)
> > Hi Xisco,
> > 
> >   > How do you convert the PDF file to .ODT ?
> > 
> > In Writer open file dialog, i selected file type as:
> > "PDF - Portable Document Format (Writer) (*.pdf)"
> > to open the PDF file.
> > 
> > (It is the last one in the list for supported Writer file formats.)
> 
> I can't find that option. are you using any extension with LibreOffice?

Have attached screenshot of open dialog with the option selected.

> 
> 
> > By the way, i was able to save it in Linux without any crash (Writer version
> > 5.1.6.2, build ID: 1:5.1.6~rc2-0ubuntu1~xenial2) (Ubuntu 16.04 LTS). I have
> > attached the saved ODT file for reference.
> 
> Does LibreOffice crash if you open that file and save it again?

It crashes in Windows, not in Linux.
Comment 8 Amol Khiste 2017-06-02 11:08:12 UTC
Created attachment 133808 [details]
PDF file format option in Writer open dialog

LibreOffice Writer PDF file option in open dialog.