xiruibing / javachromiumembedded

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

MainFrame is crashing on win32 #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Build JCEF on win32
2. Run simple MainFrame
3. Window barely appears and then crash immediately

I joined the crash log file. It was working on win32 when I last tried it, aka 
r16 (yeah it's old, but I'll try to pinpoint a more recent working revision)

Original issue reported on code.google.com by arnaud.b...@gmail.com on 26 May 2014 at 8:22

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Window crashing when accessing page contents.

1. Windows 7 (x64) Enterprise Service Pack1
2. CEF Binary Version: 3.1750.1627
3. Java jdk1.7.0_55 (x64)

The window is fine when browsing or scrolling page contents, but when clicked 
on some hyperlinks, the application crashes in win64 with the latest build of 
r71 also, attached the logs for reference.

Original comment by arun.vc....@gmail.com on 28 May 2014 at 7:21

Attachments:

GoogleCodeExporter commented 9 years ago
#3 occurs when we set the user-agent, http headers and work.

Original comment by arun.vc....@gmail.com on 6 Jun 2014 at 6:44

GoogleCodeExporter commented 9 years ago
@#4: How are you setting those values?

Original comment by magreenb...@gmail.com on 17 Jun 2014 at 5:49

GoogleCodeExporter commented 9 years ago
Hi Marshall,

The useragent and http headers are set in the 

@Override
public boolean onBeforeResourceLoad(CefBrowser browser, CefRequest request) {

Map<String, String> headerMap = new HashMap<String,String>();
        request.getHeaderMap(headerMap);
        headerMap.remove("User-Agent");
        headerMap.put("User-Agent", "user-agent-value");
        headerMap.put("Accept-Language", "jp");
        request.setHeaderMap(headerMap);
}

The application is fine when we're accessing some hyperlinks's, but suddenly 
crashes while clicking on few hyperlinks, not sure why.

Thanks for the help and suggestions.

Original comment by arun.vc....@gmail.com on 17 Jun 2014 at 6:19

GoogleCodeExporter commented 9 years ago
@#6: Does it reproduce consistently with certain hyperlinks? Are you using the 
Debug or Release version of libcef.dll? Is there any related output in 
debug.log?

Original comment by magreenb...@gmail.com on 17 Jun 2014 at 6:24

GoogleCodeExporter commented 9 years ago
Yes Marshall,

it reproduce consistently with certain hyperlinks. I am using the Release 
version of the libcef.dll file. From the debug.log, its shown that the 
following exceptions have been faced: ITSExceptionHandler message and Uncaught 
ReferenceError. Also the first message in debug.log is 
[0618/000058:ERROR:renderer_main.cc(226)] Running without renderer sandbox

Original comment by arun.vc....@gmail.com on 17 Jun 2014 at 6:34

GoogleCodeExporter commented 9 years ago
@#8: Can you share the URL that reproduces the problem consistently?

Original comment by magreenb...@gmail.com on 17 Jun 2014 at 6:52

GoogleCodeExporter commented 9 years ago
Yes Marshall,

I am using iTunes user-agent.(iTunes/9.1.1) with the following URL: 
https://search.itunes.apple.com/WebObjects/MZSearch.woa/wa/advancedSearch

The issue is when I am clicking on the "All Results" hyperlink (button) beneath 
the Power Search.

What I am trying to achieve:
To replicate useragent switcher equivalent in the java application.

Original comment by arun.vc....@gmail.com on 17 Jun 2014 at 7:02

GoogleCodeExporter commented 9 years ago
Hi Marshall,

This issue got fixed with the latest build, now we can resolve this issue, will 
raise a new if something like this arises.

Thanks for the wonderful component and support.

Original comment by arun.vc....@gmail.com on 18 Jun 2014 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 18 Jun 2014 at 2:17