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

Doom Dashboard does not show up - Error (doom-init-ui-hook): Error running hook "+unicode-init-fonts-h" because: (void-variable ...) #7164

Closed
4 tasks done
sainishwanth opened this issue Mar 22, 2023 · 3 comments
Labels
is:upstream Originates from outside the project and cannot be fully addressed here module:ui/unicode Pertains to Doom's :ui unicode module

Comments

@sainishwanth
Copy link

sainishwanth commented Mar 22, 2023

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
  • The issue can be reproduced on the latest available commit of Doom.
  • The issue can be reproduced on a stable release of Emacs, such as 27 or 28. (Doom does not support development builds like 29+ or any version ending in .50 or .9x)

Expected behavior

Doom-Dashboard showing up on startup or when creating a new workspace

Current behavior

Dashboard fails and gives the following Error:

Error (doom-init-ui-hook): Error running hook "+unicode-init-fonts-h" because: (void-variable ...) 

When Emacs is run with --debug-init:

Debugger entered--Lisp error: (void-variable \.\.\.)
  (progn (set-fontset-font "fontset-default" '(64256 . 64335) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(65856 . 65935) (font-spec :name "Apple Symbols:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Courier New:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Geeza Pro:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Baghdad:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Damascus:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Al Bayan:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Nadeem:" :registry "iso10646-1") nil 'append) \.\.\.)
  eval((progn (set-fontset-font "fontset-default" '(64256 . 64335) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(65856 . 65935) (font-spec :name "Apple Symbols:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Courier New:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Geeza Pro:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Baghdad:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Damascus:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Al Bayan:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Nadeem:" :registry "iso10646-1") nil 'append) \.\.\.))
  unicode-fonts--setup-1("fontset-default" nil)
  unicode-fonts-setup()
 (progn (select-frame frame 'norecord) (require 'unicode-fonts) (if doom-unicode-font (progn (let ((doom-unicode-font-family (plist-get (font-face-attributes doom-unicode-font) :family))) (let ((--dolist-tail-- unicode-fonts-block-font-mapping)) (while --dolist-tail-- (let (...) (let* ... ...) (setq --dolist-tail-- ...))))))) (unicode-fonts-setup))
  (unwind-protect (progn (select-frame frame 'norecord) (require 'unicode-fonts) (if doom-unicode-font (progn (let ((doom-unicode-font-family (plist-get ... :family))) (let ((--dolist-tail-- unicode-fonts-block-font-mapping)) (while --dolist-tail-- (let ... ... ...)))))) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer))))
  (let ((old-frame (selected-frame)) (old-buffer (current-buffer))) (unwind-protect (progn (select-frame frame 'norecord) (require 'unicode-fonts) (if doom-unicode-font (progn (let ((doom-unicode-font-family ...)) (let (...) (while --dolist-tail-- ...))))) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer)))))
  (progn (let ((old-frame (selected-frame)) (old-buffer (current-buffer))) (unwind-protect (progn (select-frame frame 'norecord) (require 'unicode-fonts) (if doom-unicode-font (progn (let (...) (let ... ...)))) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer))))))
  (if (and frame (display-graphic-p frame)) (progn (let ((old-frame (selected-frame)) (old-buffer (current-buffer))) (unwind-protect (progn (select-frame frame 'norecord) (require 'unicode-fonts) (if doom-unicode-font (progn (let ... ...))) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer)))))))
  +unicode-setup-fonts-h(#<frame *scratch* - GNU Emacs at sainishwanthmac.local 0x15ba0ea68>)
 +unicode-init-fonts-h()
  funcall(+unicode-init-fonts-h)
  (condition-case e (funcall hook) ((debug error) (signal 'doom-hook-error (list hook e))))
  doom-run-hook(+unicode-init-fonts-h)
  run-hook-wrapped(doom-run-hook +unicode-init-fonts-h)
  (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook))
  (condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car (cdr e))) (symbol-name (car (cdr e))) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e)))))
  (let ((hook (car --dolist-tail--))) (condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car ...)) (symbol-name (car ...)) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp ...) (symbol-name ...) (car ...)) (car (cdr ...)))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (let ((--dolist-tail-- hooks)) (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if ... ... ...) (car ...))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))))
  doom-run-hooks(doom-init-ui-hook)
 doom-init-ui-h()
  run-hooks(window-setup-hook)
  #f(compiled-function () #<bytecode 0xa4b80107d7dc040>)()
  normal-top-level()

Steps to reproduce

  1. Open Emacs using Terminal or from /Applications/ Folder
  2. UI/Dashboard does not load and instead gives a blank screen

System Information

https://pastebin.com/zR8jf74a

@sainishwanth sainishwanth added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Mar 22, 2023
@sainishwanth
Copy link
Author

sainishwanth commented Mar 22, 2023

Would like to mention that emacs was running fine until I rebooted my mac?
The last thing I did before rebooting was run:
doom upgrade && doom sync -u

It seems to work fine with emacs-plus@28 but fails on emacs-mac (what I currently use). So not entirely sure if it's being caused by doom or emacs-mac.

@hlissner hlissner added module:ui/unicode Pertains to Doom's :ui unicode module is:upstream Originates from outside the project and cannot be fully addressed here and removed is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Mar 22, 2023
@hlissner hlissner moved this from Unreviewed to :+1: Confirmed in Triage (upstream issues) Mar 22, 2023
@sainishwanth
Copy link
Author

sainishwanth commented Mar 22, 2023

Completely reinstalling doom seems to have fixed it. Not sure what caused it or what fixed it. Replaced all my old configs too and works fine, just like it did before.

I'm assuming the change of directories from ~/.doom.d/ to ~/.config/doom in the recent update might have caused it, since the last thing I did was update doom update. Closing the issue for now since everything seems to be working fine for now!

@github-project-automation github-project-automation bot moved this from :+1: Confirmed to ✔ Resolved upstream in Triage (upstream issues) Mar 22, 2023
@hlissner
Copy link
Member

This is a known issue with the unicode-fonts package, upstream. The quick fix is to delete its cache file living in $EMACSDIR/.local/cache/pcache/ (or the whole directory) and restart Emacs.

($EMACSDIR = ~/.config/emacs or ~/.emacs.d -- wherever you have cloned Doom to)

@hlissner hlissner moved this from ✔ Resolved upstream to :+1: Confirmed in Triage (upstream issues) Mar 22, 2023
hlissner added a commit that referenced this issue Jul 22, 2023
Seems to be a common issue, and unlikely to see a fix, unless
unicode-fonts gets a new maintainer.

Ref: rolandwalker/unicode-fonts#36
Ref: #7164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:upstream Originates from outside the project and cannot be fully addressed here module:ui/unicode Pertains to Doom's :ui unicode module
Projects
Status: Ready
Development

No branches or pull requests

2 participants