Skip to content
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

The soft crashed trying to add markers #769

Open
kidekoop2016 opened this issue Jan 23, 2025 · 1 comment
Open

The soft crashed trying to add markers #769

kidekoop2016 opened this issue Jan 23, 2025 · 1 comment

Comments

@kidekoop2016
Copy link

kidekoop2016 commented Jan 23, 2025

Describe the bug
The soft crashed trying to add markers, before and acter connect the nanovna v2 Pro4, on Windows 10 with nano-saver 0.6.8

To Reproduce
Steps to reproduce the behavior:

  1. Go to nano-vna. exe and open it
  2. Click on 'Display setup'
  3. Scroll down to 'Markers' and click on Add
  4. See error

Expected behavior
Add marker 4, 5, 6,...

Desktop (please complete the following information):

  • OS: win10
  • Python version: [if applicable]
  • NanoVNA-Saver version: 0.6.8

Additional context
It can be added with version 0.6.5 and use it whith the V 0.6.8. The change remains.

@kidekoop2016 kidekoop2016 changed the title The soft crashed trying add markers The soft crashed trying to add markers Jan 23, 2025
@patdoss
Copy link

patdoss commented Jan 31, 2025

Hi,
Same error found with release 0.6.9
The issue in the code is located in "DisplaySettings.py"

The argument in new_marker.setScale is wrong:
new_marker.setScale(self.app.scaleFactor)
"self.app.scaleFactor" need to be replaced by "self.app.scale_factor"

def addMarker(self) -> None:
new_marker = Marker("", self.app.settings)
# wrong argument
# new_marker.setScale(self.app.scaleFactor)

    # New argument
    new_marker.setScale(self.app.scale_factor)

    self.app.markers.append(new_marker)
    self.app.marker_data_layout.addWidget(new_marker.get_data_layout())
    self.app.marker_frame.adjustSize()

.....

After this modification, Display setup-> Markers -> Add is functionnal (tested also Remove)
Thanks and best regards,
73's Patrick F6EXL

Image

zarath added a commit to zarath/nanovna-saver that referenced this issue Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants