expleeve / javacef

Automatically exported from code.google.com/p/javacef
0 stars 0 forks source link

Crashing when embedding in Eclipse - Application #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Embedding javacef-Chromium in an eclipse rcp application.
2.

It works well in the normal swt window.

But when embedded into a view/part of Eclipse RCP, it crashing with SIGSEGV.

Attached the crash report too.

Please help.

Please provide any additional information below.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000010ab1091e, pid=32235, tid=3847
#
# JRE version: Java(TM) SE Runtime Environment (7.0_65-b17) (build 1.7.0_65-b17)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode bsd-amd64 
compressed oops)
# Problematic frame:
# V  [libjvm.dylib+0x30e91e]  get_method_id(JNIEnv_*, _jclass*, char const*, 
char const*, bool, Thread*)+0x90
#
# Failed to write core dump. Core dumps have been disabled. To enable core 
dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/chandra/eclipse/Eclipse.app/Contents/MacOS/hs_err_pid32235.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
[javacef] main thread

Original issue reported on code.google.com by kscr...@gmail.com on 1 Aug 2014 at 8:17

Attachments:

GoogleCodeExporter commented 9 years ago
Can you please upload a sample test case?

Original comment by wjyw...@gmail.com on 1 Aug 2014 at 11:26

GoogleCodeExporter commented 9 years ago
I have attached a tar with a sample project.
You will find a README.txt at the root, after untar.
It contains further instructions to launch the rcp application. Let me know, If 
anything is missing.

Original comment by kscr...@gmail.com on 2 Aug 2014 at 8:50

Attachments:

GoogleCodeExporter commented 9 years ago
Attached is a patch that can be applied in the javacef directory. I will commit 
it after I test it on other platforms. The main reason is that rcp uses osgi 
class loader rather than the default class loader, and it couldn't find 
"org.embedded.browser.Chromium" when FindClass() is called in jni. This patch 
saves a reference of the class so it does not need to find it again. I think 
your code might still work without this patch if you can set up class path and 
plugins correctly.

Original comment by wjyw...@gmail.com on 3 Aug 2014 at 8:27

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks a lot!.

The patch works. I have not verified the other approach you have suggested 
(fixing the classpath)

Thank you once again.

Original comment by kscr...@gmail.com on 4 Aug 2014 at 6:47

GoogleCodeExporter commented 9 years ago
Looks like, there are multiple points, where such class-lookup fixes have to be 
made.

Original comment by kscr...@gmail.com on 4 Aug 2014 at 9:43

GoogleCodeExporter commented 9 years ago
[0128/140550:ERROR:command_buffer_proxy_impl.cc(165)] Failed to initialize 
command buffer service.

Original comment by ShiQuan1...@gmail.com on 28 Jan 2015 at 6:10

GoogleCodeExporter commented 9 years ago
@ShiQuan1128, are you using Windows CEF 1750? Maybe the fix in 
https://code.google.com/p/javacef/source/browse/cef3/java/src/org/embedded/brows
er/ChromeWindow.java#44 is not enough. Can you try the 3.1547 branch?

Original comment by wjyw...@gmail.com on 4 Feb 2015 at 2:49