Opened 11 years ago
Last modified 9 years ago
#289 closed defect
Fix plugin load failures — at Version 2
Reported by: | Dmitry A. Kuminov | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Qt 5 |
Component: | General | Version: | 4.7.3 |
Severity: | low | Keywords: | |
Cc: |
Description (last modified by )
Qt core caches plugin information once it tries to load a Qt plugin. If, at this time, the plugin cannot be loaded (i.e. due to missing dependencies among DLLs), an entry saying that the plugin is invalid will be stored in the cache (and taken from there next time the plugin is loaded). This cache is not updated until the plugin DLL timestamp changes (or the cache is manually cleared). As a result, even if later all DLL dependencies are satisfied, Qt will still refuse to use it giving a message like "The file XXX.DLL is not a valid Qt plugin."
This is completely wrong and needs to be fixed. It's a generic Qt problem.
The workaround for this problem is to manually clear the cache entry for the plugin which is stored in %HOME%/.config/Trolltech.ini or just delete this file completely - it will be recreated next time a Qt application starts.
Change History (2)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Description: | modified (diff) |
---|
See http://svn.netlabs.org/qtapps/ticket/61 for one of the failing cases.