Crash on Mac OSX Yosemite when opening the Font Chooser

Support for our DiffMerge utility.

Moderator: SourceGear


Posts: 2
Joined: Tue Nov 11, 2014 7:39 am
PostPosted: Wed Nov 12, 2014 4:03 am
Dear DiffMerge Team

I recently switched to Mac OSX Yosemite and noticed that I cannot change the fonts (e.g. Menu > Preferences > File Window > Window Font > Choose...) the application crashes. I've attached the crash log.
The behavior was observed with DiffMerge "4.2.0 (697:52f98c4fcb) [intel] stable" on OSX Yosemite "10.10 (14A389)".

Cheers,
// Bruno

PS: I've got an older machine lying around somewhere that runs OSX Lion (10.7) and there the font selector works, so there's probably been some change in the api.
Attachments
DiffMerge_2014-11-11-145118.crash.zip
(16.76 KiB) Downloaded 280 times

Posts: 8451
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
PostPosted: Fri Nov 14, 2014 10:51 am
Does it behave differently if you are logging in with a different user account?

I don't think testing has happened yet with Yosemite. I'll get this logged.

V: G5250
Beth Kieler
SourceGear Technical Support

Posts: 1
Joined: Tue Nov 18, 2014 3:41 pm
PostPosted: Tue Nov 18, 2014 3:44 pm
I'm having the same issue on Yosemite. I was hoping there was a work around so that I could increase the size of the font to something usable.

Posts: 2
Joined: Tue Nov 11, 2014 7:39 am
PostPosted: Fri Nov 28, 2014 6:37 am
It does happen when logged in with a different user account.
Also, I've tried running DiffMerge in Low Resolution mode to no avail.

My current solution as a workaround is to use a copied prefs file from another machine.

Is there any documentation available on the contents of the prefs file:
~/Library/Preferences/SourceGear DiffMerge Preferences

Posts: 3
Joined: Thu Dec 04, 2014 10:58 am
PostPosted: Thu Dec 04, 2014 11:00 am
I'm having the same issue on Yosemite. Any feedback from the devs would be appreciated; for now, I'll just stick to the FileMerge that comes packaged with Xcode.

Posts: 1
Joined: Sat Jan 17, 2015 11:55 am
PostPosted: Sun Jan 18, 2015 7:37 am
I was also unable to select fonts under Yosemite. After I copied the preferences file from an older installation on Mavericks, DiffMerge no longer crashes when trying to open the font chooser, but it brings up the debug alert which can be seen in the attached file. Hope this helps pinpoint the root cause. Looking forward to the new version that will fix this.
Attachments
Screen Shot 2015-01-18 at 15.28.06.png
DiffMerge crash under Yosemite
Screen Shot 2015-01-18 at 15.28.06.png (60.77 KiB) Viewed 9394 times

Posts: 2
Joined: Fri Feb 06, 2015 10:40 am
PostPosted: Fri Feb 06, 2015 10:48 am
I'm also unable to change the DiffMerge 4.2 font size on Mac OS X 10.10.2.

SourceGear DiffMerge : Version 4.2.0 (697:52f98c4fcb) [intel] stable : WXMAC {3.0.0}
---
Process: DiffMerge [14813]
Path: /Applications/DiffMerge.app/Contents/MacOS/DiffMerge
Identifier: com.sourcegear.DiffMerge
Version: 4.2.0 (4.2.0.697)
Code Type: X86-64 (Native)
Parent Process: bash [13796]
Responsible: Terminal [3481]
User ID: 501

Date/Time: 2015-02-06 08:31:51.436 -0800
OS Version: Mac OS X 10.10.2 (14C109)
Report Version: 11
...
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018

VM Regions Near 0x18:
-->
__TEXT 0000000100000000-0000000100a6e000 [ 10.4M] r-x/rwx SM=COW /Applications/DiffMerge.app/Contents/MacOS/DiffMerge

Application Specific Information:
objc_msgSend() selector name: raise
Performing @selector(controlAction:) from sender wxNSButton 0x1019aae90

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8efb90dd objc_msgSend + 29
1 DiffMerge 0x00000001003bd339 wxToolBarTool::~wxToolBarTool() + 27113
2 com.apple.AppKit 0x00007fff9403ea18 -[NSWindow _reallySendEvent:] + 12721
3 com.apple.AppKit 0x00007fff93ac516e -[NSWindow sendEvent:] + 446
4 DiffMerge 0x00000001003a4f7c wxMessageDialogBase::GetDefaultHelpLabel() const + 8124
5 com.apple.AppKit 0x00007fff93a77451 -[NSApplication sendEvent:] + 4183
6 DiffMerge 0x00000001003021ea wxURI::~wxURI() + 874
7 com.apple.AppKit 0x00007fff93c14fcf -[NSApplication _realDoModalLoop:peek:] + 770
8 com.apple.AppKit 0x00007fff93c13516 -[NSApplication runModalForWindow:] + 119
9 DiffMerge 0x0000000100396abe wxDirDialogBase::~wxDirDialogBase() + 4398
10 DiffMerge 0x00000001002c712f wxMimeTypesManagerImpl::UtiMap::operator[](wxString const&) + 5711
11 DiffMerge 0x000000010020d8f6 wxBaseArrayChar::Item(unsigned long) const + 12262
12 DiffMerge 0x0000000100305d55 wxBrushBase::~wxBrushBase() + 1093
13 DiffMerge 0x000000010010c385 wxEventFunctorMethod<wxEventTypeTag<wxUpdateUIEvent>, wxEvtHandler, wxEvent, wxEvtHandler>::wxEventFunctorMethod(void (wxEvtHandler::*)(wxEvent&), wxEvtHandler*) + 13401
...

Posts: 2
Joined: Sat Feb 07, 2015 10:26 am
PostPosted: Sat Feb 07, 2015 10:31 am
Same problem here.

@Beth: What is the prognosis for getting this resolved in the near future, given that it was reported several months ago?

Posts: 8451
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
PostPosted: Tue Feb 10, 2015 4:39 pm
I don't have a timeline for a fix on the font chooser yet, but I do have a way to change the fonts.

Close DiffMerge.

Open a Terminal window and enter this:
Code: Select all
open -e "$HOME/Library/Preferences/SourceGear DiffMerge Preferences"


This will open the file in TextEdit. The font setting is under the [File] section.
Beth Kieler
SourceGear Technical Support

Posts: 2
Joined: Fri Feb 06, 2015 10:40 am
PostPosted: Tue Feb 10, 2015 5:41 pm
I tried

Code: Select all
open -e "$HOME/Library/Preferences/SourceGear DiffMerge Preferences"


but there is no [File] section, but even if I added one, what is the syntax used to specify the font name and size?

I also have a working DiffMerge 4.2.0 on a Mavericks OS X installation, where I can change the font size using the Preferences dialog (without it crashing). I cannot find where these preferences are stored on Mavericks. The open command responds with a message saying that the file does not exist.

So, can someone upload the contents of a preferences file that shows the non-default font?

Can someone reply with the location of this file on Mavericks?

Posts: 8451
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
PostPosted: Wed Feb 11, 2015 11:14 am
Under [File] try adding your font in a format like Font=11:76:consolas or maybe Font=10:70:Copperplate.

The location of the file is the same for any Mac OS. I just checked Lion and the location of the preferences file was the same as on Yosemite.
Beth Kieler
SourceGear Technical Support

Posts: 2
Joined: Sat Feb 07, 2015 10:26 am
PostPosted: Thu Feb 12, 2015 6:41 am
@Beth: Thanks for the follow-up. Can you clarify what the "11:76" and "10:70" attributes in your examples specify? And do font faces with spaces in their names (e.g., Source Code Pro or Input Mono) need quoting or escaping to be used?

Posts: 8451
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
PostPosted: Tue Feb 17, 2015 2:06 pm
The first number is the font size. That and the name are all you need to change. The other number can be left as is.
Beth Kieler
SourceGear Technical Support

Posts: 1
Joined: Tue Mar 31, 2015 4:04 am
PostPosted: Tue Mar 31, 2015 4:06 am
i added the Font=11:76:consolas in the mentioned file but nothing changed. the font remains the default courier font size 10.

Any idea how to fix this?

Posts: 1
Joined: Wed Apr 01, 2015 4:39 pm
PostPosted: Wed Apr 01, 2015 4:44 pm
I just ran up against this same issue and essentially DiffMerge is unusable on my Macbook Pro as I can't make the font larger. I don't see any preferences folder located at ~/Library/Preferences/SourceGear. I do see a preferences file at ~/Library/Preferences/com.sourcegear.DiffMerge.plist but it seems to be in XML format so the changes to add a font size herein don't seem to match up with the format in this file. Any other suggestions? Thanks.
Next

Return to Support (DiffMerge)

Who is online

Users browsing this forum: No registered users and 3 guests

cron