g0orx / pihpsdr

Raspberry Pi standalone code for HPSDR (Protocol 1 and Protocol 2)
GNU General Public License v2.0
110 stars 73 forks source link

Segfault when selecting 'Step' settings #153

Closed madpsy closed 3 years ago

madpsy commented 3 years ago

Running latest version on Raspbian. Whenever I click the 'Step' option in menu it instantly hits a segmentation fault. No other output to be seen so not sure how to debug further.

Where are the settings stored? I tried the usual suspects like ~/.config to no avail. I'm thinking maybe try deleting them and see if it still occurs.

Thanks

g0orx commented 3 years ago

Fixed in latest push. Radio properties are stored in ~/pihpsdr with a file name of the MAC_ADDRESS.props (i.e. something like 00-1C-C0-A2-13-DD.props).

madpsy commented 3 years ago

Thanks for info. Was that pushed to master? I've just recompiled and still get a segfault even after removing the props file.

g0orx commented 3 years ago

Yes, it was to the master branch. Did you do a git pull to get the update? --John

On Mon, 27 Sept 2021, 12:26 madpsy, @.***> wrote:

Thanks for info. Was that pushed to master? I've just recompiled and still get a segfault even after removing the props file.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/g0orx/pihpsdr/issues/153#issuecomment-927782045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJEH5MTCAIS75PES3W5VSTUEBIFPANCNFSM5EZB43RQ . 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.

g0orx commented 3 years ago

I just checked and it does not appear to be on github. I am in London all day but will check when I get home tonight.

-- John

On Mon, 27 Sept 2021, 12:46 John Melton, @.***> wrote:

Yes, it was to the master branch. Did you do a git pull to get the update? --John

On Mon, 27 Sept 2021, 12:26 madpsy, @.***> wrote:

Thanks for info. Was that pushed to master? I've just recompiled and still get a segfault even after removing the props file.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/g0orx/pihpsdr/issues/153#issuecomment-927782045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJEH5MTCAIS75PES3W5VSTUEBIFPANCNFSM5EZB43RQ . 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.

madpsy commented 3 years ago

Thaks John - it was definately latest I was using as was from a fresh clone on a different Pi.

db7bn commented 3 years ago

Hi John, I belief you updated the GPIOD branch. In the GPIOD branch the file step_menu.c was updated 5 hours ago. To be honest, I did not understand the difference between the MASTER and the GPIOD branch. Maybe you can explain this in the README.md best regards Karl-Heinz DB7BN

madpsy commented 3 years ago

@db7bn Nice spot. Can confirm this commit fixes it:

https://github.com/g0orx/pihpsdr/commit/35e50e1c36849a0cd299837b36c9df2e223dba27#diff-a0160de3dd5c4bf6fe95e2c031e523ee0d897fd194f0d9e58645c024c9b06aa4

As you said, looks like John just pushed to the GPIOD branch.