Qt 5.3 attempts to load Internet Plug-Ins
-
Hi, I have two problems and solution of first problem should hopefully prevent the second problem.
First problem is same as the title.
whenever I run my application I get message that reads
@
Error loading /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: dlopen(/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin, 265): no suitable image found. Did find:
/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: mach-o, but wrong architecture
@Reading this, I assumed that Qt 5.3 onwards will attempt to load Internet Plug-Ins.
At this point I've tried:
@
QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, false);
webView->settings()->setAttribute(QWebSettings::PluginsEnabled, false);
webView->page()->settings()->setAttribute(QWebSettings::PluginsEnabled, false);
@and also
@
webView->page()->setPluginFactory(0);
@nothing seemed to stop this behaviour.
So I gave up on removing that behaviour, thinking it won't really do any harm.
But I realized that it does, which is my second problem.I've installed some plugin called keysharpbiz and after that I get the following message and my application crashes.
@
objc[1864]: Class QCocoaMenuLoader is implemented in both /Users/thebeast44/Qt5.3.0/5.3/clang_64/plugins/platforms/libqcocoa.dylib and /Library/Internet Plug-Ins/keysharpbiz.plugin/Contents/MacOS/keysharpbiz. One of the two will be used. Which one is undefined.
objc[1864]: Class QNSApplication is implemented in both /Users/thebeast44/Qt5.3.0/5.3/clang_64/plugins/platforms/libqcocoa.dylib and /Library/Internet Plug-Ins/keysharpbiz.plugin/Contents/MacOS/keysharpbiz. One of the two will be used. Which one is undefined.
objc[1864]: Class QCocoaApplicationDelegate is implemented in both /Users/thebeast44/Qt5.3.0/5.3/clang_64/plugins/platforms/libqcocoa.dylib and /Library/Internet Plug-Ins/keysharpbiz.plugin/Contents/MacOS/keysharpbiz. One of the two will be used. Which one is undefined.
objc[1864]: Class QNSOpenSavePanelDelegate is implemented in both /Users/thebeast44/Qt5.3.0/5.3/clang_64/plugins/platforms/libqcocoa.dylib and /Library/Internet Plug-Ins/keysharpbiz.plugin/Contents/MacOS/keysharpbiz. One of the two will be used. Which one is undefined.
@It looks like loading that plugin somehow interferes with my application and causes the crash.
Can anyone help me?
Thank you.
-
"Wrong Architecture" message was caused by upgrading Mac OS without cleaning out "Library/Internet Plug-Ins/" or something like that.
("related link":https://github.com/thoughtbot/capybara-webkit/issues/157)but I still need to figure out if there's a way to prevent loading plug-ins.
-
This is a big issue for our product right now. Many users, after upgrade to Yosemite, can no longer use our app because QtWebkit crashes with this same error. Various plugins in Internet Plug-Ins are loaded with dlopen, and this error occurs.
How does one stop this loading of plugins? Or catch the dlopen error and not crash the whole app? Any help is greatly appreciated.
-
This is the issue: https://bugreports.qt-project.org/browse/QTBUG-36349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
Not resolved yet.