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

Wx assertion on welcome screen #7692

Closed
feerrenrut opened this issue Oct 25, 2017 · 3 comments
Closed

Wx assertion on welcome screen #7692

feerrenrut opened this issue Oct 25, 2017 · 3 comments
Labels
bug component/NVDA-GUI p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority quick fix sightedDevIdeal
Milestone

Comments

@feerrenrut
Copy link
Contributor

Steps to reproduce:

  1. Start nvda with debug logging
  2. Open the Welcome dialog (you can do this through NVDA+n,h,l)

Expected behavior:

No exception in the log.

Actual behavior:

The following exception in the log:

DEBUGWARNING - WX Widgets (07:07:34.237):
..\..\src\msw\font.cpp, line 651:
assert ff_family != (0<<4): unknown wxFontFamily
Stack trace:
  File "nvda.pyw", line 199, in <module>
    core.main()
  File "core.py", line 396, in main
    app.MainLoop()
  File "C:\work\nvda\miscDeps\python\wx\_core.py", line 8657, in MainLoop
    wx.PyApp.MainLoop(self)
  File "C:\work\nvda\miscDeps\python\wx\_core.py", line 7952, in MainLoop
    return _core_.PyApp_MainLoop(*args, **kwargs)
  File "C:\work\nvda\miscDeps\python\wx\_core.py", line 16766, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "gui\__init__.py", line 154, in showGui
    self.sysTrayIcon.onActivate(None)
  File "gui\__init__.py", line 488, in onActivate
    self.PopupMenu(self.menu)
  File "C:\work\nvda\miscDeps\python\wx\_windows.py", line 2849, in PopupMenu
    return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs)
  File "gui\__init__.py", line 439, in <lambda>
    self.Bind(wx.EVT_MENU, lambda evt: WelcomeDialog.run(), item)
  File "gui\__init__.py", line 651, in run
    d = cls(mainFrame)
  File "gui\__init__.py", line 590, in __init__
    welcomeTextHeader.SetFont(wx.Font(18, wx.NORMAL, wx.NORMAL, wx.BOLD))
  File "C:\work\nvda\miscDeps\python\wx\_gdi.py", line 2253, in __init__
    _gdi_.Font_swiginit(self,_gdi_.new_Font(*args, **kwargs))
  File "core.py", line 226, in OnAssert
    log.debugWarning(message,codepath="WX Widgets",stack_info=True)

The key line is:

  File "gui\__init__.py", line 590, in __init__
    welcomeTextHeader.SetFont(wx.Font(18, wx.NORMAL, wx.NORMAL, wx.BOLD))

System configuration:

NVDA version:
Recent dev build, just prior to 2017.4

@feerrenrut feerrenrut added bug component/NVDA-GUI p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority quick fix sightedDevIdeal labels Oct 25, 2017
@josephsl
Copy link
Collaborator

josephsl commented Oct 25, 2017 via email

@feerrenrut
Copy link
Contributor Author

Thanks @josephsl, I would be happy for this bug to be fixed independently. This makes it even easier though!
See https://github.com/nvaccess/nvda/pull/7104/files#diff-9140a5f85417543d5f030fb3402465b9R591
Relevant change:

-		welcomeTextHeader.SetFont(wx.Font(18, wx.NORMAL, wx.NORMAL, wx.BOLD))
+		welcomeTextHeader.SetFont(wx.Font(18, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.BOLD))

@josephsl
Copy link
Collaborator

josephsl commented Oct 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component/NVDA-GUI p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority quick fix sightedDevIdeal
Projects
None yet
Development

No branches or pull requests

3 participants