Infinite loop in NSOpenPanel() if showNonLocalizedStrings is on

Originator:IngmarStein
Number:rdar://18846258 Date Originated:01-Nov-2014
Status:Open Resolved:
Product:OS X SDK Product Version:10.10.3
Classification: Reproducible:always
 
Summary:
The line
let panel = NSOpenPanel()
causes an infinite loop and prints the following messages:

2014-11-01 16:08:36.385 test[27803:695005] Localizable string "TG_DEFAULT_4" not found in strings table "Localizable" of bundle CFBundle 0x100712550 </System/Library/PrivateFrameworks/FinderKit.framework> (framework, loaded).
2014-11-01 16:08:36.385 test[27803:695005] Localizable string "TG_DEFAULT_5" not found in strings table "Localizable" of bundle CFBundle 0x100712550 </System/Library/PrivateFrameworks/FinderKit.framework> (framework, loaded).
2014-11-01 16:08:36.385 test[27803:695005] Localizable string "TG_DEFAULT_6" not found in strings table "Localizable" of bundle CFBundle 0x100712550 </System/Library/PrivateFrameworks/FinderKit.framework> (framework, loaded).
2014-11-01 16:08:36.385 test[27803:695005] Localizable string "TG_DEFAULT_7" not found in strings table "Localizable" of bundle CFBundle 0x100712550 </System/Library/PrivateFrameworks/FinderKit.framework> (framework, loaded).
2014-11-01 16:08:36.385 test[27803:695005] Localizable string "TG_DEFAULT_8" not found in strings table "Localizable" of bundle CFBundle 0x100712550 </System/Library/PrivateFrameworks/FinderKit.framework> (framework, loaded).
[…]

Steps to Reproduce:
Run the attached sample project.

Expected Results:
I expect the app to continue execution.

Actual Results:
The app hangs.

Version:
Xcode Version 6.1 (6A1052c)
OS X 10.10 (14A389)

Notes:


Configuration:
-

Comments

The bug is still present in OS X 10.10.4 (14E7f), Xcode 6.3.1 and Xcode 6.4 (6E7)

By IngmarStein at April 27, 2015, 10:33 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!