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

QtWebengine "Failed to get context for kCFAllocatorSystemDefault" on OS X 10.9.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.7.1, 5.8.0
    • WebEngine
    • None
    • OS X 10.9
    • macOS

    Description

      I've build QtWebEngine 5.7.0 on 10.9.5 using the patches from https://bugreports.qt.io/browse/QTBUG-54486, which worked fine. However, running an application like QupZilla I now get this error (running on a terminal):

      [1024/125042:FATAL:memory_mac.mm(519)] Check failed: context. Failed to get context for kCFAllocatorSystemDefault.
      0   QtWebEngineCore                     0x000000010122db65 _ZN4base5debug10StackTraceC1Ev + 19
      1   QtWebEngineCore                     0x000000010123ec0b _ZN7logging10LogMessageD2Ev + 73
      2   QtWebEngineCore                     0x00000001012533cd _ZN4base30EnableTerminationOnOutOfMemoryEv + 1451
      3   QtWebEngineCore                     0x0000000100cfadc1 _ZN7content21ContentMainRunnerImpl10InitializeERKNS_17ContentMainParamsE + 37
      4   QtWebEngineCore                     0x000000010085d78e _ZN15QtWebEngineCore16WebEngineContextC2Ev + 2814
      5   QtWebEngineCore                     0x000000010085cb54 _ZN15QtWebEngineCore16WebEngineContext7currentEv + 48
      6   QtWebEngineCore                     0x000000010082006e _ZN15QtWebEngineCore21BrowserContextAdapter14defaultContextEv + 18
      7   QtWebEngineWidgets                  0x00000001007c6da5 _ZN17QWebEngineProfile14defaultProfileEv + 85
      8   libQupZilla.2.dylib                 0x000000010040b660 _ZN15MainApplicationC2ERiPPc + 5264
      9   QupZilla                            0x00000001002619d7 main + 1623
      10  libdyld.dylib                       0x00007fff8eb355fd start + 1
      

      and the corresponding backtrace in the crash reporter:

      Exception Type:  EXC_BREAKPOINT (SIGTRAP)
      Exception Codes: 0x0000000000000002, 0x0000000000000000
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.qt-project.Qt.QtWebEngineCore	0x000000010122d486 base::debug::BreakDebugger() + 17
      1   org.qt-project.Qt.QtWebEngineCore	0x000000010123f040 logging::LogMessage::~LogMessage() + 1150
      2   org.qt-project.Qt.QtWebEngineCore	0x00000001012533cd base::EnableTerminationOnOutOfMemory() + 1451
      3   org.qt-project.Qt.QtWebEngineCore	0x0000000100cfadc1 content::ContentMainRunnerImpl::Initialize(content::ContentMainParams const&) + 37
      4   org.qt-project.Qt.QtWebEngineCore	0x000000010085d78e QtWebEngineCore::WebEngineContext::WebEngineContext() + 2814
      5   org.qt-project.Qt.QtWebEngineCore	0x000000010085cb54 QtWebEngineCore::WebEngineContext::current() + 48
      6   org.qt-project.Qt.QtWebEngineCore	0x000000010082006e QtWebEngineCore::BrowserContextAdapter::defaultContext() + 18
      7   org.qt-project.QtWebEngineWidgets	0x00000001007c6da5 QWebEngineProfile::defaultProfile() + 85
      8   libQupZilla.2.dylib           	0x000000010040b660 MainApplication::MainApplication(int&, char**) + 5264
      9   com.qupzilla.QupZilla         	0x00000001002619d7 main + 1623
      10  libdyld.dylib                 	0x00007fff8eb355fd start + 1
      

      Note that this is with over 40% free of my 12Gb RAM.

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            rjvbertin René Bertin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes