rdmenezes / gource

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

gource crashes with segmentation fault: 11 on Mavricks when opened from second monitor #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install gource via "Homebrew" (Mac Mavericks)
2. start gource
3. gource crashes with Segmentation fault: 11

What is the expected output? What do you see instead?
Expected that something happens :D

What version of the product are you using? On what operating system?
gource 0.40 (0.39 didn't work either), Mac OSX 10.9

Please provide any additional information below.
don't got any more informations, but I would be glad to help you if I can

Original issue reported on code.google.com by alexande...@googlemail.com on 11 Nov 2013 at 2:48

GoogleCodeExporter commented 9 years ago
Hi.

Sorry this isn't really enough to go on. My guess would be your copies of the 
boost system or boost filesystem library need to be rebuilt as C++ libraries 
can be incompatible if built with a different version of the compiler.

Original comment by acaudw...@gmail.com on 21 Nov 2013 at 2:41

GoogleCodeExporter commented 9 years ago
Nopw it's not status invalid. Same issue here. First install worked. Second run 
seg fault 11

Original comment by dimitrio...@clansman.nl on 25 Nov 2013 at 3:12

GoogleCodeExporter commented 9 years ago
Got the same problem with the gource an mavericks.
I've pasted the problem report here: http://pastebin.com/tY9XqNHG

Might be helpful for debugging.

Original comment by mario.ra...@gmail.com on 27 Nov 2013 at 1:22

GoogleCodeExporter commented 9 years ago
Same here, after mavericks upgrade gets broken, I tried to reinstall but same 
problem.

Original comment by camilo.n...@axiacore.com on 27 Nov 2013 at 7:57

GoogleCodeExporter commented 9 years ago
Hi,

Do you also happen to have multiple monitors (re issue 208)?

From that log it looks like it's coming from SDL, so maybe try doing a 'brew 
update', then reinstalling sdl (and possibly gource afterwards) and see if that 
fixes it?

Also, if you like you could edit your gource.rb to use sdl2, and sdl2_image 
instead of sdl and sdl_image, and install gource from brew with the --HEAD 
option (which will get the master branch from github), and it will use SDL2 
instead of SDL, and likely avoid these issues.

Let me know how you get on.

Cheers

Andrew

Original comment by acaudw...@gmail.com on 27 Nov 2013 at 9:35

GoogleCodeExporter commented 9 years ago
Andrew thanks,

Yes I do have multiple monitors.

I have reinstalled SDL and it uses the version 1.2.15, and then reinstalled 
gource 0.40 and I get the same exact error.

Then I tried to use --HEAD when installing gource and still get the same error.

I'm using brew and I couldn't find the gource.rb file, where I can change it?

Original comment by camilo.n...@axiacore.com on 29 Nov 2013 at 4:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You have a file on your computer, probably located at 
/usr/local/Library/Formula/gource.rb, that looks like:

https://github.com/mxcl/homebrew/blob/master/Library/Formula/gource.rb

I believe you just need to change these two lines:

  depends_on 'sdl'
  depends_on 'sdl_image'

To:

  depends_on 'sdl2'
  depends_on 'sdl2_image'

And then try reinstalling gource.

If you later want to undo your modifications go to that directory and type 'git 
checkout gource.rb'.

Original comment by acaudw...@gmail.com on 29 Nov 2013 at 8:44

GoogleCodeExporter commented 9 years ago
I did change the file, and when reinstaling I get this error: 
http://cl.ly/image/3l0J173z0d2N

Original comment by camilo.n...@axiacore.com on 29 Nov 2013 at 10:09

Attachments:

GoogleCodeExporter commented 9 years ago
If you change gource.rb back to how it was, and install it again, do you still 
get this error? Just to confirm it's not unrelated.

Original comment by acaudw...@gmail.com on 29 Nov 2013 at 10:35

GoogleCodeExporter commented 9 years ago
Also make sure you have the latest version of Xcode.

Original comment by acaudw...@gmail.com on 29 Nov 2013 at 10:41

GoogleCodeExporter commented 9 years ago
Issue 208 has been merged into this issue.

Original comment by acaudw...@gmail.com on 1 Dec 2013 at 8:55

GoogleCodeExporter commented 9 years ago
I upgraded my Macbook Pro to Mavericks today to try and replicate this, but 
strangely had no issues with a second monitor plugged in (could drag the gource 
window to the second window, also worked in clone mode).

Some things I did that might be relevant:
- installed a new version of Xcode from the App Store.
- did a 'brew update'
- installed the Xcode command line tools when given a warning message by 
homebrew.
- reinstalled gource (using the normal unmodified gource.rb formula). I had to 
rebuild most of the gource dependencies at this point, including sdl, as 
homebrew told me they had been built with a different compiler (llvm instead of 
clang) so weren't compatible (think this might be a new feature of homebrew?).

Original comment by acaudw...@gmail.com on 1 Dec 2013 at 9:14

GoogleCodeExporter commented 9 years ago
acaudw, did you run gource in the main monitor, or in a secondary monitor? I 
only get a segmentation fault when I try to run it in a secondary monitor. It 
works when I run it in the main monitor.

Original comment by perceive...@gmail.com on 1 Dec 2013 at 12:56

GoogleCodeExporter commented 9 years ago
perceivence, it does indeed crash with Sig 11 when opened from a console window 
that is on the second monitor. Weird.

I have fixed the build issue reported in #9 when trying to use SDL2. This was 
due to needing to link the Core Foundation libraries for some Apple specific 
filename encoding conversion code. Using SDL2 does seem to fix the issue, so 
the work around in #8 now works.

Not opening Gource from your second monitor is also a good work around.

Original comment by acaudw...@gmail.com on 2 Dec 2013 at 8:42

GoogleCodeExporter commented 9 years ago
I can confirm I have the latest Xcode, and run the brew update as well.

Now It works installing gource using: brew install gource --HEAD

Awesome, thanks for the help, if someone else can confirm is working seems you 
can close this issue.

Thank you so much.

Original comment by camilo.n...@axiacore.com on 2 Dec 2013 at 4:26

GoogleCodeExporter commented 9 years ago
On my notebook it also works on the Laptop-Monitor, but not on a second 
attached monitor.. so I can confirm it works ;)

Original comment by alexande...@googlemail.com on 4 Dec 2013 at 5:21

GoogleCodeExporter commented 9 years ago
It works for me on both monitors, provided I launch it on the primary monitor. 
If I launch on the secondary monitor, I get a segfault.

Original comment by igeek1@gmail.com on 21 Jan 2014 at 2:08

GoogleCodeExporter commented 9 years ago
I confirm it segfault on second monitor and run on first

Original comment by speakus.net on 21 Jan 2014 at 12:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I confirm that it continues to reproduce and it is solved just moving to the 
primary monitor.

Original comment by lnunix on 25 Mar 2014 at 6:53

GoogleCodeExporter commented 9 years ago
Gource 0.41 is now released so should fix this providing it is built with SDL 
2.0 libraries.

Original comment by acaudw...@gmail.com on 14 Apr 2014 at 6:37