OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
867 stars 152 forks source link

Upgrading MacOS to Big Sur causes application to stop working #131

Closed bcrowell closed 3 years ago

bcrowell commented 4 years ago

Two of my students upgraded their macs to MacOS Big Sur, and they report that afterward, the OpenHantek6022 application no longer worked. When they double-click on the icon, it doesn't open a GUI window on the screen, and the application doesn't respond. The CPU seems to max out (laptop gets hot, fan comes on), and they have to force-quit the application.

Ho-Ro commented 4 years ago

I cannot support because I develop and test only for Linux. I do not have any Mac nor Win computers to check. This cannot be solved unless a volunteer steps in - sorry.

bcrowell commented 4 years ago

Yeah, I understand, thanks. Hopefully a volunteer will step up.

By the way, my school is near the end of our first semester of using this software for physics labs that students do at home during the covid epidemic. The software has worked pretty much flawlessly for our purposes. Thanks for all your work on it!

wrutter-de commented 4 years ago

I got the same problem, in between i was able to build a version on my Mac with Big Sur (find the app attached). I was able to build it with the official build instructions found here: https://github.com/OpenHantek/openhantek/blob/master/docs/build.md#apple

OpenHantek.zip

Ho-Ro commented 4 years ago

Ok, looks like a build on Big Sur will also run on Big Sur. It would be interesting to know if your Big Sur build also works for older versions - positive/negative feedback from MacOS users would be very welcome. Unfortunately my CI tool travis doesn't provide a Big Sur build environment at the moment.

Ho-Ro commented 4 years ago

ok, Catalina doesn't build the *.dmg - next try ...

Ho-Ro commented 4 years ago

same for Mojave ...

wrutter-de commented 4 years ago

Tried tu run the Big Sur build on High Sierra, i got a message that the application needs OSX 11.0. Would be to easy if one fits all ;-)

Ho-Ro commented 4 years ago

Honestly speaking I expected this kind of missing backward compatibility.

But nevertheless I struggle also with *.dmg build issues for Catalina as mentioned above: macdeployqt and macdeployqtfix.py run with success, but create-dmg returns with error:

if test -d openhantek/OpenHantek.app; then 
    export PATH=${CMAKE_PREFIX_PATH}/bin:${PATH} ; 
    cd openhantek ; 
    macdeployqt OpenHantek.app -always-overwrite -verbose=1 ; 
    python ../../utils/macdeployqtfix/macdeployqtfix.py 
        OpenHantek.app/Contents/MacOS/OpenHantek ${CMAKE_PREFIX_PATH} ; 
    create-dmg --volname OpenHantek --volicon ../../openhantek/res/images/openhantek.icns 
        --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "OpenHantek.app" 200 190
        --hide-extension "OpenHantek.app" --app-drop-link 600 185 --eula ../../LICENSE 
        OpenHantek.dmg OpenHantek.app ; 
    cd .. ; 
else
    ls -l packages ;
    true;
fi
INFO | fixing executable 'OpenHantek.app/Contents/MacOS/OpenHantek'
...
INFO | macdeployqtfix terminated with success
Creating disk image...
created: /Users/travis/build/OpenHantek/OpenHantek6022/build/openhantek/rw.OpenHantek.dmg
Mounting disk image...
Mount directory: /Volumes/OpenHantek
Device name:     /dev/disk2
Making link to Applications dir...
/Volumes/OpenHantek
Copying volume icon file '../../openhantek/res/images/openhantek.icns'...
Running AppleScript to make Finder stuff pretty: /usr/bin/osascript             
"/var/folders/z3/_825pg0s3jvf0hb_q8kzmg5h0000gn/T/createdmg.tmp.XXXXXXXXXX.fmWG13ZA" "OpenHantek"
/var/folders/z3/_825pg0s3jvf0hb_q8kzmg5h0000gn/T/createdmg.tmp.XXXXXXXXXX.fmWG13ZA:396:408: execution error: 
Finder got an error: AppleEvent timed out. (-1712)
Failed running AppleScript
"disk2" ejected.

It has been a long way to MacOS bundles, see #25. Now I have to double check with the original xcode9.4 setup and where the regression starts - but unfortunately my travis builds have been disabled temporarily due to missing build credits, obviously I've triggered too many builds yesterday.

Ho-Ro commented 3 years ago

Now I've switched completely to appveyor as CI tool that provides Linux, Win and Mac builds. A new Catalina build is now available in unstable. @wrutter-de: Could you check if it works with Big Sur - Thx.

wrutter-de commented 3 years ago

Good Job! The new Build works under Big Sur.