OSX 64bit - failed to execvp

120 views
Skip to first unread message

xilan...@gmail.com

unread,
Feb 11, 2015, 10:32:38 AM2/11/15
to cef...@googlegroups.com
Hi,

I have successfully compiled on OSX 64 bit using the correct CEF binaries, the compilation now completes and a chromium instance is opened, but it won't navigate to any webpage. This is the error message i am getting :

[cocoa] cocoa.go:72: CreateWindow
[cocoa] cocoa.go:88: ConnectDestroySignal
[cef] cef.go:195: CreateBrowser, url= http://localhost:3000/monkadmin/
[cef] cef_darwin.go:41: FillWindowInfo
[cef] cef.go:232: RunMessageLoop
get_life_span_handler
LaunchProcess: failed to execvp:

How can i solve this ?

Thanks in advance

Czarek Tomczak

unread,
Feb 11, 2015, 11:17:40 AM2/11/15
to cef...@googlegroups.com, xilan...@gmail.com
It failed to launch a subprocess. Try buiding and running using the original unmodified cef2go sources and if the error still persists attach full logs.
Message has been deleted
Message has been deleted
Message has been deleted

xilan...@gmail.com

unread,
Feb 11, 2015, 11:41:57 AM2/11/15
to cef...@googlegroups.com, xilan...@gmail.com
What do you mean gy "unmodified cef2go sources"?

I just edited main_darwin.go, specifically i changed this line :


url := "file://" + exeDir + "/example.html"

into

url := "http://localhost:3000/monkadmin"

If i use the original main_darwin.go, the problem persists, this is the output :

Copying CEF framework directory to Release/tmp
go install -x cef
WORK=/var/folders/c6/snmkcstx5t927hn229tjvg480000gn/T/go-build325194645
rm -f Release/cef2go.app/Contents/MacOS/cef2go
go build -x -ldflags "-r ." -o Release/cef2go.app/Contents/MacOS/cef2go src/main_darwin.go
WORK=/var/folders/c6/snmkcstx5t927hn229tjvg480000gn/T/go-build542021773
mkdir -p $WORK/cocoa/_obj/
mkdir -p $WORK/
cd /Users/tony/go/src/github.com/CzarekTomczak/cef2go/src/cocoa
CGO_LDFLAGS="-F/Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/tmp" "-framework" "Cocoa" "-framework" "cef" "-framework" "Cocoa" "-framework" "Cocoa" /usr/local/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/cocoa/_obj/ -- -I $WORK/cocoa/_obj/ -I./../../ -x objective-c -I./../../ -x objective-c cocoa.go export.go
/usr/local/go/pkg/tool/darwin_amd64/6c -F -V -w -trimpath $WORK -I $WORK/cocoa/_obj/ -I /usr/local/go/pkg/darwin_amd64 -o $WORK/cocoa/_obj/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/cocoa/_obj/_cgo_defun.c
clang -I . -I. -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common -print-libgcc-file-name
clang -I . -I. -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common -I $WORK/cocoa/_obj/ -g -O2 -I./../../ -x objective-c -I./../../ -x objective-c -o $WORK/cocoa/_obj/_cgo_main.o -c $WORK/cocoa/_obj/_cgo_main.c
clang -I . -I. -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common -I $WORK/cocoa/_obj/ -g -O2 -I./../../ -x objective-c -I./../../ -x objective-c -o $WORK/cocoa/_obj/_cgo_export.o -c $WORK/cocoa/_obj/_cgo_export.c
clang -I . -I. -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common -I $WORK/cocoa/_obj/ -g -O2 -I./../../ -x objective-c -I./../../ -x objective-c -o $WORK/cocoa/_obj/cocoa.cgo2.o -c $WORK/cocoa/_obj/cocoa.cgo2.c
# cocoa
src/cocoa/cocoa.go:30:5: warning: implicit declaration of function '_GoDestroySignal' is invalid in C99 [-Wimplicit-function-declaration]
clang -I . -I. -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common -I $WORK/cocoa/_obj/ -g -O2 -I./../../ -x objective-c -I./../../ -x objective-c -o $WORK/cocoa/_obj/export.cgo2.o -c $WORK/cocoa/_obj/export.cgo2.c
clang -I . -I. -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common -o $WORK/cocoa/_obj/_cgo_.o $WORK/cocoa/_obj/_cgo_main.o $WORK/cocoa/_obj/_cgo_export.o $WORK/cocoa/_obj/cocoa.cgo2.o $WORK/cocoa/_obj/export.cgo2.o -F/Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/tmp -framework Cocoa -framework cef -framework Cocoa -framework Cocoa
/usr/local/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/cocoa/_obj/ -dynimport $WORK/cocoa/_obj/_cgo_.o -dynout $WORK/cocoa/_obj/_cgo_import.c
/usr/local/go/pkg/tool/darwin_amd64/6c -F -V -w -trimpath $WORK -I $WORK/cocoa/_obj/ -I /usr/local/go/pkg/darwin_amd64 -o $WORK/cocoa/_obj/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/cocoa/_obj/_cgo_import.c
clang -I . -I. -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common -o $WORK/cocoa/_obj/_all.o $WORK/cocoa/_obj/_cgo_export.o $WORK/cocoa/_obj/cocoa.cgo2.o $WORK/cocoa/_obj/export.cgo2.o -F/Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/tmp -Wl,-r -nostdlib
/usr/local/go/pkg/tool/darwin_amd64/6g -o $WORK/cocoa.a -trimpath $WORK -p cocoa -D _/Users/tony/go/src/github.com/CzarekTomczak/cef2go/src/cocoa -I $WORK -pack $WORK/cocoa/_obj/_cgo_gotypes.go $WORK/cocoa/_obj/cocoa.cgo1.go $WORK/cocoa/_obj/export.cgo1.go
pack r $WORK/cocoa.a $WORK/cocoa/_obj/_cgo_import.6 $WORK/cocoa/_obj/_cgo_defun.6 $WORK/cocoa/_obj/_all.o # internal
mkdir -p $WORK/command-line-arguments/_obj/
mkdir -p Release/cef2go.app/Contents/MacOS/
cd /Users/tony/go/src/github.com/CzarekTomczak/cef2go/src
/usr/local/go/pkg/tool/darwin_amd64/6g -o $WORK/command-line-arguments.a -trimpath $WORK -p command-line-arguments -complete -D _/Users/tony/go/src/github.com/CzarekTomczak/cef2go/src -I $WORK -I /Users/tony/go/src/github.com/CzarekTomczak/cef2go/pkg/darwin_amd64 -pack ./main_darwin.go
cd .
/usr/local/go/pkg/tool/darwin_amd64/6l -o Release/cef2go.app/Contents/MacOS/cef2go -L $WORK -L /Users/tony/go/src/github.com/CzarekTomczak/cef2go/pkg/darwin_amd64 -r . -extld=clang -extldflags=-I. $WORK/command-line-arguments.a
install_name_tool -change @executable_path/Chromium\ Embedded\ Framework @executable_path/../Frameworks/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework Release/cef2go.app/Contents/MacOS/cef2go
cp -f Release/example.html Release/cef2go.app/Contents/MacOS/example.html
cd Release/cef2go.app/Contents/MacOS && ./cef2go && cd ../../../../
[cef] cef.go:94: ExecuteProcess, args= [./cef2go]
initialize_app_handler
initialize_cef_base
cef_base_t.size = 72
initialize_client_handler
initialize_cef_base
cef_base_t.size = 144
[cef] cef_darwin.go:32: FillMainArgs, argc= 1
cef_base_t.add_ref
cef_base_t.release
[cef] cef.go:112: Initialize
[cef] cef.go:133: CachePath= /Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/cef2go.app/Contents/MacOS/webcache
[cef] cef.go:148: LogFile= /Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/cef2go.app/Contents/MacOS/debug.log
on_before_command_line_processing
on_register_custom_schemes
[0212/003935:WARNING:dns_config_service_posix.cc(115)] dns_config has unhandled options!
get_browser_process_handler
LaunchProcess: failed to execvp:
/Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/cef2go.app/Contents/Frameworks/cef2go Helper.app/Contents/MacOS/cef2go Helper
[cocoa] cocoa.go:72: CreateWindow
[cocoa] cocoa.go:88: ConnectDestroySignal
[cef] cef.go:195: CreateBrowser, url= file:///Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/cef2go.app/Contents/MacOS/example.html
[cef] cef_darwin.go:41: FillWindowInfo
[cef] cef.go:232: RunMessageLoop
get_life_span_handler
LaunchProcess: failed to execvp:
/Users/tony/go/src/github.com/CzarekTomczak/cef2go/Release/cef2go.app/Contents/Frameworks/cef2go Helper.app/Contents/MacOS/cef2go Helper
get_load_handler
get_focus_handler
get_request_handler

Czarek Tomczak

unread,
Feb 11, 2015, 11:51:34 AM2/11/15
to cef...@googlegroups.com, xilan...@gmail.com
It fails to launch the helper subprocess. You need to recreate directory/file structure to be similar as in 32bit binaries. Proceed according to the instructions in this post: https://groups.google.com/d/msg/cef2go/WAxL8LEAr7E/Oqfjw64bZDoJ

xilan...@gmail.com

unread,
Feb 11, 2015, 11:59:47 AM2/11/15
to cef...@googlegroups.com, xilan...@gmail.com
I solved the problem, i didn't rename a file inside the cef2go Helper package and the strings inside Info.Plist .
Reply all
Reply to author
Forward
0 new messages