Bug 91972 - CustomToolPanel extension causes blank context menus
Summary: CustomToolPanel extension causes blank context menus
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.0.0.0.beta1
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-09 18:22 UTC by testdruide
Modified: 2017-07-27 12:02 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
the extension «CustomToolPanel.oxt» (23.46 KB, application/vnd.openofficeorg.extension)
2015-06-09 19:22 UTC, testdruide
Details
menu contextual display (24.30 KB, image/png)
2015-06-10 19:19 UTC, testdruide
Details

Note You need to log in before you can comment on or make changes to this bug.
Description testdruide 2015-06-09 18:22:36 UTC
I have installed an extension which adds a tab in the SideBar panel. This extension is based on the sample code link below.

http://svn.apache.org/repos/asf/openoffice/trunk/main/odk/examples/cpp/custompanel/


LibreOffice 5 crashes at the execution of the following steps:

1. Start LibreOffice.
2. Install “CustomToolPanel.oxt” in LibreOffice.
3. Quit LibreOffice.
4. Start LibreOffice.
5. Click on “Document Writer” in the startup window.
6. Select the tab “CustomToolPanel” in the Sidebar panel (icon with X).
7. Select another tab in the Sidebar panel.


This extension works very well with LibreOffice 4.4.x.
Comment 1 testdruide 2015-06-09 19:22:03 UTC
Created attachment 116429 [details]
the extension «CustomToolPanel.oxt»
Comment 2 testdruide 2015-06-10 19:06:30 UTC
LibreOffice 5.0.0.0.beta3 doesn’t crash anymore on the sequence describe in the last comment, but there is another problem. When the tab " CustomToolPanel " is selected in the panel of the sidebar , all context menus in LibreOffice cannot be displayed.
Comment 3 testdruide 2015-06-10 19:19:22 UTC
Created attachment 116442 [details]
menu contextual display
Comment 4 testdruide 2015-06-11 15:10:49 UTC
Sorry, I forgot to mention one thing. The extension «CustomToolPanel.oxt» (see attachments) needs the distributable of «Visual C++ Redistributable Packages for Visual Studio 2013» to work.

link : https://www.microsoft.com/en-us/download/details.aspx?id=40784
Comment 5 testdruide 2015-07-30 15:31:24 UTC
The problem is still there with the prerelease version of LibreOffice (5.0.0.4).
Comment 6 Buovjaga 2015-07-30 16:43:11 UTC
(In reply to testdruide from comment #2)
> LibreOffice 5.0.0.0.beta3 doesn’t crash anymore on the sequence describe in
> the last comment, but there is another problem. When the tab "
> CustomToolPanel " is selected in the panel of the sidebar , all context
> menus in LibreOffice cannot be displayed.

Not reproduced. Can display right-click context menus ok.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
TinderBox: Win-x86@39, Branch:master, Time: 2015-07-30_03:52:07
Locale: en-US (fi_FI)
Comment 7 testdruide 2015-07-31 15:28:40 UTC
(In reply to Beluga from comment #6)
> (In reply to testdruide from comment #2)
> > LibreOffice 5.0.0.0.beta3 doesn’t crash anymore on the sequence describe in
> > the last comment, but there is another problem. When the tab "
> > CustomToolPanel " is selected in the panel of the sidebar , all context
> > menus in LibreOffice cannot be displayed.
> 
> Not reproduced. Can display right-click context menus ok.
> 
> Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
> Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
> TinderBox: Win-x86@39, Branch:master, Time: 2015-07-30_03:52:07
> Locale: en-US (fi_FI)

Here tested configuation:
 - Windows 8.1
 - LibreOffice 5.0.0.4 (32-bit)

Where can I get the "5.1.0.0.alpha1" version of LibreOffice? I can only get the "5.0.0.5" version on the website: http://dev-builds.libreoffice.org/pre-releases/

Note: The extension attached to the bug report is compiled in 32 bits. The test must be performed with LibreOffice 32 bits. The extension was built with Visual Studio 2013. The redistributable of «Visual C++ Redistributable Packages for Visual Studio 2013»must be installed.
Comment 8 Buovjaga 2015-07-31 15:37:59 UTC
(In reply to testdruide from comment #7)
> Where can I get the "5.1.0.0.alpha1" version of LibreOffice? I can only get
> the "5.0.0.5" version on the website:
> http://dev-builds.libreoffice.org/pre-releases/
> 
> Note: The extension attached to the bug report is compiled in 32 bits. The
> test must be performed with LibreOffice 32 bits. The extension was built
> with Visual Studio 2013. The redistributable of «Visual C++ Redistributable
> Packages for Visual Studio 2013»must be installed.

Here is one tinderbox for 5.1 builds: http://dev-builds.libreoffice.org/daily/master/Win-x86@39/

My LibreOffice was 32-bit.
Comment 9 testdruide 2015-07-31 16:04:39 UTC
(In reply to Beluga from comment #8)
> (In reply to testdruide from comment #7)
> > Where can I get the "5.1.0.0.alpha1" version of LibreOffice? I can only get
> > the "5.0.0.5" version on the website:
> > http://dev-builds.libreoffice.org/pre-releases/
> > 
> > Note: The extension attached to the bug report is compiled in 32 bits. The
> > test must be performed with LibreOffice 32 bits. The extension was built
> > with Visual Studio 2013. The redistributable of «Visual C++ Redistributable
> > Packages for Visual Studio 2013»must be installed.
> 
> Here is one tinderbox for 5.1 builds:
> http://dev-builds.libreoffice.org/daily/master/Win-x86@39/
> 
> My LibreOffice was 32-bit.

thank you a lot. The problem is indeed disappeared.
Comment 10 Buovjaga 2015-07-31 16:09:58 UTC
(In reply to testdruide from comment #9)
> thank you a lot. The problem is indeed disappeared.

Is the problem still in 5.0 RC5 though?
Comment 11 testdruide 2015-07-31 17:52:55 UTC
(In reply to Beluga from comment #10)
> (In reply to testdruide from comment #9)
> > thank you a lot. The problem is indeed disappeared.
> 
> Is the problem still in 5.0 RC5 though?

The problem still there in 5.0 RC5. 

download here : http://dev-builds.libreoffice.org/pre-releases/win/x86/
Comment 12 Buovjaga 2015-08-03 09:53:34 UTC
(In reply to testdruide from comment #11)
> (In reply to Beluga from comment #10)
> > (In reply to testdruide from comment #9)
> > > thank you a lot. The problem is indeed disappeared.
> > 
> > Is the problem still in 5.0 RC5 though?
> 
> The problem still there in 5.0 RC5. 
> 
> download here : http://dev-builds.libreoffice.org/pre-releases/win/x86/

All menus and context menus work ok for me, if I am in the Custom panel.

I wonder, if you should try this for your 5.0: https://wiki.documentfoundation.org/UserProfile#Resolving_corruption_in_the_user_profile

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: fi-FI (fi_FI)
Comment 13 testdruide 2015-08-03 17:02:05 UTC
(In reply to Beluga from comment #12)
> (In reply to testdruide from comment #11)
> > (In reply to Beluga from comment #10)
> > > (In reply to testdruide from comment #9)
> > > > thank you a lot. The problem is indeed disappeared.
> > > 
> > > Is the problem still in 5.0 RC5 though?
> > 
> > The problem still there in 5.0 RC5. 
> > 
> > download here : http://dev-builds.libreoffice.org/pre-releases/win/x86/
> 
> All menus and context menus work ok for me, if I am in the Custom panel.
> 
> I wonder, if you should try this for your 5.0:
> https://wiki.documentfoundation.org/
> UserProfile#Resolving_corruption_in_the_user_profile
> 
> Version: 5.0.0.5
> Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
> Locale: fi-FI (fi_FI)

The problem remains after the deletion of the folder "user profile" of LibreOffice. I restarted the computer and nothing has change.
Comment 14 V Stuart Foote 2015-12-15 14:34:37 UTC
@tesdruide,

Might suggest rather than this abandoned SVN branch, you build against the LibreOffice git sources, browsable here http://opengrok.libreoffice.org/xref/core/odk/examples/cpp/custompanel/  where generic code clean-up applicable to LibreOffice occurs--Toolkit2 call to Toolkit rather than XToolkit for example
 as was done here http://cgit.freedesktop.org/libreoffice/core/commit/?id=33a0f8ce656c8c5bb9c3c3deaa10c182e262b374

@Laurent, bubli

While this is just a toy, I did not realize Andre Fischer had provided C++ sample code framework for doing custom content panels.

Any perspective from you on OPs use of Andre's original Sidebar work? Seems a little unreasonable to expect an extension so built to work reliably with the LibreOffice refactoring of the Sidebar.

Do you have anything similar you can post to Wiki for demonstrating recent Sidebar API work?  I saw the note at https://bugs.documentfoundation.org/show_bug.cgi?id=91806#c8 so in addition to a C++ example, would a Python PyUno example for the ODK be more appealing since you've provided the unit testing in Python?
Comment 15 tommy27 2016-12-03 06:33:52 UTC
I think this but report needs retesting from the original reporter with latest LibO 5.2.3.3 release. more than 1 year passed by from his latest post.

please give an update of the bug status and tell if issue persists or not.

status NEEDINFO
Comment 16 QA Administrators 2017-06-28 12:36:35 UTC Comment hidden (obsolete)
Comment 17 QA Administrators 2017-07-27 12:02:04 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20170727