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.

Displaying help takes a long time

See original GitHub issue

Bringing up the help takes about ten seconds for me.

The following is logged by Talon:

2022-01-25 13:49:10 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:123| self.draw_section(canvas, "Special mar..
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |
2022-01-25 13:49:13 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:123| self.draw_section(canvas, "Special mar..
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |
2022-01-25 13:49:15 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:111| self.draw_section(
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |
2022-01-25 13:49:17 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:123| self.draw_section(canvas, "Special mar..
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |

I am running talon v0.2.0-305-g968a (305) cursorless-talon 0.25.0 and knausj_talon commit ea9b2d767be59cfccb5e6831874f2173114cd6bb on Linux.

Greetings, Anton

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lunixbochscommented, Jan 25, 2022

Would love to get a trace to know why it’s slow, I assume it needs to go actually find and load the font from disk every time on that system for some reason.

0reactions
pokeycommented, Feb 10, 2022

thanks @iSchluff! @lunixbochs does the above help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

command 'top' and 'ps' take a long time to show result
Save this question. Show activity on this post. Recently, I find when I run commands like top or ps -aux on a server,...
Read more >
Visual Studio Attach To Process takes a -long- time to show ...
Save this answer. Show activity on this post. Uncheck the checkbox for Python and click modify button. It will take a while.
Read more >
5 Ways to Fix the Windows File Explorer When It's Slow
1. Restart File Explorer ... Restarting File Explorer can help resolve the "Windows File Explorer is slow" issue. To get started, follow these ......
Read more >
Screen taking a long time to display anything
So this has been a problem fairly recently, every day when the computer gets booted it takes 30 minutes for the screen to...
Read more >
Change time to take action - Android Accessibility Help
Open your device's Settings app . · Tap Accessibility and then Time to take action (Accessibility timeout). · Choose your preferred timeout: Default,...
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