-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OD Points and Layers #551
Comments
I have just done a trial on Ubuntu and it appears to be working normally. If your system is not doing that can you provide more information about the platform you are using and the version of OCPN and ODraw? |
***@***.*** sent you OpenCPN Draw
1 item, 68.9 MB in total ・ Expires on 14 May, 2024
Download link:
https://wetransfer.com/downloads/67184c9fbad08860ed006134e10f581220240507230144/7b2534b2b1ba962e7c314d77a3148b7b20240507230219/67ea4d?trk=TRN_TDL_01&utm_campaign=TRN_TDL_01&utm_medium=email&utm_source=sendgrid
Message:
report
1 item
IMG_3514.MOV - 68.9 MB
[Get more out of WeTransfer, get Pro](https://wetransfer.com/pricing?trk=TRN_TDL_01&utm_campaign=TRN_TDL_01&utm_medium=email&utm_source=sendgrid)
About WeTransfer: https://wetransfer.com/about
Help: https://wetransfer.zendesk.com/hc/en-us
Legal: https://wetransfer.com/legal/terms
To make sure our emails arrive, please add ***@***.*** to [your contacts](https://wetransfer.zendesk.com/hc/en-us/articles/204909429).
|
Hi Jon, thanks for your prompt reply. I’m running the latest Openplotter 3 / OpenCPN on a Rasbperry 4. All updates ok.
I have shared a videos via we transfer where you can see what’s going on.
When I import the OD points, in the second try they load, but when I close OpenCPN it doesn’t close normally. So next time I open It shows a warning it was not closed normally and the point are not there. This problem with closing opnCPN only occur after importing the points.
Regarding the Layers, thanks for the note, I will have into account I have to activate them each time.
Thanks Jon, Cheers
Fernando González del Solar
De: jongough ***@***.***
Enviado el: martes, 7 de mayo de 2024 18:44
Para: jongough/ocpn_draw_pi
CC: Fgonzalez22; Author
Asunto: Re: [jongough/ocpn_draw_pi] OD Points and Layers (Issue #551)
I have just done a trial on Ubuntu and it appears to be working normally.
If you export ODPoints to a file then delete the points you can re-import them from the OD Points tab and they show up as normal. If I do the same with Layers the OD Points are displayed, if they are temporary they will not exist in the next run of OCPN, if they are permanent they will be there but hidden. You have to select to see them. This is the default behaviour.
If your system is not doing that can you provide more information about the platform you are using and the version of OCPN and ODraw?
—
Reply to this email directly, view it on GitHub <#551 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMQKHFWO5RJKSRF6U4UPPR3ZBFDLTAVCNFSM6AAAAABHLXRW5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZGM3DAMZTHE> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AMQKHFXKFS3EBN7APH6AS63ZBFDLTA5CNFSM6AAAAABHLXRW5SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5EGZFG.gif> Message ID: ***@***.***>
|
I have just done a trial on a Pi3b+ using OCPN 5.8.4 and OD 1.8.46.0 on openplotter 2.* on Rasbian 11 bullseye and it appears to be working as expected. I can export ODPoints, import them as ODPoints, import them as a Layer, make the layer show after a restart (setting in ODraw properties/General tab). So at that point it is still working OK. Exactly what versions of OCPN and OD are you using on the Pi? |
My system info is:
Installed: OpenCPN 5.8.4+8089+1637c28fb~ubuntu20.04.1
OCPN Draw 1.8.17.0
Just checked OCPN Preferences, and I saw I have: “Remove OCPN_Draw settings and restore to default on restart” set to YES. I guess that’s the default because I have never seen this menu, but just checking.
De: jongough ***@***.***
Enviado el: martes, 7 de mayo de 2024 18:44
Para: jongough/ocpn_draw_pi
CC: Fgonzalez22; Author
Asunto: Re: [jongough/ocpn_draw_pi] OD Points and Layers (Issue #551)
I have just done a trial on Ubuntu and it appears to be working normally.
If you export ODPoints to a file then delete the points you can re-import them from the OD Points tab and they show up as normal. If I do the same with Layers the OD Points are displayed, if they are temporary they will not exist in the next run of OCPN, if they are permanent they will be there but hidden. You have to select to see them. This is the default behaviour.
If your system is not doing that can you provide more information about the platform you are using and the version of OCPN and ODraw?
—
Reply to this email directly, view it on GitHub <#551 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMQKHFWO5RJKSRF6U4UPPR3ZBFDLTAVCNFSM6AAAAABHLXRW5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZGM3DAMZTHE> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AMQKHFXKFS3EBN7APH6AS63ZBFDLTA5CNFSM6AAAAABHLXRW5SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5EGZFG.gif> Message ID: ***@***.***>
|
The button is a little confusing. The actual setting is shown in brackets '(No)' with the button showing you what you want to change to 'Yes'. If you click the button 'Yes' it will change to 'No' and the text beside it will change to '(Yes)'. I will have to have a think about the wording to make it more clear. Can you update to the same version of ODraw that I used, 1.8.46.0, and see if you still have the problem? |
Thanks Jon! I will update. In opecpn plugin menu this is the only version available and I don’t see any option to get newer versions. Any suggestions on how to update?Fernando Gonzalez del SolarEnviado desde mi IphoneEl 8 may 2024, a la(s) 8:30 p. m., jongough ***@***.***> escribió:
The button is a little confusing. The actual setting is shown in brackets '(No)' with the button showing you what you want to change to 'Yes'. If you click the button 'Yes' it will change to 'No' and the text beside it will change to '(Yes)'. I will have to have a think about the wording to make it more clear.
Can you update to the same version of ODraw that I used, 1.8.46.0, and see if you still have the problem?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Thanks Jon, I just updated as instructed. Rebooted raspi just in case. The mentioned problems persist. I have noticed something that at first didn’t concerned me much, but its not uncommon that while using the import, export, update option on OCPN DRAW, OCPN crashes. No specific patern I could identify. I heve uninstalled and installed again but the problem persists.
De: jongough ***@***.***
Enviado el: jueves, 9 de mayo de 2024 1:37
Para: jongough/ocpn_draw_pi
CC: Fgonzalez22; Author
Asunto: Re: [jongough/ocpn_draw_pi] OD Points and Layers (Issue #551)
You need to update the plugin catalog
image.png (view on web) <https://github.com/jongough/ocpn_draw_pi/assets/2803240/e13e6d4f-39e8-4234-bcd6-033fcad4e969>
Then you should be able to update any plugin that is newer than the ones you have. For OD use 1.8.46.0 as I know that one works. The newer version has an issue on android because OCPN is not quite up to date on that platform and the latest version OD uses the newer facilities of OCPN that have not yet been released on some platforms(as far as I know).
—
Reply to this email directly, view it on GitHub <#551 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMQKHFR6VTQZSBB54HQ7OQTZBL4OFAVCNFSM6AAAAABHLXRW5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBRHEYTOOJQHE> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AMQKHFTEXBTNTVJDFSZCAK3ZBL4OFA5CNFSM6AAAAABHLXRW5SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5JC4NK.gif> Message ID: ***@***.***>
|
I have just downloaded and installed the latest openplotter 3 arm64 package for a Pi 3B+. I have installed both OD 1.8.46.0 & 1.8.49.0 and they both work as expected. I can export and import GPX files, I and export the GPX and import into a layer and restart and that can both display at startup the layers or not, depending on the setting in the properties general tab. Installing 1.8.49.0 over 1.8.46.0 did cause OCPN to crash, not sure why, but on restart it worked fine. So with a new openplotter image it all seems to work, so I am not sure what is going on with your implementation. Perhaps you could attach the OCPN log and config file to see if anything obvious stands out in them. |
Hi Jon, sorry for the delay, I’ve been traveling
I send you my OCPN.conf and OPENCPN LOG.
The log consists of starting OCPN, importing OD Points, moment it crashes. Re-starting OCPN, importing OD points, not loading them, so re-importing ODs, the do load second time, and closing OCPN. Finally restarting OCPN to verify the imported OD points are not there.
Thanks for your help.
De: jongough ***@***.***
Enviado el: viernes, 10 de mayo de 2024 19:01
Para: jongough/ocpn_draw_pi
CC: Fgonzalez22; Author
Asunto: Re: [jongough/ocpn_draw_pi] OD Points and Layers (Issue #551)
I have just downloaded and installed the latest openplotter 3 arm64 package for a Pi 3B+. I have installed both OD 1.8.46.0 & 1.8.49.0 and they both work as expected. I can export and import GPX files, I and export the GPX and import into a layer and restart and that can both display at startup the layers or not, depending on the setting in the properties general tab. Installing 1.8.49.0 over 1.8.46.0 did cause OCPN to crash, not sure why, but on restart it worked fine.
So with a new openplotter image it all seems to work, so I am not sure what is going on with your implementation. Perhaps you could attach the OCPN log and config file to see if anything obvious stands out in them.
—
Reply to this email directly, view it on GitHub <#551 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMQKHFWS54VGSC23JPBLLH3ZBU7TLAVCNFSM6AAAAABHLXRW5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVGMZDAOJTGA> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AMQKHFRXCDUEI6B44NCMCF3ZBU7TLA5CNFSM6AAAAABHLXRW5SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5PSS6E.gif> Message ID: ***@***.***>
|
You will need to use github to attach the files so that I can see them. I have not received, nor can I see the files you say you have sent. |
Here they go zipped! |
Can you also provide the gpx files you are trying to load? The loading of the layer OD objects appears to have worked on the first invocation. It looks like 38 OD points were loaded and 2 Paths, this correct? This happened at 12:03.09 and the last message from the app was at 12:04:33 whilst apparently doing AIS processing. In all three runs OD did load up the OD points and Paths at startup. Not sure why they are not showing, but there is nothing in the log that says OD had a problem. |
Attached the od objects file. In the first try, as soon as OCPN loaded de points, even before they showed in the objects window, OCPN closed/crashed. The same happend the first time i tried exporting them weeks before. After rebooting, OCPN loaded OD points but didn't show neither in the OD points window nor on the map. In the second attempt they did show, but disappeared next time I run OCPN. |
I only have a Pi 3B+ and have tested with Openplotter 3 and do not have a problem. It 'may' be to do with the Pi 4, although that would seem strange. There is only one item that may be confusing. If you import points into OD they will show up, if you import them again they are deleted. If they are imported a third time they will show up. The idea was to avoid duplicating points. I have tried importing the OD Points, making a change to one of them the killing OCPN. On restart the OD points show up with the change made. I am trying to build a virtual Pi 4 so that I can test with something closer to what you are using, but it is a rather slow process. If you are comfortable using a command prompt you could try to get a backtrace of the crash. This should show what actually was the last module in OCPN that was in use at the time of the crash. To do this open a command prompt, type 'gdb opencpn' which will load opencpn in the debugger, the issue 'r' to run the program. Opencpn should startup and be runnable. Create the crash conditions and when it does crash issue 'bt' on the command prompt. This should show you a list of all the modules that are in the calling chain with the top most one being what actually crashed. If you can take a screenshot of that and put it up here that may help narrow down what is happening. 'quit' will terminate the gdb session. |
Not sure if done correctly but im attaching the debug file until ocpn crashes opening od points. |
Almost. When the error came up OCPN stopped, I think. At that point you need to issue the Also, have you tried turning off any other plugins so that OD is the only one running? If so, does this give the same error? Watchdog can/does interact with OD to determine if boundaries are being crossed, so that plugin should certainly be disabled or even uninstalled to be sure it is not having an effect (this will not loose its data, and can be reinstalled after the test). I also notice that you have a |
Uninstalled Watchdog and run bt after crash. Debug and paths files |
I have tried the path.gpx and it works fine. I deliberately created a crash in OD by dividing 1/0 in the OD event handler. For me this is the series of commands I issued:
this runs OCPN using the local directory for all the files used rather than the normal location for the user. When the program crashed I issued
You can see it shows the last program that was executed first and the following lines show how it got there. This is the information I am after for your crash. I can then try and understand what is happening. In your case it will probably not look as detailed as this, but hopefully will provide some information. |
Got it! Here it goes: For help, type "help". Thread 1 "opencpn" received signal SIGBUS, Bus error. |
I have created a debug version of OD for the Pi, you can find it here: https://cloudsmith.io/~opencpn/repos/ocpn_draw-alpha/packages/detail/raw/ocpn_draw_pi-1.8.49.4-android-arm64-16-android-arm64-tarball/1.8.49.4+7554.79ccfe4/ Then can you repeat the GDB test and put up the back trace. Thanks. |
Just to be sure, the file I should download is ocpn_draw_pi-1.8.49.4-android? |
I have built the debian arm* files as well. You will find them on cloudsmith: https://cloudsmith.io/~opencpn/repos/ocpn_draw-alpha/packages/, pick the one you want, not xml files, and install that. |
Im having trouble with the import, i have set catalogexpert=1 |
I have created the install packages for alpha so that you don't have to do a local install. You will need to pick the 'Alpha' environment and reload the catalog. Then you should be able to install OD 1.8.49.4 on your system. The local install process requires that you pick the correct operating system or it will give the error you are getting. |
I have downloaded the version you provided. But when i run debug opencpn from terminal i get an error. I paste it here: pi@openplotter:~ $ gdb opencpn For help, type "help". |
Restarted pi, and tryed again: pi@openplotter:~ $ gdb opencpn For help, type "help". Thread 1 "opencpn" received signal SIGSEGV, Segmentation fault. |
I have put up a new version, 1.8.49.5, which should put out a little bit more debugging information, i.e. the ODPoint type and the GUID associated with it. Can you install this and run in debugging mode again and put up the gdb backtrace and the messages that should look something like this:
|
Ok, not sure if it came differently, here the new gdb pi@openplotter:~ $ gdb opencpn For help, type "help". Thread 1 "opencpn" received signal SIGBUS, Bus error. |
I think this is a symptom of your problem, but unfortunately it is in a different area of code. OD found an object already existed with the same name and GUID and therefore didn't need to process it. Can you try again and see if OCPN starts and is usable without OD showing any 'popup' messages, i.e. having your mouse pointer near an OD object? I need the program to go through the code that showed up previously to try and see what is happening on your machine. I still cannot create the issue you have on any of my platforms so I cannot see what is happening. Please only send the top part of the backtrace and the messages produced when a rollover happens. This will reduce the size of the messages. Or create text files with the information in and zip them up and attach them to your response. Also, can you try removing all OD objects before startup (rename or delete the ODnavobj.xml and the ODnavobj.xml.changes files). You can find where these are by looking in the OCPN log file and looking for something like this:
|
I have deleted ODnavobj.xml and the ODnavobj.xml.changes files |
I have put up a new version of OD, 1.8.49.5, which includes changes to try and stop rollover popups being called for ODPoints which have just been deleted (happens when you install the same gpx file twice). If you import ODPoints the first time they will be created, the second time they will be deleted, the third time they will be created, and so on. If you import a layer file the first time it will only create ODPoints when they don't already exist, determined by their GUID. If you double import a gpx file into a layer you will get a new layer created, but the number of points created will equal the number of unique GUID ODPoints. This will show up in the list of items. Also, the default is to not show layers. This can be changed in the General tab of the OD properties page. Be careful with 'double click' of the mouse left button or equivalent. If you have setup the 'single click' to act like 'double click' you may get some interesting affects. Try doing a 'single click' and then 'single click' on the OK button. |
Great, thanks Jon, I will take that into account, best wishes! |
I will not be able to make further changes after today for a while, so can you have a quick check and see if it is working for you? |
After your recommendation I made several tests. This is what i found: |
Layers should work, but hiding a layer then reimporting may be an issue, I didn't test that. I did test double importing permanent layers for ODPoints and it worked. I didn't try with paths. It may be a little while before I can look further into this issue. |
That was my first idea, to create OD points and paths in the area I sail and to use them in combination with watchdog. (not tested yet). But it happened that i was moving the OD points inadvertently. Which could be dangerous. So I thought grouping them all as layers. That would avoid the danger of moving them, even though I have to remember to activate them every time I use OCPN. Anyway, Im just starting to use ocpn actively and I have found it very usefull and in combination with Draw and Watchdog even more powerfull given that we dont count with vector charts, only ENC. No rush, I have a long way to go yet ;-) lol thanks again |
Hi Jon.
Im just starting to use OPENCPN Draw with WatchDog
I have experienced the following problems
Thanks!
The text was updated successfully, but these errors were encountered: