[Libreoffice-bugs] [Bug 144902] New version of calc and impress can't run on windows 7 (since version 7.1.5)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 6 06:06:12 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144902

--- Comment #27 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to ywupub from comment #26)
> >>> import uno
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Program Files\LibreOffice\program\uno.py", line 19, in <module>
>     import pyuno
> ImportError: DLL load failed while importing pyuno: The parameter is
> incorrect.

So we have some problem related to loading of C:\Program
Files\LibreOffice\program\pyuno.pyd (which is itself a DLL). Loading it into
Python fails with system error 87 ERROR_INVALID_PARAMETER [1]; and it's unclear
what gives that error.

Could you please try the same procedure with Python (you may use 'import pyuno'
instead of 'import uno'; nothing else is necessary - we only need to diagnose
this specific failure), but before issuing this command, run Sysinternals'
ProcMon, and check if something comes out from it? Maybe there will be some
entries from inside the loaded pyuno.pyd, which ProcMon can show, and allow to
look into call stack, so that we see how far it goes when loading, or even what
has failed.

Otherwise, we could need to try to use WinDbg to diagnose this on a low level
[2], attaching it to the Python process, putting a breakpoint to the functions
inside pyuno.pyd (e.g., PyInit_pyuno - *if* it goes as far as calling it), and
try to step through until we find a system call resulting in this error code
... which could be very tedious process.

[1]
https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
[2] https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20211006/f29fa254/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list