Bug 99023

Summary: Create a separate gyp target for dependencies of DumpRenderTree
Product: WebKit Reporter: jochen
Component: New BugsAssignee: jochen
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dpranke, esprehn, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 99558    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch none

jochen
Reported 2012-10-11 04:56:36 PDT
Create a separate gyp target for dependencies of DumpRenderTree
Attachments
Patch (8.55 KB, patch)
2012-10-11 04:57 PDT, jochen
no flags
Patch (8.88 KB, patch)
2012-10-12 04:20 PDT, jochen
no flags
jochen
Comment 1 2012-10-11 04:57:25 PDT
jochen
Comment 2 2012-10-11 06:36:13 PDT
Dirk or Adam, could one of you review this patch? Thanks
Adam Barth
Comment 3 2012-10-11 09:26:44 PDT
This is more in Tony or Dirk's area of expertise.
Tony Chang
Comment 4 2012-10-11 11:50:40 PDT
Comment on attachment 168195 [details] Patch Can we merge DumpRenderTree_helpers into the TestRunner target? If not, I think something like TestRunner_resources would be more descriptive since content_shell will be depending on this. Maybe LayoutTest_resources?
Dirk Pranke
Comment 5 2012-10-11 12:17:50 PDT
I agree that something like _resources or _support would probably be a better name than _helpers.
jochen
Comment 6 2012-10-12 04:20:58 PDT
jochen
Comment 7 2012-10-12 04:21:30 PDT
Comment on attachment 168392 [details] Patch TestRunner_resources it is
WebKit Review Bot
Comment 8 2012-10-12 04:50:44 PDT
Comment on attachment 168392 [details] Patch Clearing flags on attachment: 168392 Committed r131173: <http://trac.webkit.org/changeset/131173>
WebKit Review Bot
Comment 9 2012-10-12 04:50:47 PDT
All reviewed patches have been landed. Closing bug.
Elliott Sprehn
Comment 10 2012-10-16 22:25:28 PDT
This seems like it broke the Debug DRT for Chromium. It now always crashes on startup with the below errors. This happens because the DumpRenderTree.app bundle is missing all the nested resources that should be inside like the ahem font, missingImage.png, textAreaResizeCorner.png and the WebkitWeightWatcher fonts. You can see they're missing by doing: ls /Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources ... I printed these out, we don't actually log the errors even though we should ... "Error Domain=com.apple.coretext Code=-1 \"The operation couldn\U2019t be completed. (com.apple.coretext error -1 - Could not register the font file 'file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher700.ttf')\" UserInfo=0x69c6d470 {CTFailedFontFileURL=file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher700.ttf, NSDescription=Could not register the font file 'file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher700.ttf'}", "Error Domain=com.apple.coretext Code=-1 \"The operation couldn\U2019t be completed. (com.apple.coretext error -1 - Could not register the font file 'file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher800.ttf')\" UserInfo=0x69c6cb70 {CTFailedFontFileURL=file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher800.ttf, NSDescription=Could not register the font file 'file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher800.ttf'}", "Error Domain=com.apple.coretext Code=-1 \"The operation couldn\U2019t be completed. (com.apple.coretext error -1 - Could not register the font file 'file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher900.ttf')\" UserInfo=0x69c6d6a0 {CTFailedFontFileURL=file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher900.ttf, NSDescription=Could not register the font file 'file://localhost/Volumes/Checkouts/chrome1/src/out/Debug/DumpRenderTree.app/Contents/Resources/WebKitWeightWatcher900.ttf'}" ) [3100:-1409166656:2220578234950:FATAL:platform_support_mac.mm(152)] Fail to activate fonts. Backtrace: 0 DumpRenderTree 0x00f1f57f base::debug::StackTrace::StackTrace() + 63 1 DumpRenderTree 0x00f1f51b base::debug::StackTrace::StackTrace() + 43 2 DumpRenderTree 0x00f6ed6c logging::LogMessage::~LogMessage() + 76 3 DumpRenderTree 0x00f6d85b logging::LogMessage::~LogMessage() + 43 4 DumpRenderTree 0x041738b2 webkit_support::AfterInitialize(bool) + 1746 5 DumpRenderTree 0x0417f714 (anonymous namespace)::SetUpTestEnvironmentImpl(bool, WebKit::Platform*) + 260 6 DumpRenderTree 0x0417f53b webkit_support::SetUpTestEnvironment(WebKit::Platform*) + 59 7 DumpRenderTree 0x000e65ef WebKitSupportTestEnvironment::WebKitSupportTestEnvironment() + 111 8 DumpRenderTree 0x000e437b WebKitSupportTestEnvironment::WebKitSupportTestEnvironment() + 43 9 DumpRenderTree 0x000e3031 main + 65 10 DumpRenderTree 0x000e0035 start + 53 Trace/BPT trap: 5
Nico Weber
Comment 11 2012-10-16 22:28:40 PDT
Comment on attachment 168392 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=168392&action=review > Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:135 > + 'mac_bundle_resources': [ I'm not sure if this works; mac_bundle_resources aren't always pushed down to things depending on it. See http://crbug.com/137588 for example. Have you tested if DRT still works after a clobber build (killing just DRT.app and rebuilding it should be enough) with this?
jochen
Comment 12 2012-10-16 23:22:17 PDT
Comment on attachment 168392 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=168392&action=review >> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:135 >> + 'mac_bundle_resources': [ > > I'm not sure if this works; mac_bundle_resources aren't always pushed down to things depending on it. See http://crbug.com/137588 for example. Have you tested if DRT still works after a clobber build (killing just DRT.app and rebuilding it should be enough) with this? I'll try tomorrow. From the bug, I guess moving this into an all_dependent_settings section will fix it.
Elliott Sprehn
Comment 13 2012-10-16 23:26:48 PDT
(In reply to comment #11) > (From update of attachment 168392 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=168392&action=review > > > Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:135 > > + 'mac_bundle_resources': [ > > I'm not sure if this works; mac_bundle_resources aren't always pushed down to things depending on it. See http://crbug.com/137588 for example. Have you tested if DRT still works after a clobber build (killing just DRT.app and rebuilding it should be enough) with this? Indeed, rolling back change and Chromium change 161832 fixes the broken DRT packaging.
Note You need to log in before you can comment on or make changes to this bug.