← Back to team overview

openlp-core team mailing list archive

[Bug 799990] Re: Crash on startup because wrong Qt libs are loaded (Win 7)

 

OpenLP doesn't seem to need qgenericbearer4.dll to run, but if it is
found, it is loaded. The Qt Bearer plugin isn't part of PyQt, so
packaging with OpenLP wouldn't be easy (Could be added manually of
course...). Perhaps the PATH environment variable could be deleted for
the OpenLP process on startup (-> os.environ['PATH'] = ''). That should
prevent any incompatible external DLLs from being loaded. My case may be
special, but there are Qt applications that write their bin-directory
into the PATH on installation (e.g. MiKTeX), so similar problems might
occur.

With iconv.dll it's similar, but there the obvious fix would be to put
it in the main OpenLP folder instead of OpenLP/echant. I also noticed
that I don't get a popup on my Win 7 machine, when iconv.dll is missing
(but it's also loaded when present in the main OpenLP folder or
somewhere in the PATH).

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/799990

Title:
  Crash on startup because wrong Qt libs are loaded (Win 7)

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  When I first started OpenLP it crashed while the splash screen was shown - access violation in msvcr100.dll (-> Visual Studio 2010 runtime library) with some Qt DLLs above it in the callstack (according to the then attached debugger). OpenLP apparently loaded the Qt DLLs from the PATH instead of using the local ones - I've got Qt 4.7.1 built with Visual Studio 2010 in the PATH. Since the other DLLs in the OpenLP folder are linked against msvcr90.dll and runtimes can't usually be mixed this seems to be the source of the problem...
  Removing my Qt build from the PATH helps, but it would be better if OpenLP simply used the libraries installed with it.

  Using OpenLP 1.9.5 on Win 7 Professionell 32-bit

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/799990/+subscriptions


References