Program fails to launch

USB BDM software. Bug report.
Post Reply
xanthefin
Junior Member
Posts: 6
Joined: Sun Sep 19, 2021 3:03 am

Program fails to launch

Post by xanthefin »

Due app crashes without error code.

In terminal:
open -a USBJTAGNT.app

Results:

LSOpenURLsWithRole() failed for the application -- USBJTAGNT.app with error -10810.

On MacOS Catalina or High Sierra too i suppose as first tried there.


Second try:

In terminal:
open -a USBJTAGNT.app/MacOS/USBJTAGNT

FSPathMakeRef failed with error -43.

This could be due if in code has this.options.executable = getExecutable( 'MyRealAppName' ); being wrong or so after unzipping the program and FSPathMakeRef is being wrong.

In terminal:
getconf LONG_BIT
64

So this is 64bit machine.


WinXP is out of questions as it fails too but i would love run on it as its my main programming machine.
xanthefin
Junior Member
Posts: 6
Joined: Sun Sep 19, 2021 3:03 am

Re: Program fails to launch

Post by xanthefin »

I think i spotted something:

Load command 24
cmd LC_RPATH
cmdsize 48
path /Users/lishao/Qt/5.9.9/clang_64/lib (offset 12)
xanthefin
Junior Member
Posts: 6
Joined: Sun Sep 19, 2021 3:03 am

Re: Program fails to launch

Post by xanthefin »

LC_LOAD_DYLIB is wrong for this too:

/usr/local/opt/libusb/lib/libusb-1.0.0.dylib
xanthefin
Junior Member
Posts: 6
Joined: Sun Sep 19, 2021 3:03 am

Re: Program fails to launch

Post by xanthefin »

To fix earlier and else need run:

dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib


install_name_tool -change /usr/local/opt/libusb/lib/libusb-1.0.0.dylib @executable_path/../Frameworks/libusb-1.0.0.dylib /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT



dyld: Library not loaded: @rpath/QtWidgets.framework/Versions/5/QtWidgets


install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT



dyld: Library not loaded: @rpath/QtGui.framework/Versions/5/QtGui


install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT



dyld: Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore

install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT



dyld: Library not loaded: @rpath/QtNetwork.framework/Versions/5/QtNetwork

install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /Applications/USBJTAGNT.app/Contents/MacOS/USBJTAGNT



Next problem it wont find cocoa plugin...
xanthefin
Junior Member
Posts: 6
Joined: Sun Sep 19, 2021 3:03 am

Re: Program fails to launch

Post by xanthefin »

Giving up for now as i have no time fix more as was due time today get thing dumped so need now return what i was trying to fix without how i really wanted and continue for next things. I understand these happens in development though.

Library not loaded: @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport
Referenced from: /Applications/USBJTAGNT.app/Contents/PlugIns/platforms/libqcocoa.dylib

So it find cocoa plugin but inside plugin has broken things i guess...



Hoping there will be WinXP version fix available for the next time and will prep before i need next time the device ready.


P.S. On software page you show example command:
tar -xvf USBJTAGNT-xxx-MAC.tar

But you can use just * instead of show users to replace xxx:

tar -xvf USBJTAGNT-*-MAC.tar


But its outdated anyway as its today just USBJTAGNT-Mac-x64.tar
usbbdm
Junior Member
Posts: 8772
Joined: Mon Jul 18, 2005 9:33 pm

Re: Program fails to launch

Post by usbbdm »

https://youtu.be/xe9BPC7w-R8
See if this work for you. On terminal goes to the folder under MacOs and execute ./USBJTAGNT
usbbdm
Junior Member
Posts: 8772
Joined: Mon Jul 18, 2005 9:33 pm

Re: Program fails to launch

Post by usbbdm »

I never tried command open -a
xanthefin
Junior Member
Posts: 6
Joined: Sun Sep 19, 2021 3:03 am

Re: Program fails to launch

Post by xanthefin »

usbbdm wrote: Sun Sep 19, 2021 7:52 am https://youtu.be/xe9BPC7w-R8
See if this work for you. On terminal goes to the folder under MacOs and execute ./USBJTAGNT
All above was done in that way to call directly the executable as you suggest too.
(I mean yes i gave a go for that too but later i used otool -l and such to debug what fails in program)

I am hinting to check on clean macOS the working with latest version at least as there seems be links inside latest build which refers file locations which only on you works with development environment and the app doesn't successfully call the libraries what comes with the program which i example listed above some of them how to fix them and crashes finally to that cocoa library and its depencies calling...

I tried on both fresh Catalina and High Sierra (not so clean but usable).

Or if better why so fails i am listening surely.
usbbdm
Junior Member
Posts: 8772
Joined: Mon Jul 18, 2005 9:33 pm

Re: Program fails to launch

Post by usbbdm »

I am out and can back to you latter today or tomorrow.
usbbdm
Junior Member
Posts: 8772
Joined: Mon Jul 18, 2005 9:33 pm

Re: Program fails to launch

Post by usbbdm »

Big Sur is now fully supported.
Post Reply