← Back to team overview

openlp-core team mailing list archive

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

 

> PATH also contain dir with system libraries - this would break modules depending on dll from C:\windows\system32, etc.
That's not quite right, system directories are searched before the path (http://msdn.microsoft.com/en-us/library/7d83bc18(v=vs.80).aspx), so that shouldn't be a problem.

> Karan, can you test if deleting PATH will help?
When I start OpenLP from the source, the problem doesn't occur, so I guess I'd have to make an .exe with PyInstaller to really test it. I tried removing PATH and all Qt environment variables in a command shell and then starting OpenLP from that shell, but it didn't work (still crashing), although Process Explorer showed that the variables really didn't exist for the OpenLP process.

> Could you please check if on your win 7 is set the environment variable QT_PLUGIN__PATH?
No, my only Qt variables are QTDIR, QT4DIR, QTDIR_DEBUG.

-- 
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