Opened 8 months ago

Closed 6 months ago

#828 closed defect (fixed)

Postinstall script errors installing qgis-full 3.36.1-2 and qgis-ltr-full 3.34.5-2

Reported by: andreaerdna Owned by: osgeo4w-dev@…
Priority: normal Component: Installer
Version: Keywords:
Cc:

Description

I did a clean install of qgis-full 3.36.1-2 and qgis-ltr-full 3.34.5-2 packages and obtained the following "Postinstall script errors":

Package: qgis-common

qgis-common.bat exit code -1073741511

Package: qgis-ltr-common

qgis-ltr-common.bat exit code -1073741511

However, I don't see any issue starting QGIS 3.34.5 and 3.36.1 (apart from https://github.com/qgis/QGIS/issues/57070).

Attachments (2)

setup_logs.zip (102.4 KB ) - added by andreaerdna 8 months ago.
setup_logs.z01 (200.0 KB ) - added by andreaerdna 8 months ago.

Download all attachments as: .zip

Change History (12)

by andreaerdna, 8 months ago

Attachment: setup_logs.zip added

by andreaerdna, 8 months ago

Attachment: setup_logs.z01 added

comment:1 by jef, 8 months ago

Not reproducable in a Windows 11 sandbox.

comment:2 by andreaerdna, 8 months ago

On my Windows 10 64-bit system, it looks like both qgis-common.bat and qgis-common.bat abruptly terminates the execution when running crssync.

crssync.exe doesn't actually start and throws the following error:

crssync.exe - Entry Point Not Found

The procedure entry point __CxxFrameHandler4 could not be located in the dynamic link library C:\OSF9FA~1\apps\qgis\dbghelp.dll.
crssync.exe - Entry Point Not Found

The procedure entry point __CxxFrameHandler4 could not be located in the dynamic link library C:\OSF9FA~1\apps\qgis-ltr\dbghelp.dll.
Last edited 8 months ago by andreaerdna (previous) (diff)

comment:3 by jef, 8 months ago

Environment?

in reply to:  3 comment:4 by andreaerdna, 8 months ago

Replying to jef:

Environment?

Windows 10 Home 64-bit 1903 18362.778.

Here https://www.facebook.com/groups/GisItalia/posts/10161520689096385/ a report of the same issue occurring on a Windows 8.1 64-bit system.

comment:5 by jef, 8 months ago

Please try msvcrt2019-14.2-2

comment:6 by andreaerdna, 8 months ago

Same issue even with a new fresh install of qgis-full and qgis-ltr-full (which install msvcrt2019-14.2-2).

comment:7 by andreaerdna, 8 months ago

After removing dbghelp.dll (version 10.0.22621.3233) from apps\qgis\ and rerunning etc\postinstall\qgis-common.bat, then crssync runs without throwing the error as it then probably uses the dbghelp.dll available in the system (version 10.0.18362.1 in C:\WINDOWS\System32).

crssync also runs without throwing the error after replacing dbghelp.dll (version 10.0.22621.3233) installed from qgis-3.36.1-2 in apps\qgis\ with dbghelp.dll (version 10.0.19041.685) extracted from qgis-3.36.1-1 and rerunning etc\postinstall\qgis-common.bat.

Side note: I suggest to remove @echo off from etc\ini\qt5.bat, otherwise the commands in qt5.bat itself and in etc\postinstall\qgis-common.bat and other batch files after the call "%OSGEO4W_ROOT%\bin\o4w_env.bat" line are not displayed in the console and not saved in the log.

Last edited 8 months ago by andreaerdna (previous) (diff)

comment:8 by andreaerdna, 8 months ago

Removing dbghelp.dll from apps\qgis\ (or replacing dbghelp.dll installed from qgis-3.36.1-2 with dbghelp.dll extracted from qgis-3.36.1-1.tar.bz2) and rerunning etc\postinstall\qgis-common.bat makes crssync run without throwing the error on a Windows 8.1 system, too.

comment:9 by andreaerdna, 8 months ago

The issue no longer occurs installing qgis-full 3.36.2-1 and qgis-ltr-full 3.34.6-1 on my Windows 10 Home 64-bit 1903 18362.778 system.

Last edited 8 months ago by andreaerdna (previous) (diff)

comment:10 by andreaerdna, 6 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.