Open FastThenLeft opened 3 years ago
Sorry for the delayed response. Thanks for looking at some of the bugs.
When I run without the icons it starts up and defaults to the labels. But I agree that the two files were not checked into the master branch. I just pushed them to the repository.
All of the icons are in a directory called images. At run time they need to be in the same directory as the jar or main class.
Thanks Chris! Java isn't a language I know, but it's close enough to C++that I should be able to pick it up quickly.
Thanks! -David, N9KT
On Fri, Oct 1, 2021, 5:22 PM Chris Thompson @.***> wrote:
Sorry for the delayed response. Thanks for looking at some of the bugs.
When I run without the icons it starts up and defaults to the labels. But I agree that the two files were not checked into the master branch. I just pushed them to the repository.
All of the icons are in a directory called images. At run time they need to be in the same directory as the jar or main class.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ac2cz/KlaTrack/issues/16#issuecomment-932583945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7K5ROV625EYA252HRWVGLUEYRCHANCNFSM5FAKNZOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Ok, sounds good. I am using Eclipse as the IDE. That may make things easier. If you need instructions or help to compile I am happy to supply. The key is to make sure that the dependencies in the lib directory are included in the class path when you compile and run.
I too have this same error (and a bunch of friends that have installed the program after I've shown it to them). It happens when the Keps are older than 24 hours. I can trigger it reliably if I "touch" the nasabare.txt file and make it 25 hours old, and then run the program.
In my testing, it also seems like if the keps are older than a week, then it works.
I've started to debug it. Here's the output in case it's evident to you. The error is triggered by line 188 of SatManager.java. The error creates a zero-byte nasabare.txt file and therefore the program displays no satellites.
$ java -jar KlaTrack.jar
Downloading new keps ..
.. keps are current
... open output file ../home/david/KLATrack/nasabare.txt
... getting file ..
SERIOUS ERROR - Uncaught and thrown from GUI
java.lang.NullPointerException
at java.base/sun.nio.ch.FileChannelImpl.transferFrom(FileChannelImpl.java:766)
at com.g0kla.track.SatManager.fetchTLEFile(SatManager.java:188)
at com.g0kla.track.SatManager.loadTLEFile(SatManager.java:125)
at com.g0kla.track.SatManager.
I thought I might work on some of the bugs/enhancements and when I went to build it, I found that there are two missing files in the repository: sun_icon2.png outline_icon2.png
That also made me worry that the repository might not have the latest files. I didn't want to start debugging old versions.
Could you please check that everything is up-to-date?