question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing appearance font size in Preferences results in a crash.

See original GitHub issue

Description

What steps will reproduce the problem?

With fresh install on Windows 10, selected Tools->Preferences->Appearance, then increase font size to 14, select apply, spyder crashes.

When spyder is restated the new font size that was selected before the crash is being used.

Traceback

  File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\configdialog.py", line 236, in button_clicked
    configpage.apply_changes()
  File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\configdialog.py", line 99, in apply_changes
    self.apply_callback()
  File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\configdialog.py", line 282, in <lambda>
    self.apply_settings(self.changed_options))
  File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\appearance.py", line 236, in apply_settings
    self.main.apply_settings()
  File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\app\mainwindow.py", line 3122, in apply_settings
    self.apply_panes_settings()
  File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\app\mainwindow.py", line 3137, in apply_panes_settings
    plugin._update_margins()
  File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\plugins\base.py", line 230, in _update_margins
    self._default_margins = layout.getContentsMargins()
AttributeError: 'NoneType' object has no attribute 'getContentsMargins'

Versions

  • Spyder version: 4.1.4
  • Python version: 3.7.7
  • Qt version: 5.12.9
  • PyQt5 version: 5.12.3
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.5.0 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.16.1 (OK)
jedi =0.17.1                   :  0.17.1 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  1.1.0 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.7.0                   :  0.7.0 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=1.0                   :  2.5.3 (OK)
pyls >=0.34.0;<1.0.0           :  0.34.1 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.2 (OK)
qtconsole >=4.6.0              :  4.7.5 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
sphinx >=0.6.6                 :  3.1.2 (OK)
spyder_kernels >=1.9.2;<1.10.0 :  1.9.3 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.1 (OK)

# Optional:
cython >=0.21                  :  None (OK)
matplotlib >=2.0.0             :  3.2.2 (OK)
numpy >=1.7                    :  1.19.0 (OK)
pandas >=0.13.1                :  1.0.5 (OK)
scipy >=0.17.0                 :  1.5.1 (OK)
sympy >=0.7.3                  :  1.6.1 (OK)

# Spyder plugins:
spyder_opensbml                :  1.1.0 (OK)
spyder_teimport                :  1.1.2 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
hsaurocommented, Sep 10, 2020

I understand. We’re currently on 4.1.4, once 4.1.5 is out we’ll move to that to see if it helps.

Thanks for great tool.

Herbert Sauro

On Thu, Sep 10, 2020 at 2:40 PM Carlos Cordoba notifications@github.com wrote:

Ok, thanks @dalthviz https://github.com/dalthviz for your help. Closing because we were not able to reproduce it, sorry.

Please report this problem to the WinPython guys:

https://github.com/winpython/winpython

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/13748#issuecomment-690746325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIBSDVRRWCJMR7Q3TPO37TSFFBRBANCNFSM4RDCMRBA .

– Herbert Sauro, Professor University of Washington, Bioengineering 206-685-2119, www.sys-bio.org hsauro@uw.edu Books: http://books.analogmachine.org/

1reaction
ccordoba12commented, Sep 10, 2020

@dalthviz, please try to reproduce this problem on Windows with a pip environment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Font size of TextView in Android application changes on ...
Actually, Settings font size affects only sizes in sp . So all You need to do - define textSize in dp instead of...
Read more >
Font Size Problems? Check Here First! - Codecademy
Go to your browser's settings and make sure in the font settings that your minimum font setting is set to 10px… if not...
Read more >
Fix text that isn't displaying properly - Google Chrome Help
Text looks fuzzy or blurry (Windows only). If text doesn't look clear on your computer, try changing your font settings. Step 1: Use...
Read more >
Adjust the display and text size on iPhone - Apple Support
Go to Settings > Accessibility > Display & Text Size. Adjust any of the following: Bold Text: Display the text in boldface characters....
Read more >
Is there a way to permanently set the font and window size in ...
You need to go "Change Settings -> Window" and set it there. Do the same under Appearance for the font and size. Change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found