Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38067

[REG 5.0.2->5.2.1] Using .NET framework dlls will cause webkit to crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • 5.3.1
    • 5.2.1, 5.3.0 Beta1
    • ActiveX Support, WebKit
    • Windows 7/8
    • 63098f6baefb05823482b508eb0dcf616e90e172 2748cfb515a8668695d4962eaa3d7ce76504c97c

    Description

      When loading .NET dlls using QAxObject it will cause the webkit engine to crash in weird ways later on in the program.

      Here is the fancy browser's main.cpp source modified to exhibit the issue.

      int main(int argc, char * argv[])
      {
          QApplication app(argc, argv);
          QAxObject *activeX1;
      
          activeX1 = new QAxObject();
          activeX1->setControl( "{00B01B2E-B1FE-33A6-AD40-57DE8358DC7D}");
      
      
          //Will crash when the webkit engine starts running.
      
          QUrl url;
          if (argc > 1)
              url = QUrl::fromUserInput(argv[1]);
          else
              url = QUrl("http://www.google.com/ncr");
          MainWindow *browser = new MainWindow(url);
          browser->show();
      
          return app.exec();
      }
      

      I've included the full source and a .NET dll. Register the dll using regasm to test. All of my .net dlls cannot be used with Qt because of this bug.

      Everything worked fine Qt 5.0.2. It is after I upgraded to Qt 5.2.1 that it started.

      Note: Furthermore, you could reproduce the issue by just calling the CoCreateInstance win32api directly instead of using the QAxObject.

      However using VB6 activex dlls is fine. no crash.

      Attachments

        1. CLRCrash.zip
          4 kB
        2. fancybrowser.zip
          126 kB
        3. qtbug38067.zip
          27 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              annulen Konstantin Tokarev
              wingzx3 Henry Shing
              Votes:
              12 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes