We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Run Example Error Info:
2016/10/13 17:48:32 === gallium.Loop === in GalliumLoop calling content::ContentMain... MainDelegate::BasicStartupComplete MainDelegate::PreSandboxStartup [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 2016/10/13 17:48:32 cgo_onReady called with 0 at GalliumCreateWindow at GalliumCreateWindow [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 at GalliumOpenWindowImpl 2016-10-13 17:48:32.459 example[55885:4188187] in Window::Create, main thread? 1 [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 at GalliumOpenWindowImpl 2016-10-13 17:48:32.642 example[55885:4188187] in Window::Create, main thread? 1 V8 error: Entering the V8 API without proper locking in place (HandleScope::HandleScope). Current memory usage: 65 MB 1 0x96c09f9 v8::HandleScope::Initialize(v8::Isolate*) 2 0xa3c5d4b blink::WebSubstringUtil::attributedSubstringInRange(blink::WebLocalFrame*, unsigned long, unsigned long) 3 0x9fc52a3 blink::WebSubstringUtil::attributedSubstringInRange(blink::WebLocalFrame*, unsigned long, unsigned long) 4 0x9fc465e blink::WebSubstringUtil::attributedSubstringInRange(blink::WebLocalFrame*, unsigned long, unsigned long) 5 0x9fc62d8 blink::WebSubstringUtil::attributedSubstringInRange(blink::WebLocalFrame*, unsigned long, unsigned long) 6 0xa0c5b52 blink::WebSubstringUtil::attributedSubstringInRange(blink::WebLocalFrame*, unsigned long, unsigned long) 7 0xa0cfe96 blink::WebSubstringUtil::attributedSubstringInRange(blink::WebLocalFrame*, unsigned long, unsigned long) 8 0xa0cf896 blink::WebSubstringUtil::attributedSubstringInRange(blink::WebLocalFrame*, unsigned long, unsigned long) 9 0x9b0174b blink::WebLocalFrame::fromFrameOwnerElement(blink::WebElement const&) 10 0xaa8e6af content::RenderFrameImpl::OnNavigate(FrameMsg_Navigate_Params const&) 11 0xaa8ca14 content::RenderFrameImpl::OnMessageReceived(IPC::Message const&) 12 0x85547d8 content::StreamDeviceInfo::IsEqual(content::StreamDeviceInfo const&, content::StreamDeviceInfo const&) 13 0x855473c content::StreamDeviceInfo::IsEqual(content::StreamDeviceInfo const&, content::StreamDeviceInfo const&) 14 0xa99d4a1 content::ChildThread::OnMessageReceived(IPC::Message const&) 15 0x8573d78 IPC::ChannelProxy::Context::OnDispatchMessage(IPC::Message const&) 16 0x8051d24 base::debug::TaskAnnotator::RunTask(char const*, char const*, base::PendingTask const&) 17 0x8091408 base::MessageLoop::RunTask(base::PendingTask const&) 18 0x80915ef base::MessageLoop::DeferOrRunPendingTask(base::PendingTask const&) 19 0x8091a3c base::MessageLoop::DoWork() 20 0x8038661 base::MessagePumpLibevent::OnWakeup(int, short, void*) 21 0x7fff7d40b551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 22 0x7fff7d3ec6bd __CFRunLoopDoSources0 23 0x7fff7d3ebbb6 __CFRunLoopRun 24 0x7fff7d3eb5b4 CFRunLoopRunSpecific 25 0x803883f base::MessagePumpCFRunLoop::DoRun(base::MessagePump::Delegate*) 26 0x80384cc base::MessagePumpLibevent::OnWakeup(int, short, void*) 27 0x80a88f3 base::RunLoop::Run() 28 0x8090bdd base::MessageLoop::Run() 29 0x80cd67f base::Thread::ThreadMain() 30 0x80c6e0b base::PlatformThread::Join(base::PlatformThreadHandle) 31 0x7fff92641abb _pthread_body [1] 55885 segmentation fault ./example
my go env
GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/tonydeng/workspace/demo/gallium-demo" GORACE="" GOROOT="/usr/local/Cellar/go/1.7.1/libexec" GOTOOLDIR="/usr/local/Cellar/go/1.7.1/libexec/pkg/tool/darwin_amd64" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/s0/rp5bg3tj4cqb_6t8l2vsn83c0000gp/T/go-build211248048=/tmp/go-build -gno-record-gcc-switches -fno-common" CXX="clang++" CGO_ENABLED="1"
The text was updated successfully, but these errors were encountered:
@alexflint example.go code
package main import( "fmt" "os" "runtime" "github.com/alexflint/gallium" ) func main() { runtime.LockOSThread() gallium.Loop(os.Args, onReady) } func onReady(app *gallium.App) { opt := gallium.FramedWindow opt.Title = "Framed Window" _, err := app.OpenWindow("http://www.cim120.com", opt) if err != nil { fmt.Println(err) os.Exit(1) } opt = gallium.FramelessWindow opt.Title = "Frameless Window" _, err = app.OpenWindow("http://www.cim120.com", opt) if err != nil { fmt.Println(err) os.Exit(1) } }
Sorry, something went wrong.
Hmm this works for me. Are you running the latest from master? This might be a race condition that only surfaces on Sierra.
I'm getting this just pressing <Tab> key:
$ d8-314 V8 version 3.14.5.10 [console: readline] d8> <Tab> # Entering the V8 API without proper locking in place Trace/breakpoint trap (core dumped)
No branches or pull requests
Run Example Error Info:
my go env
The text was updated successfully, but these errors were encountered: