Bug 143611 - File \ Wizards \ Letter - "AttributeError: 'NoneType' object has no attribute 'DocumentProperties'"
Summary: File \ Wizards \ Letter - "AttributeError: 'NoneType' object has no attribute...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Wizard
  Show dependency treegraph
 
Reported: 2021-07-29 18:23 UTC by Anton F
Modified: 2023-09-03 03:16 UTC (History)
7 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 Anton F 2021-07-29 18:23:32 UTC
Description:
Go to the menu "File \ Wizards \ Letter" the window does not open

Steps to Reproduce:
1.Go to the menu "File \ Wizards \ Letter"
2.The window does not open, there is an error in the logs

Actual Results:
warn:toolkit.helper:28772:28772:toolkit/source/helper/unowrapper.cxx:185: UnoWrapper::SetWindowInterface: there is already a WindowPeer/ComponentInterface for this VCL window
warn:fwk.loadenv:28772:28772:framework/source/loadenv/loadenv.cxx:202: caught LoadEnvException 6 "interaction request", com.sun.star.task.ErrorCodeRequest "/tinderbox/buildslave/source/libo-master/sfx2/source/doc/objmisc.cxx:1699" while loading <file:///opt/libreofficedev7.3/program/../share/template/common/wizard/letter/bus-elegant_l.ott>
Traceback (most recent call last):
  File "/opt/libreofficedev7.3/program/wizards/text/TextDocument.py", line 152, in getPageSize
    xNameAccess = self.xTextDocument.StyleFamilies
AttributeError: 'NoneType' object has no attribute 'StyleFamilies'
Traceback (most recent call last):
  File "/opt/libreofficedev7.3/program/wizards/text/TextDocument.py", line 143, in loadAsPreview
    self.xTextDocument.CurrentController.ViewSettings.ZoomType = ENTIRE_PAGE
AttributeError: 'NoneType' object has no attribute 'CurrentController'
Traceback (most recent call last):
  File "/opt/libreofficedev7.3/program/wizards/letter/LetterWizardDialogImpl.py", line 132, in startWizard
    self.setConfiguration()
  File "/opt/libreofficedev7.3/program/wizards/letter/LetterWizardDialogImpl.py", line 781, in setConfiguration
    self.optBusinessLetterItemChanged()
  File "/opt/libreofficedev7.3/program/wizards/letter/LetterWizardDialogImpl.py", line 256, in optBusinessLetterItemChanged
    self.lstBusinessStyleItemChanged()
  File "/opt/libreofficedev7.3/program/wizards/letter/LetterWizardDialogImpl.py", line 331, in lstBusinessStyleItemChanged
    self.setElements(False)
  File "/opt/libreofficedev7.3/program/wizards/letter/LetterWizardDialogImpl.py", line 812, in setElements
    self.txtTemplateNameTextChanged()
  File "/opt/libreofficedev7.3/program/wizards/letter/LetterWizardDialogImpl.py", line 633, in txtTemplateNameTextChanged
    xDocProps = self.myLetterDoc.xTextDocument.DocumentProperties
AttributeError: 'NoneType' object has no attribute 'DocumentProperties'

Expected Results:
A dialog box will open


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 5aa74aa1e6fac571f99146ebcb6adc9feb1459ad
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-28_19:35:14
Calc: threaded
Comment 1 Julien Nabet 2021-07-29 19:03:15 UTC
On pc Debian x86-64 with master sources udpated today, I don't reproduce this.
Could you apply this https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile and give a new try?

Also, could you confirm you got the file bus-elegant_l.ott in /opt/libreofficedev7.3/program/../share/template/common/wizard/letter/ and it has  readable right
Comment 2 Anton F 2021-07-30 14:56:25 UTC
"Restart in Safe Mode" reproduced.

:/opt/libreofficedev7.3/share/template/common/wizard/letter$ ls -l
итого 288
-rw-r--r-- 1 root root 37129 июл 29 05:07 bus-elegant_l.ott
-rw-r--r-- 1 root root 37372 июл 29 05:07 bus-modern_l.ott
-rw-r--r-- 1 root root 37391 июл 29 05:07 bus-office_l.ott
-rw-r--r-- 1 root root 18939 июл 29 05:07 off-elegant_l.ott
-rw-r--r-- 1 root root 18651 июл 29 05:07 off-modern_l.ott
-rw-r--r-- 1 root root 18720 июл 29 05:07 off-office_l.ott
-rw-r--r-- 1 root root 48269 июл 29 05:07 pri-bottle_l.ott
-rw-r--r-- 1 root root 24147 июл 29 05:07 pri-mail_l.ott
-rw-r--r-- 1 root root 19333 июл 29 05:07 pri-marine_l.ott
-rw-r--r-- 1 root root 12441 июл 29 05:07 pri-redline_l.ott
Comment 3 Julien Nabet 2021-07-30 18:17:11 UTC
Thank you for your feedback, I don't have more question, I must recognize I'm stuck here.
Hopefully someone will certainly have an idea.
Comment 4 raal 2021-08-08 06:35:00 UTC
No repro Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 36efb384a66b6dd645e0ae80fd7df68370a9dc8b
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 5 Anton F 2021-08-10 15:52:41 UTC
Reproduced, including in safe mode.

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: b2130ad3fda841c68a0436fbddf29bcedede0af5
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-08-09_13:03:07
Calc: threaded


Not playable on version bibisect (she is older):

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: c97bdca2d7abf30a99c45192b8f49c5bf76ca035
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded
Comment 6 Henrik Palomäki 2021-08-25 06:52:19 UTC
The dialog box opened and I could create a letter from the template. No repro in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 0224d859b8a497779611cc15943c017ec42f9b90
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: CL

and

Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: default; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded
Comment 7 Buovjaga 2021-09-01 06:28:22 UTC
(In reply to Anton F from comment #2)
> "Restart in Safe Mode" reproduced.
> 
> :/opt/libreofficedev7.3/share/template/common/wizard/letter$ ls -l
> итого 288
> -rw-r--r-- 1 root root 37129 июл 29 05:07 bus-elegant_l.ott
> -rw-r--r-- 1 root root 37372 июл 29 05:07 bus-modern_l.ott
> -rw-r--r-- 1 root root 37391 июл 29 05:07 bus-office_l.ott
> -rw-r--r-- 1 root root 18939 июл 29 05:07 off-elegant_l.ott
> -rw-r--r-- 1 root root 18651 июл 29 05:07 off-modern_l.ott
> -rw-r--r-- 1 root root 18720 июл 29 05:07 off-office_l.ott
> -rw-r--r-- 1 root root 48269 июл 29 05:07 pri-bottle_l.ott
> -rw-r--r-- 1 root root 24147 июл 29 05:07 pri-mail_l.ott
> -rw-r--r-- 1 root root 19333 июл 29 05:07 pri-marine_l.ott
> -rw-r--r-- 1 root root 12441 июл 29 05:07 pri-redline_l.ott

Why are these owned by root? Could it be the problem?

I checked out the exact commit you mentioned and ran in 7.3 bibisect repo with gtk3, but I don't reproduce the problem.
Comment 8 Anton F 2021-09-01 14:30:44 UTC
I have not changed the rights or owner, but apparently the problem is reproduced only with me, which is strange.

The problem itself is not critical for me. I just started a bug that I accidentally discovered while checking another defect. Therefore, if this bug does not cause problems for other users, I think it can be ignored.

If any additional information can help you - ask, please, I will try to help you.
Comment 9 James Beddek 2021-11-01 22:25:51 UTC
I can reproduce this with 7.2.2.2, though I'm not sure where the issue comes from in terms of Java or Python versions. Anton, what python version are you using for the build/runtime?
Comment 10 Anton F 2021-11-02 03:52:08 UTC
(In reply to James Beddek from comment #9)
> I can reproduce this with 7.2.2.2, though I'm not sure where the issue comes
> from in terms of Java or Python versions. Anton, what python version are you
> using for the build/runtime?

I have two of them. How to understand which one is used for the office(build/runtime)?

nafanz@nafanz-desktop:~$ python --version
Python 2.7.17
nafanz@nafanz-desktop:~$ python3 --version
Python 3.9.2
Comment 11 Kevin Suo 2021-11-02 07:47:12 UTC
(In reply to Buovjaga from comment #7)

> Why are these owned by root? Could it be the problem?

I see it is in system directory, not user's home directory, thus it should be owned by root.
Comment 12 Dieter 2023-02-03 14:47:03 UTC
Hello Anton, a new major major release of LibreOffice is available since this bug was reported. Could you please try to  reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.

Kevin, you could reproduce it with 7.2.2.2. Are you still able to reproduce it with LO 7.5?
Comment 13 QA Administrators 2023-08-03 03:05:29 UTC Comment hidden (obsolete)
Comment 14 QA Administrators 2023-09-03 03:16:14 UTC
Dear Anton F,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp