ea4k / klog

KLog is a multiplatform free hamradio logger. It runs natively on Linux, macOS and Windows.
https://www.klog.xyz
GNU General Public License v3.0
75 stars 25 forks source link

KLog v2.3.2 Crashes on Startup on High Sierra #638

Open RobK88 opened 10 months ago

RobK88 commented 10 months ago

KLog v 2.3.2 crashes on startup on High Sierra.

KLog v2.3 runs fine on High Sierra.

See attached crash log.

KLog Crash Log.txt

P.S. It looks like KLog now only runs on macOS 11 and later. If so, please make the system requirements clear on your website.

ikbenkous commented 10 months ago

@RobK88 klog seems to crash inside of rig_init() from hamlib. Can you try:

  1. Starting klog with your rig turned off and plugged in.
  2. Starting klog with your rig turned on and plugged in.
  3. Starting klog with your rig disconnected from your computer.
  4. moving your config file in your home directory temporarily to a different place and try starting klog again? This might be a problem with your configuration, hamlib and your rig.

Make sure you don't have loss of data by accidentally deleting your klog config directory. This directory contains your logfiles!

What rig you got?

RobK88 commented 10 months ago

I don't have a rig attached at this time.

But if you look at the attached crash log, it looks like hamlib provided in the KLog application was built for Big Sur. I will install hamlib built for High Sierra via MacPorts and replace the hamlib library in the Application with the MacPorts version to see if that fixes the problem.

KLog v 2.3 still runs on High Sierra.

RobK88 commented 10 months ago

I do not have a rig connected. Hamlib is NOT activated in the KLog preferences.

I tried temporarily moving ~/.klog/klogrc to another location and ran KLog. NO luck. Application still crashed.

I also tried replacing libhamlib.4.dylib inside the application with libhamlib.4.dylib built by MacPorts for this Mac running High Sierra. No success. Application still crashes at startup.

If you look at the crash log, you will see:

Dyld Error Message:
  Symbol not found: ____chkstk_darwin
  Referenced from: /Applications/KLog.app/Contents/MacOS/../Frameworks/libhamlib.4.dylib (which was built for Mac OS X 11.0)
  Expected in: /usr/lib/libSystem.B.dylib

It really looks like the binary is looking for a symbol that is missing on High Sierra. I suspect KLog was built on a newer Mac where this symbol is present.

KLog v2.3 runs fine on High Sierra. KLog v2.3.1 and KLog v2.3.2 do not. They both crash on startup.

I have reverted back to KLog v2.3

RobK88 commented 10 months ago

I also tried to run KLog v2.3.2 on my Mac running Mojave. It works fine

I just cannot get KLog v2.3.2 to run on my Mac running High Sierra.

ea4k commented 9 months ago

I can't build in Sierra but I can help you to build a KLog package from sources in your computer for that version. You just need to install Qt and then run a script that will build the KLog d.g package.