Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.3 attempts to load Internet Plug-Ins
Forum Updated to NodeBB v4.3 + New Features

Qt 5.3 attempts to load Internet Plug-Ins

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thebeast44
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thebeast44
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sethcall
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sethcall
          wrote on last edited by
          #4

          This is the issue: https://bugreports.qt-project.org/browse/QTBUG-36349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

          Not resolved yet.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved