golang with new cef version

273 views
Skip to first unread message

LOKI

unread,
Mar 28, 2016, 10:57:49 AM3/28/16
to CEF2go
i run the go with new cef version  and receive the error . how can i fix it 


RunMessageLoop
The program 'test' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 96 error_code 3 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
get_life_span_handler
[0328/225520:WARNING:ipc_message_attachment_set.cc(57)] MessageAttachmentSet destroyed with unconsumed descriptors: 0/1

Czarek Tomczak

unread,
Mar 28, 2016, 4:14:47 PM3/28/16
to CEF2go

LOKI

unread,
Mar 29, 2016, 10:30:58 AM3/29/16
to CEF2go
hi,Czarek,thank you for you answer.
i installed the x error handlers. and  now it works .
but when i run the programmer,it show a blank page .
and i receive the error:
 X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:1 minor_code:0 
X error received: type:0 error_code:3 request_code:2 minor_code:0 
X error received: type:0 error_code:3 request_code:131 minor_code:46 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:129 minor_code:1 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:18 minor_code:0 
X error received: type:0 error_code:3 request_code:8 minor_code:0 
[0329/222535:ERROR:sandbox_linux.cc(334)] InitializeSandbox() called with multiple threads in process gpu-process
[0329/222535:WARNING:ipc_message_attachment_set.cc(57)] MessageAttachmentSet destroyed with unconsumed descriptors: 0/1

and the window didn't reponse anything.  sorry for my english

Czarek Tomczak

unread,
Mar 29, 2016, 1:31:25 PM3/29/16
to CEF2go
Make sure sandbox is disabled.

LOKI

unread,
Mar 29, 2016, 10:11:45 PM3/29/16
to CEF2go
yes ,i have already disabled it 

Czarek Tomczak

unread,
Mar 30, 2016, 1:47:46 AM3/30/16
to CEF2go
What have you tried already? Did you google the error message from logs? Try disabling gpu process.

Czarek Tomczak

unread,
Mar 30, 2016, 1:56:21 AM3/30/16
to CEF2go
I meant GPU hardware acceleration. Use --disable-gpu and --disable-gpu-compositing flags.

LOKI

unread,
Apr 3, 2016, 8:44:37 AM4/3/16
to CEF2go
hi Czarek
   thank you  again.
  if i remove this line FillWindowInfo(windowInfo, hwnd) from  CreateBrowser function
 then it work .it will open the cef window .but no in gtk window .

the FillWindowInfo function i change it to :
   func FillWindowInfo(windowInfo *C.cef_window_info_t, hwnd unsafe.Pointer) {
fmt.Println("FillWindowInfo")
C.FillWindow(windowInfo, hwnd)
//windowInfo.parent_window = (C.cef_window_handle_t)(hwnd)
}


and  the C FillWindow function 
static inline void FillWindow(cef_window_info_t *info ,void * hwnd){ info->parent_window=(cef_window_handle_t)hwnd;}
  
is that something wrong. sorry ,i dont good at c and c++
Reply all
Reply to author
Forward
0 new messages