Closed maa3x closed 5 years ago
Do you have additional fonts installed?
Yes, I do. I've disabled all User fonts and tried opening a file with Hex Fiend, it still crashes.
Does opening a blank document work?
Can you provide the output of defaults read com.ridiculousfish.HexFiend
?
This line seems highly suspicious! https://github.com/ridiculousfish/HexFiend/blob/d46555b1126f18c4c7695316560a77e767978887/framework/sources/HFRepresenterTextView.m#L1252
Opening a blank document works.
output of defaults read com.ridiculousfish.HexFiend
:
{
BytesPerColumn = 8;
BytesPerLine = 48;
ColorBytes = 1;
DefaultFontName = Monaco;
DefaultFontSize = 14;
DefaultStringEncoding = "-1879047936";
HideNullBytes = 0;
NSNavLastRootDirectory = "~/Documents/haooma";
NSNavPanelExpandedSizeForOpenMode = "{712, 448}";
"NSWindow Frame SUUpdateAlert" = "330 306 620 392 0 0 1280 800 ";
"RepresenterIsShown FileDataDocument asciiRepresenter" = 1;
"RepresenterIsShown FileDataDocument binaryTemplateRepresenter" = 0;
"RepresenterIsShown FileDataDocument dataInspectorRepresenter" = 1;
"RepresenterIsShown FileDataDocument hexRepresenter" = 1;
"RepresenterIsShown FileDataDocument lineCountingRepresenter" = 1;
"RepresenterIsShown FileDataDocument scrollRepresenter" = 1;
"RepresenterIsShown FileDataDocument statusBarRepresenter" = 1;
SUAutomaticallyUpdate = 0;
SUEnableAutomaticChecks = 0;
SUHasLaunchedBefore = 1;
SULastCheckTime = "1397-10-07 18:16:04 +0000";
SUUpdateRelaunchingMarker = 0;
WindowHeight = 800;
WindowOrigin = "{102, 0}";
}
I found the problem. It is text encoding.
It won't crash when text encoding is set to ascii
but does crash on some other encodings including UTF variants.
Now I can't even open Hex Fiend because it tries to open working files with broken encoding and keeps crashing.
I managed to open Hex Fiend with defaults
command: defaults write com.ridiculousfish.HexFiend DefaultStringEncoding 1
Yep, when Color Bytes is turned on and the encoding is UTF-16 (little or big), it crashes.
I disabled byte coloring for multi-byte encodings since it doesn't make sense there anyways. I'm not sure if it even makes sense to have the bytes colored in the "Plain Text" view, but I'll leave it for now.
Hi. I LOVE HexFiend! It's really fast and lightweight and it's a great hex editor. Unfortunately since I've upgraded my Mid-2014 MacBook Pro to macOS 10.14 (Mojave) it keeps crashing when opening a file (no matter it's text or binary, big or small). I've tried many versions from 2.8 to the latest 2.10 (1545859155). They will all crash when opening files.
Here is crash report: