Bug 76603

Summary: LO crashes when paste Macro-content from a Windows server to LibreOffice Basic IDE on a Remote-Windows-desktop
Product: LibreOffice Reporter: Diego Ariel <d.a.capeletti>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: NEEDINFO --- QA Contact:
Severity: normal    
Priority: medium CC: d.a.capeletti, iplaw67, lionel, lo_bugs, qubit, reisi007, todventtu
Version: 4.2.1.1 release   
Hardware: Other   
OS: Windows (All)   
Whiteboard: BSA
i915 platform: i915 features:
Attachments: A sample video with images of how the problem plays.

Description Diego Ariel 2014-03-25 18:40:42 UTC
Created attachment 96378 [details]
A sample video with images of how the problem plays.

Problem description: 
I'm currently migrating an application from Microsoft Access to Libreoffice Base. The application I'm migrating is located on a remote machine and I connect to it via remote desktop.
The remote machine has a Windows 2003 Server operating system that has Microsoft Access installed. The local machine where the application I'm migrating Windows XP installed Libreoffice Base. I use Remote Desktop from my local machine to connect to Windows Server.
The problem is reproduced in Windows XP and Windows 7. I have not tried other Windows systems. In GNU/Linux distribution Ubuntu 12.04 LST (64 bits) this error does not play as remmina using Remote Desktop.

Steps to reproduce:
I copy code from Microsoft Access to the local Remote Desktop window Libreoffice Basic (Base) shows an empty message and closes completely.

Current behavior:
Displays an empty message and closes.

Expected behavior:

Allowing paste and save the code of Microsoft Access (VBA) in LibreOffice Basic (Base) using Windows Remote Desktop.

              
Operating System: Windows XP
Version: 4.2.1.1 release
Comment 1 Florian Reisinger 2014-09-04 13:44:10 UTC
Your setup is  too complex to reproduce it ourselfs.
Either you pay for professional support (e.g. https://www.collabora.com/ ) or you could help debugging or maybe Lionel has an idea. BTW: VBA is not perfectly supported by LibreOffice.
@Lionel: What do you think?
Comment 2 Lionel Elie Mamane 2014-09-04 15:26:37 UTC
This looks rather unrelated to VBA, and unrelated to Database as such. I understand/guess Diego is just pasting text (which happens to be basic code) into the Basic IDE. The crash may be unrelated the Remote Desktop thing. We need to find the thing, among all the setup, that is essential to the crash.

Diego:

1) Does it crash if you paste exactly the same text, but from:
   1.1) a *local* notepad
   1.2) a *remote* notepage

2) Does it crash if you paste exactly the same text in exactly the same way,
   into the Basic IDE for a Calc document instead of a Base document?

3) Does it crash if you copy/paste a *different* text in exactly the same way,
   say just a short string like "foo"?

4) Does it crash if you copy/paste the same text in the same way,
   but from an Access on the same machine to a LibreOffice on the same machine?

It would be nice to have a backtrace indeed... the crash may be in the syntax highligting code or something like that.
Comment 3 Diego Ariel 2014-09-15 11:16:33 UTC
Correct. What I do is paste a text from VBA using remote desktop to Basic Base.
1
   1.1: If the remote text stick it to a local book, and the basic book of libreoffice does not appear error.
   2.1: If I get the text from a remote notepad, the error does not appear.

2. If I paste the text from the remote computer vba to a VB Calc or Writer, the same error appears.

3. If you copy a text, for example a comment from the remote computer VBA to VBA Libreoffice, the same error appears. Rem from the remote using vba and paste in vb libreoffice, same error. From a remote notepad, the error does not appear.

4. If copy and paste the text to a local vba libreoffice same remote computer, the error does not appear.

How I can get a backtrace on Windows? Help there somewhere?
Comment 4 Beluga 2014-10-24 13:58:44 UTC
(In reply to Diego Ariel from comment #3)
> How I can get a backtrace on Windows? Help there somewhere?

https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg
Comment 5 Robinson Tryon (qubit) 2014-12-29 06:26:14 UTC
(In reply to Beluga from comment #4)
> (In reply to Diego Ariel from comment #3)
> > How I can get a backtrace on Windows? Help there somewhere?
> 
> https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

Waiting on a backtrace: Status -> NEEDINFO
Comment 6 Alex Thurgood 2015-01-03 17:40:39 UTC
Adding self to CC if not already on

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.