Bug 152766

Summary: Insert - Cross-reference or Fields - More Fields: legacy.osl ODatabaseModelImpl::getOrCreateRootStorage warnings in console with debug LO
Product: LibreOffice Reporter: BogdanB <buzea.bogdan>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, stephane.guillou
Priority: medium    
Version: 7.6.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 114039, 140879, 141858    
Attachments: a document with a title, in order in insert a cross-reference to that

Description BogdanB 2022-12-31 10:36:14 UTC
Description:
Open a new Writer document. Insert - Cross-reference

In the dbg build of LibreOffice I get in terminal this warnings:
warn:legacy.osl:1416922:1416922:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:1416922:1416922:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:1416922:1416922:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:1416922:1416922:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:1416922:1416922:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:1416922:1416922:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!

If the warning says no source, I tested on a document that had a title and I can insert Cross-Reference - DocInformation - title, but also the same error.

Steps to Reproduce:
see description

Actual Results:
warnings

Expected Results:
no warnings


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 1 BogdanB 2022-12-31 10:36:42 UTC
Created attachment 184408 [details]
a document with a title, in order in insert a cross-reference to that
Comment 2 BogdanB 2022-12-31 10:54:33 UTC
The same warnings if we try Insert - Fields - More fields.
Comment 3 Stéphane Guillou (stragu) 2023-02-14 16:06:23 UTC
Confirmed for both dialogs with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: befcb86946c049c1a430c95f93ab47ba6ffcdf4e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 4 BogdanB 2023-08-03 15:09:30 UTC
Retested with
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0e17d8ddccdee7d4f46b256153853e1cab87c99e
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

warn:legacy.osl:213304:213304:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:213304:213304:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:213304:213304:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:213304:213304:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:213304:213304:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:213304:213304:dbaccess/source/core/dataaccess/ModelImpl.cxx:767: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
Comment 5 BogdanB 2024-02-03 17:08:25 UTC
Retested with
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2cedb1a19ad605df4e148589e9027512e4dd9265
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

warn:legacy.osl:2936819:2936819:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2936819:2936819:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2936819:2936819:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2936819:2936819:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2936819:2936819:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2936819:2936819:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:connectivity.commontools:2936819:2936819:connectivity/source/commontools/dbtools.cxx:258: DBG_UNHANDLED_EXCEPTION in getDataSource exception: com.sun.star.lang.WrappedTargetException message: "file:///home/bogdan/Desc%C4%83rc%C4%83ri/New%20Database.odb at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/dbaccess/source/core/dataaccess/databasecontext.cxx:314" context: dbaccess::ODatabaseContext
    wrapped: com.sun.star.sdbc.SQLException message: "The file "/home/bogdan/Descărcări/New Database.odb" does not exist. at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/dbaccess/source/core/dataaccess/databasecontext.cxx:312" SQLState:  ErrorCode: 0
Comment 6 BogdanB 2024-02-03 17:10:00 UTC
I reset to factory settings and now just this warnings:
warn:legacy.osl:2985740:2985740:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2985740:2985740:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2985740:2985740:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2985740:2985740:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2985740:2985740:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:2985740:2985740:dbaccess/source/core/dataaccess/ModelImpl.cxx:764: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
Comment 7 BogdanB 2024-06-11 18:28:23 UTC
Retested.

warn:legacy.osl:702283:702283:dbaccess/source/core/dataaccess/ModelImpl.cxx:758: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:702283:702283:dbaccess/source/core/dataaccess/ModelImpl.cxx:758: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:702283:702283:dbaccess/source/core/dataaccess/ModelImpl.cxx:758: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:702283:702283:dbaccess/source/core/dataaccess/ModelImpl.cxx:758: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:702283:702283:dbaccess/source/core/dataaccess/ModelImpl.cxx:758: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!
warn:legacy.osl:702283:702283:dbaccess/source/core/dataaccess/ModelImpl.cxx:758: ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from!

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 6d39b1a6068bbbd5ca4947f668f989dbfb73342d
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded