alderlopez / chromiumembedded

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

Application crash while running acid test on Mac OS X #492

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit the following page http://acid3.acidtests.org using cef

What is the expected output? What do you see instead?
The acid test should run successfully, the score doesn't matter, it should 
however finish.

What version of the product are you using? On what operating system?
cef binary package 1.963.439 on OS X 10.6.8

Please provide any additional information below.

Checked the resources and the 'missingImage.png' is among them.
However, as can be seen inside the stack trace the path is incorrect, it should 
be <app.bundle>/Resources

0129/041843:VERBOSE1:url_request_job.cc(376)] NotifyReadComplete() 
"http://acid3.acidtests.org/support-a.png" pre bytes read = 961 pre total = 961 
post total = 946
[0129/041843:VERBOSE1:url_request_job.cc(376)] NotifyReadComplete() 
"http://acid3.acidtests.org/support-a.png" pre bytes read = 1253 pre total = 
2214 post total = 2312
[0129/041843:VERBOSE1:url_request_job.cc(376)] NotifyReadComplete() 
"http://acid3.acidtests.org/support-b.png" pre bytes read = 142 pre total = 142 
post total = 160
[0129/041843:FATAL:browser_webkit_glue_mac.mm(57)] Failed reading: 
/Users/krasshirsch/Development/crystalbyte/borderline/solution/Crystalbyte.Borde
rline.TestShell.MacOS/bin/Debug/Crystalbyte.Borderline.TestShell.MacOS.app/../Re
sources/missingImage.png
Backtrace:
    0   libcef.dylib                        0x13f27aef base::debug::StackTrace::StackTrace() + 63
    1   libcef.dylib                        0x13f27a8b base::debug::StackTrace::StackTrace() + 43
    2   libcef.dylib                        0x13f69a6c logging::LogMessage::~LogMessage() + 76
    3   libcef.dylib                        0x13f6854b logging::LogMessage::~LogMessage() + 43
    4   libcef.dylib                        0x152447a8 webkit_glue::GetDataResource(int) + 600
    5   libcef.dylib                        0x151a01a7 BrowserWebKitInit::GetDataResource(int) + 55
    6   libcef.dylib                        0x15018a26 webkit_glue::WebKitPlatformSupportImpl::loadResource(char const*) + 454
    7   libcef.dylib                        0x1519fb2a BrowserWebKitInit::loadResource(char const*) + 154
    8   libcef.dylib                        0x14c925da WebCore::PlatformSupport::loadPlatformImageResource(char const*) + 74
    9   libcef.dylib                        0x1626c103 WebCore::Image::loadPlatformResource(char const*) + 51
    10  libcef.dylib                        0x16a6ebb3 WebCore::CachedImage::brokenImage(float) const + 323
    11  libcef.dylib                        0x16a6eee8 WebCore::CachedImage::imageForRenderer(WebCore::RenderObject const*) + 200
    12  libcef.dylib                        0x16f74e14 WebCore::RenderImage::setImageSizeForAltText(WebCore::CachedImage*) + 100
    13  libcef.dylib                        0x16f758f4 WebCore::RenderImage::imageChanged(void*, WebCore::IntRect const*) + 644
    14  libcef.dylib                        0x16ff7e52 WebCore::RenderObject::imageChanged(WebCore::CachedImage*, WebCore::IntRect const*) + 82
    15  libcef.dylib                        0x16a6f87a WebCore::CachedImage::notifyObservers(WebCore::IntRect const*) + 122
    16  libcef.dylib                        0x16a6fee8 WebCore::CachedImage::error(WebCore::CachedResource::Status) + 216
    17  libcef.dylib                        0x16a6fcea WebCore::CachedImage::data(WTF::PassRefPtr<WebCore::SharedBuffer>, bool) + 426
    18  libcef.dylib                        0x16a469d0 WebCore::SubresourceLoader::didFinishLoading(double) + 640
    19  libcef.dylib                        0x16a412e8 WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle*, double) + 200
    20  libcef.dylib                        0x14c9d4f9 WebCore::ResourceHandleInternal::didFinishLoading(WebKit::WebURLLoader*, double) + 265
    21  libcef.dylib                        0x1502c360 webkit_glue::WebURLLoaderImpl::Context::OnCompletedRequest(net::URLRequestStatus const&, std::string const&, base::Time const&) + 992
    22  libcef.dylib                        0x1518ab28 (anonymous namespace)::RequestProxy::NotifyCompletedRequest(net::URLRequestStatus const&, std::string const&, base::Time const&) + 1080
    23  libcef.dylib                        0x1518b43b base::internal::RunnableAdapter<void ((anonymous namespace)::RequestProxy::*)(net::URLRequestStatus const&, std::string const&, base::Time const&)>::Run((anonymous namespace)::RequestProxy*, net::URLRequestStatus const&, std::string const&, base::Time const&) + 171
    24  libcef.dylib                        0x1518b35e base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void ((anonymous namespace)::RequestProxy::*)(net::URLRequestStatus const&, std::string const&, base::Time const&)>, void ()((anonymous namespace)::RequestProxy* const&, net::URLRequestStatus const&, std::string const&, base::Time const&)>::MakeItSo(base::internal::RunnableAdapter<void ((anonymous namespace)::RequestProxy::*)(net::URLRequestStatus const&, std::string const&, base::Time const&)>, (anonymous namespace)::RequestProxy* const&, net::URLRequestStatus const&, std::string const&, base::Time const&) + 94
    25  libcef.dylib                        0x1518b2d5 base::internal::Invoker<4, base::internal::BindState<base::internal::RunnableAdapter<void ((anonymous namespace)::RequestProxy::*)(net::URLRequestStatus const&, std::string const&, base::Time const&)>, void ()((anonymous namespace)::RequestProxy*, net::URLRequestStatus const&, std::string const&, base::Time const&), void ()((anonymous namespace)::RequestProxy*, net::URLRequestStatus, std::string, base::Time)>, void ()((anonymous namespace)::RequestProxy*, net::URLRequestStatus const&, std::string const&, base::Time const&)>::Run(base::internal::BindStateBase*) + 181
    26  libcef.dylib                        0x1401575b base::Callback<void ()()>::Run() const + 75
    27  libcef.dylib                        0x13f7f26d MessageLoop::RunTask(base::PendingTask const&) + 1117
    28  libcef.dylib                        0x13f7f471 MessageLoop::DeferOrRunPendingTask(base::PendingTask const&) + 97
    29  libcef.dylib                        0x13f7f6a8 MessageLoop::DoWork() + 312
    30  libcef.dylib                        0x13efbd2b base::MessagePumpCFRunLoopBase::RunWork() + 107
    31  libcef.dylib                        0x13efb422 base::MessagePumpCFRunLoopBase::RunWorkSource(void*) + 50
    32  CoreFoundation                      0x9659842b __CFRunLoopDoSources0 + 1563
    33  CoreFoundation                      0x96595eef __CFRunLoopRun + 1071
    34  CoreFoundation                      0x965953c4 CFRunLoopRunSpecific + 452
    35  CoreFoundation                      0x965951f1 CFRunLoopRunInMode + 97
    36  HIToolbox                           0x9769de04 RunCurrentEventLoopInMode + 392
    37  HIToolbox                           0x9769dbb9 ReceiveNextEventCommon + 354
    38  HIToolbox                           0x9769da3e BlockUntilNextEventMatchingListInMode + 81
    39  AppKit                              0x982e0595 _DPSNextEvent + 847
    40  AppKit                              0x982dfdd6 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    41  AppKit                              0x982a21f3 -[NSApplication run] + 821
    42  ???                                 0x02dc9574 0x0 + 48010612
    43  ???                                 0x02dd0420 0x0 + 48038944
    44  ???                                 0x02dca4f8 0x0 + 48014584
    45  ???                                 0x028fadc0 0x0 + 42970560
    46  ???                                 0x02dc67ec 0x0 + 47998956
    47  libcef.dylib                        0x13efca4e base::MessagePumpNSApplication::DoRun(base::MessagePump::Delegate*) + 350
    48  libcef.dylib                        0x13efba1d base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 189
    49  libcef.dylib                        0x13f7eac3 MessageLoop::RunInternal() + 291
    50  libcef.dylib                        0x13f7dd5b MessageLoop::RunHandler() + 43
    51  libcef.dylib                        0x13f7dca0 MessageLoop::Run() + 64
    52  libcef.dylib                        0x151cef4b CefMessageLoopForUI::DoMessageLoopIteration() + 43
    53  libcef.dylib                        0x151cefa2 CefMessageLoopForUI::RunMessageLoop() + 50
    54  libcef.dylib                        0x151cdeae CefProcess::RunMessageLoop() + 318
    55  libcef.dylib                        0x151b5d56 CefRunMessageLoop() + 582
    56  libcef.dylib                        0x13ee86ef cef_run_message_loop + 31
    57  ???                                 0x02dd0329 0x0 + 48038697
    58  ???                                 0x02dd0204 0x0 + 48038404
    59  ???                                 0x02dca588 0x0 + 48014728
    60  ???                                 0x028fadc0 0x0 + 42970560
    61  ???                                 0x02dc67ec 0x0 + 47998956

Original issue reported on code.google.com by krasshir...@googlemail.com on 29 Jan 2012 at 3:29

GoogleCodeExporter commented 9 years ago
Getting closer to this one.

The cefclient loads the page fine for the following reason.
The libcef.dylib is linked to the cefclient and therefor acording to apple 
needs to reside next to the executable.
Since I use Mono the libcef.dylib is not linked and therefor needs to reside 
inside the Resource directory, it seems this makes the difference.

Original comment by krasshir...@googlemail.com on 30 Jan 2012 at 9:49

GoogleCodeExporter commented 9 years ago
This on patches things up by accessing the correct resource path using the 
native NSBundle class, this way the correct path is returned regardless from 
where it was called.

Original comment by krasshir...@googlemail.com on 31 Jan 2012 at 12:11

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 3 Oct 2012 at 5:30