Bug 96625 - FILEOPEN: Event "View Created" never happens
Summary: FILEOPEN: Event "View Created" never happens
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2015-12-20 15:10 UTC by Robert Großkopf
Modified: 2022-11-07 21:49 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
Open the database and have a look to the messageboxes. "ViewCreated" won't appear. (3.99 KB, application/vnd.oasis.opendocument.database)
2015-12-20 15:10 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2015-12-20 15:10:47 UTC
Created attachment 121442 [details]
Open the database and have a look to the messageboxes. "ViewCreated" won't appear.

I wanted to create a database with an event, that happens before opening any table, form or something else. In all LO-Versions include 4.2 the event "View Created" works. Beginning with LO 4.3.0.4 it seems this event never happens at all.
1. Open the attached database
2. Have a look at the different messageboxes.

LO 3.6.7.2:
- View Created
- Open Document
- Activate Document
up to LO 4.2:
- View Created
- Activate Document
- Open Document
- Activate Document
- Activate Document
since LO 4.3.0.4:
- Activate Document
- Open Document
- Activate Document

Tested system: OpenSUSE 42.1 Leap rpm Linux
Comment 1 Alex Thurgood 2015-12-21 09:44:58 UTC
In

Version: 5.2.0.0.alpha0+
Build ID: ce3d3f5543e3e132a3473af27aa2c827336add0f
CPU Threads: 2; OS Version: -; UI Render: default; 
Locale : fr-FR (fr.UTF-8)

on OSX, opening the test file renders the LO Base window UI unresponsive, nothing can be clicked, although the LO process continues to function, i.e. other documents can be opened.

This bug is similar, if not duplicate to the one about dialog boxes and MsgBox creation on load. It looks like bug 95191
Comment 2 Julien Nabet 2015-12-21 20:57:26 UTC
On pc Debian x86-64 with master sources updated today, I had this:
- Open Document
- Activate Document
- Activate Document

I noticed these messages on console:
warn:legacy.osl:4185:1:dbaccess/source/core/dataaccess/documenteventexecutor.cxx:90: lcl_dispatchScriptURL_throw: no controller/frame? How should I dispatch?
warn:legacy.osl:4185:7:dbaccess/source/core/dataaccess/documenteventexecutor.cxx:90: lcl_dispatchScriptURL_throw: no controller/frame? How should I dispatch?
Comment 3 raal 2016-01-10 04:35:11 UTC
This seems to have begun at the below commit.
Adding Cc: to Matúš Kukan ; Could you possibly take a look at this one?
Thanks
 ceae5015b22986a0541605d3edfef30dc00428fe is the first bad commit
commit ceae5015b22986a0541605d3edfef30dc00428fe
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Thu May 28 18:32:07 2015 +0800

    source-hash-ef597d80dc18f9662a50f3abad5d39d0fd76449e
    
    commit ef597d80dc18f9662a50f3abad5d39d0fd76449e
    Author:     Matúš Kukan <matus.kukan@collabora.com>
    AuthorDate: Wed Jan 22 14:05:06 2014 +0100
    Commit:     Stephan Bergmann <sbergman@redhat.com>
    CommitDate: Fri Jan 24 14:24:34 2014 +0000
    
        Introduce com.sun.star.task.theJobExecutor singleton.
    
        To replace com.sun.star.task.JobExecutor single-instance service,
        incorrectly converted in 748aa84e9808ad31c6ff6b71459525c82de10e58
    
        [including changes by Stephan Bergmann <sbergman@redhat.com>]
    
        Change-Id: I4cea2c63a20b5b22f6e1f822fb35fcc4d0397687
        Reviewed-on: https://gerrit.libreoffice.org/7609
        Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
        Tested-by: Stephan Bergmann <sbergman@redhat.com>

:040000 040000 18b50ce2a85d788e48502f5e793df145b1fd2897 5ffe9976a7248b97bc3da7fcabeffdb4c39bbb07 M	opt

bibisect-43max$ git bisect log
# bad: [74b89c3193673ba9897dc4a4541500ef6e8d9bf7] source-hash-8f97326bdd3f42fc82aa5e1989fd03b0af1daf64
# good: [9c392cfdfe6e9a9bce98555ea989283a957aa3ad] source-hash-fc8f44e82de4ebdd50ac5fbb9207cd1a59a927e3
git bisect start 'latest' 'oldest'
# bad: [e289d9d328719fd70e9a2680fd0e4f586a97b3be] source-hash-3c0a7cf4f67720f2cca2c4eb543f838d5b644e7f
git bisect bad e289d9d328719fd70e9a2680fd0e4f586a97b3be
# bad: [0327d0bc45d60df0d1c8ac2470cf252b6bb8f780] source-hash-38fed70782ae6ac6b0282897c7abc6fa33a6de9e
git bisect bad 0327d0bc45d60df0d1c8ac2470cf252b6bb8f780
# good: [130c0f90cdc74b7300c74ee7d49c459ea8b8c4f4] source-hash-4a969ac35174520f1ffeb4f919f5d7bb6d99a628
git bisect good 130c0f90cdc74b7300c74ee7d49c459ea8b8c4f4
# good: [1da4e86b6024553eadebfbcd00fd147590ec778f] source-hash-766f718ebb4deda1a294cc1cfe137a75dfb0f6f8
git bisect good 1da4e86b6024553eadebfbcd00fd147590ec778f
# good: [99861844b95ad16a7671cf9f0d2f3c8deacaec1d] source-hash-910b7bf6c6870fed56c4450ed54303a23f5a23da
git bisect good 99861844b95ad16a7671cf9f0d2f3c8deacaec1d
# good: [a1f0c924be9103e197dee5bc85d5de63241cece6] source-hash-22bb2660ebd068c89fccda8a6c58d2a5a7bdcca8
git bisect good a1f0c924be9103e197dee5bc85d5de63241cece6
# good: [cc20b0f90ba20d8ebe91cc70909a69f978c8a016] source-hash-0abd70662929c5a7b173be1b41dac4dea434b3e1
git bisect good cc20b0f90ba20d8ebe91cc70909a69f978c8a016
# good: [12af38cb03997d2e7cc3802f3db0aa8aeb45c761] source-hash-15a0b755501273ce1d1be4da567eaed5a468bf75
git bisect good 12af38cb03997d2e7cc3802f3db0aa8aeb45c761
# bad: [143fa5e299c15d9a2954057501d4b7636c501495] source-hash-12a7203b2cd54d6ec0bb0969322a8dc2c4edccfd
git bisect bad 143fa5e299c15d9a2954057501d4b7636c501495
# good: [a98f4a07a14577b25d8f4029efc99f8badc51edb] source-hash-604ce7566d0ab2c6ddc94951773c23bf716728f4
git bisect good a98f4a07a14577b25d8f4029efc99f8badc51edb
# bad: [230d343be7fcf0b1c943eb5868d798350df32cdc] source-hash-33d91958b4a10692de9f028d2303840e7a848bf2
git bisect bad 230d343be7fcf0b1c943eb5868d798350df32cdc
# good: [a6c9644ce96118d0bee1bbee956e92de289d3a97] source-hash-0df3ba835d512745cbf673cfe44f03693baf1a41
git bisect good a6c9644ce96118d0bee1bbee956e92de289d3a97
# bad: [ceae5015b22986a0541605d3edfef30dc00428fe] source-hash-ef597d80dc18f9662a50f3abad5d39d0fd76449e
git bisect bad ceae5015b22986a0541605d3edfef30dc00428fe
# good: [3f446e0b69b2b87e981fee160a8f98caa028bfd2] source-hash-4b1ecc4c7da84eee69c583222b62afbf6afed3ab
git bisect good 3f446e0b69b2b87e981fee160a8f98caa028bfd2
# first bad commit: [ceae5015b22986a0541605d3edfef30dc00428fe] source-hash-ef597d80dc18f9662a50f3abad5d39d0fd76449e
Comment 4 Matúš Kukan 2016-01-15 04:44:20 UTC
OK, let's see what I can do.
Comment 5 Matúš Kukan 2016-05-28 09:59:33 UTC
No idea what's wrong and unfortunately no time anymore.
Comment 6 Julien Nabet 2017-07-03 20:52:01 UTC
On pc Debian x86-64 with master sources updated yesterday with macro enable, I had "View Created".

On Win7 with LO 5.3.4, I got it too but there's another problem, I got an infinite loop of "Activate Document" ; I don't have this on Linux with master sources, but let's not add a symptom here

Robert: could you give a try with a recent LO version?
Comment 7 Drew Jensen 2018-04-22 13:29:26 UTC
Checked with Version: 6.1.0.0.alpha0+
Build ID: 66c02d16dd078613e754dcc775f366413fad13f0
Branch:master, Time: 2018-04-20_09:08:39
Locale: en-US (en_US.UTF-8); Calc: group

"View Created" event does not call the linked macro when the container DatabaseDocument opens.

However setting "View Created" event on an embedded form does call the linked macro.
Comment 8 QA Administrators 2019-04-23 02:48:58 UTC Comment hidden (obsolete)
Comment 9 Robert Großkopf 2019-04-27 07:56:37 UTC
Bug still exists in LO 6.2.3.2, OpenSUSE Leap 15 64bit rpm Linux.

With this version only 
- Open Document
and
- Activate Document
will appear. "Activate Document" will hand LO in a loop because the messagebox seems to be no part of the document and will deactivate the document every time ...
Comment 10 QA Administrators 2021-04-27 03:34:27 UTC Comment hidden (obsolete)
Comment 11 Robert Großkopf 2021-04-27 09:57:27 UTC
Bug still exists in LO 7.1.2.2, OpenSUSE Leap 15.2 64bit rpm Linux.

With this version only 
- Open Document
and
- Activate Document
will appear. "Activate Document" will hand LO in a loop because the messagebox seems to be no part of the document and will deactivate the document every time ...