https://bugs.freedesktop.org/show_bug.cgi?id=58859

          Priority: medium
            Bug ID: 58859
          Assignee: [email protected]
           Summary: When the software using SDK is started, Calc under
                    operation is an abnormal end.
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: x86 (IA32)
            Status: UNCONFIRMED
           Version: Master old  -3.6
         Component: sdk
           Product: LibreOffice

Hi,
I developed the following software.(Japanese)
http://www.ne.jp/asahi/soft/miday/Calc_Moji/Calc_MojiLinux.html

This software processes the data copied from Calc.
This software referred to DocumentLoader.cxx of example and was created.

32bit  http://www.ne.jp/asahi/soft/miday/Calc_Moji/CtoMail32.tar.gz
64bit  http://www.ne.jp/asahi/soft/miday/Calc_Moji/CtoMail64.tar.gz
source http://www.ne.jp/asahi/soft/miday/Calc_Moji/CtoM_src.zip
  The command for build.(it performs with the holder of src)
  The comment of source is Japanese.

    src/uni_mst/linux build.sh

Execution environment
  OS: Ubuntu 12.04 32bit / 10.04 64bit(or other version)
  LibreOffice 3.5.6rc2 / 3.5.7.2 / 3.6.4.3
 Java: Sun Microsystems Inc. 1.6.0_24
    (In the case of Ubuntu 12.04 32bit/10.04 32bit/10.04 64bit LibreOffice
3.6.4.3)
  memory: 1GB

Development environment
 OS: Ubuntu 10.04 32bit / 64bit
  LibreOffice SDK and gtk is used.

This software is displaying and creating the book of Calc.
I want to create book by un-displaying.
When Calc has already started, if this software creates a book by
un-displaying, Calc will carry out an abnormal end.

------------------------------------------------------
This software carries out the following processing.
(1) Create the book of calc.
(2) It pastes from a clipboard.
(3) Choose the pasted cell in order.
(4) It is processed.
(5) The processed data is outputted to a clipboard.

The place which carries out an abnormal end
  This soft following execution sentence of a CalcSDK.cpp file.
    xCloseable->close(false);

The place which is actually carrying out the abnormal end
  LibreOffice File of sc/source/ui/view/tabvwsh4.cxx
ScTabViewShell::~ScTabViewShell() The following execution sentence of a method.
    DELETEZ(pInputHandler);

------------------------------------------------------
The measure method which I considered
 LibreOffice sfx2/source/view/sfxbasecontroller.cxx The following line of a
file is looked for.

    DBG_ASSERT( !rFrame.IsInPlace() && !bHasPluginMode, "Special modes not
compatible with hidden mode!" );

It has bypassed by adding the following line before the line.

    if ( rDoc.IsHelpDocument() || ( nPluginMode == 2 ) )
      pViewFrame->GetDispatcher()->HideUI( sal_True );
    else
      pViewFrame->GetDispatcher()->HideUI( sal_False );
    pViewFrame->Show();

The sauce which corrected 3.5.6, and built libsfxlo.so file.
It does not operate in 3.6.x.
http://www.ne.jp/asahi/soft/miday/LibreOffice/3.5.6_customize.tar.gz
If libsfxlo.so is replaced with /opt/libreoffice3.5/program/libsfxlo.so, the
abnormal end of the calc will not be carried out.
Please return a file, if a test finishes.

I want an addition to inquire.
Or I want me to tell where of source should be corrected.
I do not understand a meaning, program structure, etc. of a variable.
A problem may be in a different place.

------------------------------------------------------
The method of a test
1. The file of CtoMail.ini is created in order to make it hide. (*1)(*2)
2. Calc is started.
3. 20*20 or more large ranges are chosen. (*3)
4. A border is attached. (*4)
5. It copies. (*5)
6. CtoMail_e is double-clicked and started.
7. Since the dialog of the "OK" button is displayed, before pushing "OK", it
pastes on an editor. (*6)

(*1) In order to create the window of Calc by hide, the file of CtoMail.ini is
created in the same holder as CtoMail_e, and the two following lines are
described.

[Evasion]
Evasion=OFF

    Only the loadComponentFromURL method of a CalcSDK.cpp file is influenced by
an Evasion parameter.

(*2) When two or more LibreOffice's are installed, a path is specified clearly.
Specification of a path writes to the file of CtoMail.ini.

Office_path: The path of the holder with which "soffice.bin" is stored is
specified.
Rdb_path:    The path of the holder with which "offapi.rdb" is stored is
specified.

ex.
[Path]
Office_path=/opt/libreoffice3.6/program
Rdb_path=/opt/libreoffice3.6/program/types

(*3) A possibility of carrying out an abnormal end becomes high, so that the
selection range is large.
(*4) When a border is not attached, since the dialog of "OK/Cancel" is
displayed, the "OK" button is pushed.
(*5) It copies from Calc. Calc is not started to copy from an editor.
(*6) The icon of an information is displayed when it is not an abnormal end.
    In the case of an abnormal end, the icon of an error is displayed.
    An abnormal end is not carried out on condition of following.
    - Display a book.
    - Substitute libsfxlo.so by LibreOffice 3.5.x
    - When there are few selected cells

------------------------------------------------------
Sauce which removed processing of a clipboard, and processing of attribute
extraction and simplified them from CtoMail_e. A message is English.
http://www.ne.jp/asahi/soft/miday/Calc_Moji/CtoTest.tar.gz
  The command for build
    com.sh

This software carries out the following processing.
(1)  Create the book of calc.
(2)  Choose in order the cell specified by CtoMail.ini.

The method of a test
1. Edit the file of CtoMail.ini. (*7)
2. Start Calc.
3. Double-click and start CtoMail_t.

(*7)  Edit the file of CtoMail.ini in the same holder as CtoMail_t. 
Evasion:   "=OFF" It is hide about a window.    "=ON" It is show about a
window.
Col :      The number of column of the cell to choose is specified.
Row :      The number of lines of the cell to choose is specified.

ex.
[Evasion]
Evasion=OFF
Col=30
Row=30

If a book is made hide and the value of Col and Row is enlarged, Calc will
carry out an abnormal end.
In 64 bits of 3.6.4.3, Calc carries out an abnormal end at the 50*50 place.

Regards,

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to