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)
3.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
: 48509 59216 64434 90981 93652 (view as bug list)
Depends on:
Blocks: Splash-Screen
  Show dependency treegraph
 
Reported: 2012-03-27 10:36 UTC by sam
Modified: 2017-06-20 15:25 UTC (History)
11 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) 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. ***