[chromium-dev] Re: [Mac] Chromium terminates when running from Terminal

2009-10-19 Thread Mark Mentovai

Mikhail Naganov wrote:
 Also answering on Mark's question.

 $ pwd
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS
[...]
 $ ./Chromium
  this way, it fails 

OK, I know what's happening here.  Having a dot after MacOS in the
path to the executable is what breaks things.

I usually sit in the Release directory and start Chromium as:

$ Chromium.app/Contents/MacOS/Chromium

 Here is the value of 'path' when running from Terminal:
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS/./Chromium

There's the dot I'm talking about.

 When I run it under gdb, the path is printed two times:
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/Versions/4.0.223.1/Chromium
Helper.app/Contents/MacOS/Chromium Helper

Right, once from the browser process (the one we care about) and once
from the first renderer (which never gets a chance to start up when
you have the dot in an unexpected spot).

If you had tried a debug build, you would have seen output like this:

[mmdd/hhmmss:FATAL:/chrome/trunk/src/base/mac_util.mm(80)] Check
failed: bundle. failed to load the bundle:
.../Debug/Chromium.app/Contents/MacOS/Versions/4.0.223.2/Chromium
Framework.framework

The framework should be at Chromium.app/Contents/Versions/4.0.223.2.
The code that builds the path to the framework is not expecting a dot
after MacOS in the pathname, it's just stripping a fixed number of
components (2) off of the executable's pathname, expecting it to be
.../Contents/MacOS/Chromium.

You can use don't put dots there as a workaround in the mean time,
and I'll cook up something to fix this in the code.

Mark

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [Mac] Chromium terminates when running from Terminal

2009-10-19 Thread Mikhail Naganov

Thanks, Mark!

Yes, running Chromium from another directory solves the problem.

On Mon, Oct 19, 2009 at 07:43, Mark Mentovai m...@chromium.org wrote:
 Mikhail Naganov wrote:
 Also answering on Mark's question.

 $ pwd
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS
 [...]
 $ ./Chromium
  this way, it fails 

 OK, I know what's happening here.  Having a dot after MacOS in the
 path to the executable is what breaks things.

 I usually sit in the Release directory and start Chromium as:

 $ Chromium.app/Contents/MacOS/Chromium

 Here is the value of 'path' when running from Terminal:
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS/./Chromium

 There's the dot I'm talking about.

 When I run it under gdb, the path is printed two times:
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium
 /Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/Versions/4.0.223.1/Chromium
 Helper.app/Contents/MacOS/Chromium Helper

 Right, once from the browser process (the one we care about) and once
 from the first renderer (which never gets a chance to start up when
 you have the dot in an unexpected spot).

 If you had tried a debug build, you would have seen output like this:

 [mmdd/hhmmss:FATAL:/chrome/trunk/src/base/mac_util.mm(80)] Check
 failed: bundle. failed to load the bundle:
 .../Debug/Chromium.app/Contents/MacOS/Versions/4.0.223.2/Chromium
 Framework.framework

 The framework should be at Chromium.app/Contents/Versions/4.0.223.2.
 The code that builds the path to the framework is not expecting a dot
 after MacOS in the pathname, it's just stripping a fixed number of
 components (2) off of the executable's pathname, expecting it to be
 .../Contents/MacOS/Chromium.

 You can use don't put dots there as a workaround in the mean time,
 and I'll cook up something to fix this in the code.

 Mark


--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [Mac] Chromium terminates when running from Terminal

2009-10-19 Thread Evan Martin

On Mon, Oct 19, 2009 at 7:43 AM, Mark Mentovai m...@chromium.org wrote:
 If you had tried a debug build, you would have seen output like this:

 [mmdd/hhmmss:FATAL:/chrome/trunk/src/base/mac_util.mm(80)] Check
 failed: bundle. failed to load the bundle:
 .../Debug/Chromium.app/Contents/MacOS/Versions/4.0.223.2/Chromium
 Framework.framework

Should this be a CHECK instead?

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [Mac] Chromium terminates when running from Terminal

2009-10-19 Thread Mark Mentovai

Evan Martin wrote:
 On Mon, Oct 19, 2009 at 7:43 AM, Mark Mentovai m...@chromium.org wrote:
 If you had tried a debug build, you would have seen output like this:

 [mmdd/hhmmss:FATAL:/chrome/trunk/src/base/mac_util.mm(80)] Check
 failed: bundle. failed to load the bundle:
 .../Debug/Chromium.app/Contents/MacOS/Versions/4.0.223.2/Chromium
 Framework.framework

 Should this be a CHECK instead?

Yup, I'll fix.

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [Mac] Chromium terminates when running from Terminal

2009-10-15 Thread Thomas Van Lenten
How exactly are you launching it?  ie-what are you typing into the terminal.
 it might be the executable path change last night.
TVL


On Thu, Oct 15, 2009 at 6:07 PM, Mikhail Naganov mnaga...@chromium.orgwrote:


 Hi all,

 Starting from today, I can't run Chromium from Terminal, unless I'm
 running it under gdb. I'm getting the following bunch of error
 messages (on a Release build):

 2009-10-16 01:58:30.040 Chromium[48250:10b] *** Assertion failure in
 -[BrowserWindowController initWithWindowNibPath:owner:],
 /SourceCache/AppKit/AppKit-949.54/AppKit.subproj/NSWindowController.m:107
 2009-10-16 01:58:30.042 Chromium[48250:10b] An uncaught exception was
 raised
 2009-10-16 01:58:30.043 Chromium[48250:10b] Invalid parameter not
 satisfying: windowNibPath
 2009-10-16 01:58:30.043 Chromium[48250:10b] *** Terminating app due to
 uncaught exception 'NSInternalInconsistencyException', reason:
 'Invalid parameter not satisfying: windowNibPath'
 2009-10-16 01:58:30.044 Chromium[48250:10b] Stack: (
   2417545195,
   2485780027,
   2417544651,
   2463723204,
   2433132475,
   36896176,
   36889665,
   36840062,
   36542144,
   36543780,
   36611717,
   36618850,
   36622599,
   36646971,
   35731773
 )
 Trace/BPT trap

 If I launch Chromium from Finder, XCode, or under gdb in Terminal, it
 works fine. I've done a clean rebuild of Chromium, and I'm seeing this
 behavior on two machines. Does anyone have a similar problem, or maybe
 have a clue what goes wrong?

 


--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [Mac] Chromium terminates when running from Terminal

2009-10-15 Thread Mark Mentovai

How are you launching it from the Terminal?  Can you tell me the exact
invocation?  $PATH and working directory too?

Can you log the value of path after PathService::Get(base::FILE_EXE,
path) in chrome::GetVersionedDirectory(),
chrome/common/chrome_paths_mac.mm:72?

Mark

Mikhail Naganov wrote:
 Hi all,

 Starting from today, I can't run Chromium from Terminal, unless I'm
 running it under gdb. I'm getting the following bunch of error
 messages (on a Release build):

 2009-10-16 01:58:30.040 Chromium[48250:10b] *** Assertion failure in
 -[BrowserWindowController initWithWindowNibPath:owner:],
 /SourceCache/AppKit/AppKit-949.54/AppKit.subproj/NSWindowController.m:107
 2009-10-16 01:58:30.042 Chromium[48250:10b] An uncaught exception was raised
 2009-10-16 01:58:30.043 Chromium[48250:10b] Invalid parameter not
 satisfying: windowNibPath
 2009-10-16 01:58:30.043 Chromium[48250:10b] *** Terminating app due to
 uncaught exception 'NSInternalInconsistencyException', reason:
 'Invalid parameter not satisfying: windowNibPath'
 2009-10-16 01:58:30.044 Chromium[48250:10b] Stack: (
   2417545195,
   2485780027,
   2417544651,
   2463723204,
   2433132475,
   36896176,
   36889665,
   36840062,
   36542144,
   36543780,
   36611717,
   36618850,
   36622599,
   36646971,
   35731773
 )
 Trace/BPT trap

 If I launch Chromium from Finder, XCode, or under gdb in Terminal, it
 works fine. I've done a clean rebuild of Chromium, and I'm seeing this
 behavior on two machines. Does anyone have a similar problem, or maybe
 have a clue what goes wrong?

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [Mac] Chromium terminates when running from Terminal

2009-10-15 Thread Mikhail Naganov

Also answering on Mark's question.

$ pwd
/Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS
$ ls -l
total 40
-rwxr-xr-x  1 mnaganov  eng  16472 Oct 16 01:25 Chromium
$ echo $PATH
/opt/local/bin:/opt/local/sbin:/Users/mnaganov/depot_tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/bin/g4bin
$ ./Chromium
 this way, it fails 

$ gdb ./Chromium
(gdb) pwd
Working directory
/Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS.
(gdb) show paths
Executable and object file path:
/opt/local/bin:/opt/local/sbin:/Users/mnaganov/depot_tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/bin/g4bin:/sbin:/bin:/usr/sbin:/usr/bin
(gdb) r
Starting program:
/Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium
 this way, it runs just fine 

Here is the value of 'path' when running from Terminal:
/Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS/./Chromium

When I run it under gdb, the path is printed two times:
/Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium
/Users/mnaganov/chrome/src/xcodebuild/Release/Chromium.app/Contents/Versions/4.0.223.1/Chromium
Helper.app/Contents/MacOS/Chromium Helper

On Fri, Oct 16, 2009 at 02:10, Thomas Van Lenten thoma...@chromium.org wrote:
 How exactly are you launching it?  ie-what are you typing into the terminal.
  it might be the executable path change last night.
 TVL

 On Thu, Oct 15, 2009 at 6:07 PM, Mikhail Naganov mnaga...@chromium.org
 wrote:

 Hi all,

 Starting from today, I can't run Chromium from Terminal, unless I'm
 running it under gdb. I'm getting the following bunch of error
 messages (on a Release build):

 2009-10-16 01:58:30.040 Chromium[48250:10b] *** Assertion failure in
 -[BrowserWindowController initWithWindowNibPath:owner:],
 /SourceCache/AppKit/AppKit-949.54/AppKit.subproj/NSWindowController.m:107
 2009-10-16 01:58:30.042 Chromium[48250:10b] An uncaught exception was
 raised
 2009-10-16 01:58:30.043 Chromium[48250:10b] Invalid parameter not
 satisfying: windowNibPath
 2009-10-16 01:58:30.043 Chromium[48250:10b] *** Terminating app due to
 uncaught exception 'NSInternalInconsistencyException', reason:
 'Invalid parameter not satisfying: windowNibPath'
 2009-10-16 01:58:30.044 Chromium[48250:10b] Stack: (
   2417545195,
   2485780027,
   2417544651,
   2463723204,
   2433132475,
   36896176,
   36889665,
   36840062,
   36542144,
   36543780,
   36611717,
   36618850,
   36622599,
   36646971,
   35731773
 )
 Trace/BPT trap

 If I launch Chromium from Finder, XCode, or under gdb in Terminal, it
 works fine. I've done a clean rebuild of Chromium, and I'm seeing this
 behavior on two machines. Does anyone have a similar problem, or maybe
 have a clue what goes wrong?

 



--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---