[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #17 from QA Administrators --- Dear Lionel Elie Mamane, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #16 from Buovjaga --- (In reply to Lionel Elie Mamane from comment #15) > Reproduced on 6.3.0.4 (Debian package). > I think you didn't follow the following step in the reproduction > instructions: > > Put in "My Macros" the following (beware bugzilla's word wrap): > > Sub showThisComponent > MsgBox "Macro in ""My Macros"": " & _ > > thisComponent.supportsService("com.sun.star.document.OfficeDocument") > End Sub You are right, I repro as well after doing this. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #15 from Lionel Elie Mamane --- Reproduced on 6.3.0.4 (Debian package). (In reply to Buovjaga from comment #14) > I get > BASIC runtime error. > Variable not defined. > > for showThisComponent() even when opening the file with Low macro security > setting. I think you didn't follow the following step in the reproduction instructions: Put in "My Macros" the following (beware bugzilla's word wrap): Sub showThisComponent MsgBox "Macro in ""My Macros"": " & _ thisComponent.supportsService("com.sun.star.document.OfficeDocument") End Sub -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #14 from Buovjaga --- I get BASIC runtime error. Variable not defined. for showThisComponent() even when opening the file with Low macro security setting. Lionel: can you please re-test? This report is one of the few still remaining in the VclPtr meta bug. Arch Linux 64-bit Version: 6.4.0.0.alpha0+ Build ID: 37fc9f51a8de11d40632e8cda17ccf1fa4b1f503 CPU threads: 8; OS: Linux 5.2; UI render: default; VCL: gtk3; Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US Calc: threaded Built on 6 August 2019 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #13 from QA Administrators--- ** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #12 from Lionel Elie Mamane--- Nah, using SAL_USE_VCLPLUGIN=gtk does not make it disappear. My local build is with --enable-dbgutil... Is that the difference? But the Debian package that I test is a release build... Reproduced with (TDF build) Version: 5.2.7.2 Build ID: 2b7f1e640c46ceb28adf43ee075a6e8b8439ed10 CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Locale: en-GB (en_GB.utf8); Calc: group I tried again several times with Version: 5.3.2.2 Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1 CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Layout Engine: new; Locale: en-GB (en_GB.utf8); Calc: group Often it works, sometimes not. So it definitely smells like a race condition. Ah, now reproduced with Version: 5.5.0.0.alpha0+ Build ID: d880df3a44497cdec49017538a9d38d48e543bad CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: gtk2; TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-05-19_07:51:21 Locale: en-GB (en_GB.utf8); Calc: group after several tries... like 10. Ah, I found a way to reproduce each time: settings: medium security, giving a warning and a choice "enable macros" or "disable macros". $ /opt/libreofficedev5.5/program/soffice attachment_117261 # give focus to another non-LibreOffice window # give focus back to security warning window WITHOUT GOING THROUGH focus to LibreOffice main window (which would "pass" its focus to the security warning window) # click "Enable Macros" On the other hand, this *always* works (bug does not appear): $ /opt/libreofficedev5.5/program/soffice attachment_117261 # give focus to another non-LibreOffice window # give focus back LibreOffce main window; it "passes" its focus to the security warning window # click "Enable Macros" -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #11 from Lionel Elie Mamane--- (In reply to Buovjaga from comment #10) > Tried with Xray 5.2. It works for me: Macro in "My Macros": True > Could it be this work fixed it: bug 105735 / bug 107029 ? >From reading these bugs, I think not. Retested and reproduced with Version: 5.2.5.1 Build ID: 1:5.2.5-2 CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; Locale: en-GB (en_GB.utf8); Calc: group Version: 5.3.4.0.0+ Build ID: (Lionel's development build; updated to commit 8501821f3b5ad541c40b5465aab000a6960b97ba Author: Katarina Behrens AuthorDate: Wed May 3 16:55:00 2017 +0200 Commit: Caolán McNamara CommitDate: Tue May 9 09:50:21 2017 +0200) CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; Layout Engine: new; Locale: en-GB (en_GB.utf8); Calc: group but NOT reproduced with any of: Version: 5.3.4.0.0+ Build ID: 5756d3d5bd2175335ac302aaa806fd5f2277f564 CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Layout Engine: new; TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-3, Time: 2017-05-19_06:34:54 Locale: en-GB (en_GB.utf8); Calc: group Version: 5.3.3.2 Build ID: 3d9a8b4b4e538a85e0782bd6c2d430bafe583448 CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Layout Engine: new; Locale: en-GB (en_GB.utf8); Calc: group Version: 5.3.2.2 Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1 CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Layout Engine: new; Locale: en-GB (en_GB.utf8); Calc: group Version: 5.5.0.0.alpha0+ Build ID: d880df3a44497cdec49017538a9d38d48e543bad CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: gtk2; TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-05-19_07:51:21 Locale: en-GB (en_GB.utf8); Calc: group Hmm... Might be linked to gtk3, or might be fixed. More testing needed. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Buovjagachanged: What|Removed |Added CC||todven...@suomi24.fi --- Comment #10 from Buovjaga --- Tried with Xray 5.2. It works for me: Macro in "My Macros": True Could it be this work fixed it: bug 105735 / bug 107029 ? Arch Linux 64-bit, KDE Plasma 5 Version: 5.5.0.0.alpha0+ Build ID: cee02e81cd3b55fb46eacf5db5713e8bf4363bcd CPU threads: 8; OS: Linux 4.10; UI render: default; VCL: kde4; Locale: fi-FI (fi_FI.UTF-8); Calc: group Built on May 19th 2017 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Julien Nabetchanged: What|Removed |Added CC||serval2...@yahoo.fr --- Comment #9 from Julien Nabet --- On pc Debian x86-64 with master sources updated today (+enable-dbgutil), I could reproduce this. I noticed this on console: warn:xmloff.core:20330:1:xmloff/source/core/xmlimp.cxx:1011: exception caught warn:legacy.osl:20330:1:xmloff/source/core/xmlimp.cxx:1012: DBG_UNHANDLED_EXCEPTION in virtual void SvXMLImport::setTargetDocument(const com::sun::star::uno::Reference&) type: com.sun.star.lang.NotInitializedException context: N8dbaccess17ODatabaseDocumentE warn:xmloff.core:20330:1:xmloff/source/core/xmlimp.cxx:1011: exception caught warn:legacy.osl:20330:1:xmloff/source/core/xmlimp.cxx:1012: DBG_UNHANDLED_EXCEPTION in virtual void SvXMLImport::setTargetDocument(const com::sun::star::uno::Reference&) type: com.sun.star.lang.NotInitializedException context: N8dbaccess17ODatabaseDocumentE warn:xmloff.core:20330:1:xmloff/source/core/xmlimp.cxx:1011: exception caught warn:legacy.osl:20330:1:xmloff/source/core/xmlimp.cxx:1012: DBG_UNHANDLED_EXCEPTION in virtual void SvXMLImport::setTargetDocument(const com::sun::star::uno::Reference&) type: com.sun.star.lang.NotInitializedException context: N8dbaccess17ODatabaseDocumentE warn:legacy.osl:20330:7:basctl/source/basicide/doceventnotifier.cxx:127: DocumentEventNotifier::Impl::notifyEvent: illegal source document! warn:legacy.osl:20330:7:basctl/source/basicide/doceventnotifier.cxx:127: DocumentEventNotifier::Impl::notifyEvent: illegal source document! warn:legacy.osl:20330:7:basctl/source/basicide/doceventnotifier.cxx:127: DocumentEventNotifier::Impl::notifyEvent: illegal source document! -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Lionel Elie Mamanechanged: What|Removed |Added Status|NEEDINFO|NEW --- Comment #8 from Lionel Elie Mamane --- (In reply to Caolán McNamara from comment #7) > lionel, does this still fail for you. For me, assuming I'm doing it right. > It works for me on 5.0, 5.1 and master Yes, it still fails for me with: 5.1.3.2 (Debian package) - macro security medium (and "Security Warning / Enable Macros" prompt) 5.2.0.0.alpha1+ (my debug build) as of 18 may 2016 - macro security medium (and "Security Warning / Enable Macros" prompt) It does *not* fail for me with: 5.1.3.2 (Debian package) - macro security low (and *no* "Security Warning / Enable Macros" prompt) 5.2.0.0.alpha1+ (my debug build) as of 18 may 2016 - macro security low (and *no* "Security Warning / Enable Macros" prompt) It also fails with 5.1.3.2, if I start LibreOffice, get the start screen and open attachment 117261. It does *not* fail with 5.1.3.2 if I start LibreOffice, get the start screen, open a blank writer document and then open attachment 117261 (from menu file / "recent documents") -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Caolán McNamarachanged: What|Removed |Added Status|NEW |NEEDINFO CC||caol...@redhat.com --- Comment #7 from Caolán McNamara --- lionel, does this still fail for you. For me, assuming I'm doing it right. It works for me on 5.0, 5.1 and master -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Björn Michaelsenchanged: What|Removed |Added Blocks||91310 --- Comment #6 from Björn Michaelsen --- blocks vclptr as per comment 4 -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 raalchanged: What|Removed |Added Keywords||bisected CC||michael.me...@collabora.com Whiteboard|BibisectRequest |bibisected --- Comment #4 from raal --- This seems to have begun at the below commit. Adding Cc: to Michael Meeks ; Could you possibly take a look at this one? Thanks bibisect-win32-5.1: ba5c12eeb1977bd3f7466df16a94b4c6f9523f6e is the first bad commit commit ba5c12eeb1977bd3f7466df16a94b4c6f9523f6e Author: Norbert Thiebaud Date: Tue Jul 14 14:13:07 2015 -0700 source sha:7aae8772aa18744cb1bbd8348272be99cc882c47 source sha:7aae8772aa18744cb1bbd8348272be99cc882c47 authorMichael Meeks 2015-06-05 15:37:49 (GMT) committerMichael Meeks 2015-06-05 19:45:12 (GMT) commit7aae8772aa18744cb1bbd8348272be99cc882c47 (patch) Clear VclPtr instance reference on removed UserEvents. Some crashers during bibisecting, I marked them as "git bisect bad" -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 raalchanged: What|Removed |Added CC||r...@post.cz Version|5.1.0.0.alpha0+ Master |4.4.2.2 release --- Comment #3 from raal --- I can confirm with LO 4.4.2, linux -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during Open Document at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Luke lukebe...@hotmail.com changed: What|Removed |Added Whiteboard||BibisectRequest -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during Open Document at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 pierre-yves samyn pierre-yves.sa...@laposte.net changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from pierre-yves samyn pierre-yves.sa...@laposte.net --- Hi I reproduce on Windows 7/64 Version: 5.0.0.3 Build ID: f79b5ba13f5e6cbad23f8038060e556217e66632 Locale: fr-FR (fr_FR) I set status to New I also get problems with macro on open document (see bug 92916). May be related ? Regards Pierre-Yves -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during Open Document at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Lionel Elie Mamane lio...@mamane.lu changed: What|Removed |Added Hardware|Other |All -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during Open Document at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 --- Comment #1 from Noel Power nopo...@novell.com --- (In reply to Lionel Elie Mamane from comment #0) Created attachment 117261 [details] reproduction case When: - LibreOffice is started with instruction to open document foo.odb (for example, type in a shell /path/to/soffice foo.odb) AND - in foo.odb, the Open Document event is bound to a macro OnOpen AND - the macro OnOpen is not saved in foo.odb, but in My Macros OR calls (without delay, without a MsgBox before, etc) a macro Go that is saved in My Macros AND - OnOpen/Go tries to use thisComponent THEN thisComponent is not set to a valid value. E.g., XRay cannot introspect it, it doesn't have a supportsService method, ...BUT isEmpty(thisComponent) is *false*. Unlikely this is anything to do with basic but rather something has changed in the framework code which creates/sets the 'ThisComponent' value. iirc basics ThisComponent value is set in objxstor.c as part of the opening of a document. In this case it seems like the object behind 'ThisComponent' at this point is partially contructed or maybe some sort of placeholder, you'll have to dig deeper in the framework code I expect -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during Open Document at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Lionel Elie Mamane lio...@mamane.lu changed: What|Removed |Added See Also||https://bugs.documentfounda ||tion.org/show_bug.cgi?id=53 ||899 -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during Open Document at startup in non-document macro
https://bugs.documentfoundation.org/show_bug.cgi?id=92770 Lionel Elie Mamane lio...@mamane.lu changed: What|Removed |Added See Also||https://bugs.documentfounda ||tion.org/show_bug.cgi?id=37 ||240 -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs