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: 2022-11-14 03:32 UTC (History)
12 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
Dear sam,

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://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug