Bug 47953 - "Error loading BASIC of document" error messages
Summary: "Error loading BASIC of document" error messages
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: high normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
: 48509 59216 64434 90981 93652 (view as bug list)
Depends on:
Blocks: User-Profile Splash-Screen
  Show dependency treegraph
 
Reported: 2012-03-27 10:36 UTC by sam
Modified: 2024-05-30 03:15 UTC (History)
13 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sam 2012-03-27 10:36:15 UTC
Problem description: LibreOffice 3.5.1.2 
Build ID: dc9775d-05ecbee-0851ad3-1586698-727bf66
Each & every time I try to open LibreOffice I get the following 2 error messages:
Error loading BASIC of document file :///C:/Documents%20and%20Settings/Administrator/Application%20Data/LibreOffice/3/user/basic/Standard/script.xlb:
General Error,
General input/output error.

and 

Error loading BASIC of document file :///C:/Documents%20and%20Settings/Administrator/Application%20Data/LibreOffice/3/user/basic/Standard/dialog.xlb:
General Error,
General input/output error.

after clicking on OK in the message box of the 1st error message, the second message comes up. After clicking on OK in the 2nd error message box, LibreOffice opens. It seems to work fine once it's open. This happens irregardless of the method I use to start LibreOffice.

I've tried uninstalling & reinstalling 2x & repairing 1x.

Version 3.4* didn't do this.

Hope this helps you & any advice would be appreciated.

Thanks :)
Steps to reproduce:
1. ....
2. ....
3. ....

Current behavior:

Expected behavior:

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0
Comment 1 Andras Timar 2012-05-02 05:00:55 UTC
This error message means that the mentioned files are missing or corrupted in your user profile. Copy a correct version from C:\Program Files\LibreOffice 3.5\presets\basic\Standard\ to C:\Documents and Settings\Administrator\Application Data\LibreOffice\3\user\basic\Standard\.
Comment 2 Stephan Bergmann 2012-09-25 08:51:24 UTC
<https://bugzilla.redhat.com/show_bug.cgi?id=748232> "missing BASIC library dialogs on startup" and <https://issues.apache.org/ooo/show_bug.cgi?id=59890> "[meta] Error loading basic of document" indicate that there apparently /are/ scenarios that lead to this symptom---though it is unclear what happens exactly.

While copying clean versions of files into the user profile can be a workaround, it would be better to find the root cause of this problem.
Comment 3 Pavel Alexeev (aka Pahan-Hubbitus) 2012-09-29 15:54:25 UTC
I have such error on Linux too https://bugzilla.redhat.com/show_bug.cgi?id=748232

And it is 100% reproduced.
Comment 4 Andras Timar 2013-05-13 07:44:24 UTC
*** Bug 64434 has been marked as a duplicate of this bug. ***
Comment 5 Maxim Monastirsky 2014-02-09 15:11:20 UTC
*** Bug 48509 has been marked as a duplicate of this bug. ***
Comment 6 Maxim Monastirsky 2015-07-30 21:33:04 UTC
*** Bug 90981 has been marked as a duplicate of this bug. ***
Comment 7 Maxim Monastirsky 2015-08-25 14:24:40 UTC
*** Bug 93652 has been marked as a duplicate of this bug. ***
Comment 8 QA Administrators 2016-09-20 10:26:02 UTC Comment hidden (obsolete)
Comment 9 Aron Budea 2016-11-30 23:44:45 UTC
Someone reported symptoms like this today in #libreoffice-qa, so I assume the bug still exists.
Comment 10 Malte O 2017-06-16 07:09:26 UTC
I had the same problem. In my case the error message occurs, if in one of the xcd-files (share/registry) or the registrymodifications.xcu in the user profile, the property ooSetupInstCompleted is set to true, although it is not complete. Then some files in the user profile are missing.

<oor:component-data oor:name="Setup" oor:package="org.openoffice">
   <node oor:name="Office">
       <prop oor:name="ooSetupInstCompleted" oor:type="xs:boolean">
	  <value>false</value>
       </prop>
   </node>
</oor:component-data>
Comment 11 Stephan Bergmann 2017-06-16 07:23:28 UTC
(In reply to Malte O from comment #10)
> I had the same problem. In my case the error message occurs, if in one of
> the xcd-files (share/registry) or the registrymodifications.xcu in the user
> profile, the property ooSetupInstCompleted is set to true, although it is
> not complete.

Did you actually find ooSetupInstCompleted being set to true in one of the xcd files (in contrast to being set in registrymodifications.xcu)?
Comment 12 Stephan Bergmann 2017-06-16 07:26:14 UTC
(In reply to Malte O from comment #10)
> I had the same problem. In my case the error message occurs, if in one of
> the xcd-files (share/registry) or the registrymodifications.xcu in the user
> profile, the property ooSetupInstCompleted is set to true, although it is
> not complete. Then some files in the user profile are missing.

How do you know that installation is not yet completed?  How did you install LO?  What abnormal behavior did you observe/what failures happened?  Which files exactly are missing from the user profile?
Comment 13 Malte O 2017-06-19 06:02:21 UTC
(In reply to Stephan Bergmann from comment #11) 
> Did you actually find ooSetupInstCompleted being set to true in one of the
> xcd files (in contrast to being set in registrymodifications.xcu)?

No, I didn't find it. I recognized it by trying to customize the office (I wrote an additional xcd-File). And if I install the office and set ooSetupInstCompleted to true before starting the first time, the error message appears, when opening a document.


(In reply to Stephan Bergmann from comment #12) 
> How do you know that installation is not yet completed?  How did you install
> LO?  What abnormal behavior did you observe/what failures happened?  Which
> files exactly are missing from the user profile?

In an additional xcd-File I added "ooSetupInstCompleted" with true (with <dependency file="main" /> in the added xcd-File). Apart from that, I didn't change anything. I install the office in the normal way and after that copy the additional xcd-File into the "share/registry" folder for my own customizing. By starting office the first time the user profile only has the folders "extensions", "uno_packages" and the file "registrymodifiacations.xcu". The "basic" folder and some other folders (for example "autocorr", "autotext", "config", "database"...) are missing. So if I click to open a document, the error message appears, because the basic files are the first files, that are missing, I think.
Comment 14 Stephan Bergmann 2017-06-19 08:05:37 UTC
(In reply to Malte O from comment #13)
> No, I didn't find it. I recognized it by trying to customize the office (I
> wrote an additional xcd-File). And if I install the office and set
> ooSetupInstCompleted to true before starting the first time, the error
> message appears, when opening a document.

So what you're claiming is that the symptoms of the original problem (comment 0) are caused by ooSetupInstCompleted being set to true (in registrymodifications.xcu) despite not all of the UserInstallation tree having been populated properly?  That may well be true.  However, the question still remains why that happened to the original poster (and to those who filed duplicate bugs).
Comment 15 Yousuf Philips (jay) (retired) 2017-06-20 15:02:46 UTC
From my duplicate bug report, bug 90981.

Loaded up any libreoffice module/app, i get the following dialog error.

Error loading BASIC of document file:///home/jay/.config/libreofficedev/4_5/user/basic/Standard/script.xlb/:
General Error.
General input/output error.

Looked into the /home/jay/.config/libreofficedev/4_5/user/basic/Standard/ folder and it was empty and if i cleared my profile, the error disappeared.
Comment 16 Stephan Bergmann 2017-06-20 15:25:29 UTC
*** Bug 59216 has been marked as a duplicate of this bug. ***
Comment 17 QA Administrators 2018-06-21 02:51:25 UTC Comment hidden (obsolete)
Comment 18 QA Administrators 2020-06-21 03:39:53 UTC Comment hidden (obsolete)
Comment 19 Aron Budea 2020-11-05 05:10:18 UTC
Since this issue can be quite annoying, and there are plenty of dupes, let's bump the priority.
Comment 20 Xisco Faulí 2020-11-12 15:10:16 UTC
(In reply to Aron Budea from comment #19)
> Since this issue can be quite annoying, and there are plenty of dupes, let's
> bump the priority.

is it still reproducible in a master build ? How can it be reproduced ?
Comment 21 Aron Budea 2020-11-13 03:03:06 UTC
(In reply to Xisco Faulí from comment #20)
> is it still reproducible in a master build ? How can it be reproduced ?
The result is very easy to reproduce, delete your <user profile>/basic/Standard/script.xlb , and start Writer. What deletes/truncates the file isn't known, possibly a crash at the wrong time, so that may be extremely hard to reproduce, and while it'd be great to fix, the likelihood of that is slim.

This is where this bug crosses into bug 44128 territory, ie. LO should regenerate the default files, and not throw an error (but should still notify the user, since something bad happened before, and the slim chance of figuring out what had gone wrong should still be kept).
Comment 22 QA Administrators 2022-11-14 03:32:06 UTC Comment hidden (obsolete)
Comment 23 Stéphane Guillou (stragu) 2024-05-30 03:15:15 UTC
I was getting this error with recent daily builds, first time for me:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: ae798781ef4df7a1fdef13af0bc459bf4f6e7b4c
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

At b860aea9d6f8ac46f6d2575ead25337495ec9a88 as well.

But not anymore at 6084962f93efc005b6827edceae12d3170f17ccd.