Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QtWebKit WebView crashes on Qt 5.3.2 #116

Open
erezwanderman opened this issue Oct 29, 2014 · 1 comment
Open

QtWebKit WebView crashes on Qt 5.3.2 #116

erezwanderman opened this issue Oct 29, 2014 · 1 comment

Comments

@erezwanderman
Copy link

This is the code:

package main

import (
    "fmt"
    "gopkg.in/qml.v1"
    "os"
)

const webview = `
import QtQuick 2.0
import QtWebKit 3.0

WebView {
    width: 1024
    height: 768
    url: "http://www.google.com/"
}
`

func main() {
    if err := qml.Run(run); err != nil {
        fmt.Fprintf(os.Stderr, "error: %v\n", err)
        os.Exit(1)
    }
}

func run() error {
    engine := qml.NewEngine()

    controls, err := engine.LoadString("webview.qml", webview)
    if err != nil {
        return err
    }

    window := controls.CreateWindow(nil)

    window.Show()
    window.Wait()
    return nil
}

I'm running this on Windows 7, 32 bit, Go 1.3.1.
With Qt 5.2.1 it works well.
With Qt 5.3.2 it crashes with the following error:

D:\tests\with5.3.2\src\webtest>webtest
ASSERTION FAILED: uncommittedMemory.State == MEM_RESERVE
wtf\StackBounds.cpp(194) : void WTF::StackBounds::initialize()
1   574b2ddf

And shows the dialog "webtest.exe has stopped working
Windows can check online for a solution to the problem"

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: webtest.exe
  Application Version:  0.0.0.0
  Application Timestamp:    545179d7
  Fault Module Name:    Qt5WebKitd.dll
  Fault Module Version: 5.3.2.0
  Fault Module Timestamp:   6537746e
  Exception Code:   c0000005
  Exception Offset: 01db0805
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:    1037
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

(without a WebView, it doesn't crash on 5.3.2)

@fire
Copy link

fire commented Sep 4, 2015

If it helps, I was able to use the compiled version of qt-5.5.0-x64-mingw510r0-seh-rev0 with import QtWebKit 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants