lem icon indicating copy to clipboard operation
lem copied to clipboard

SDL2: Linux High-DPI rendering problem

Open VitoVan opened this issue 1 year ago • 7 comments

System: Ubuntu 22.04.1 LTS Resolution: 1920 x 1400 Scale: 200%

Lem version: 372cb5e6b44660f1bac1bde09de673d34a1f97e3

Running from source with SBCL.

imagen imagen imagen

VitoVan avatar Jun 30 '23 12:06 VitoVan

With the latest Lem from master, does this still happening?

Sasanidas avatar Dec 07 '23 15:12 Sasanidas

I haven't got time to test this, will do it in this week.

VitoVan avatar Dec 13 '23 02:12 VitoVan

I kept getting the following error when trying on Ubuntu 22.04:

Click me

~/common-lisp/lem$ make sdl2 qlot install Reading '/home/vito/common-lisp/lem/qlfile'... Already have dist "quicklisp" version "2023-06-18". Installing dist "micros".
=> Newly installed "micros" version "git-994d4d67467ec1b6eddacad9dba385b42101679e". Installing dist "lem-mailbox".
=> Newly installed "lem-mailbox" version "git-12d629541da440fadf771b0225a051ae65fa342a". Installing dist "lem-base16-themes".
=> Newly installed "lem-base16-themes" version "git-07dacae6c1807beaeffc730063b54487d5c82eb0". Installing dist "async-process".
=> Newly installed "async-process" version "git-9690530fc92b59636d9f17d821afa7697e7c8ca4". Installing dist "sblint".
=> Newly installed "sblint" version "git-1037296f604c3210ce073a53539d4ae95b0c2f8c". Installing dist "rove".
=> Newly installed "rove" version "git-f168cd177b5f83f171dd970dc1a9abb6eb43f044". Installing dist "cl-sdl2".
=> Newly installed "cl-sdl2" version "git-24dd7f238f99065b0ae35266b71cce7783e89fa7". Installing dist "cl-sdl2-ttf".
=> Newly installed "cl-sdl2-ttf" version "git-e61bb2119003d8ae7792d38aa11f7728d3ee5a00". Installing dist "cl-sdl2-image".
=> Newly installed "cl-sdl2-image" version "git-8734b0e24de9ca390c9f763d9d7cd501546d17d4". Loading '/home/vito/common-lisp/lem/contrib/bracket-paren-mode/lem-bracket-paren-mode.asd'... Loading '/home/vito/common-lisp/lem/contrib/calc-mode/lem-calc-mode.asd'...
Loading '/home/vito/common-lisp/lem/contrib/fbar/lem-fbar.asd'...
Loading '/home/vito/common-lisp/lem/contrib/google-translate/lem-google-translate.asd'... Loading '/home/vito/common-lisp/lem/contrib/lem-contrib.asd'...
Loading '/home/vito/common-lisp/lem/contrib/migemo/lem-migemo.asd'... Loading '/home/vito/common-lisp/lem/contrib/modeline-battery/lem-modeline-battery.asd'... Loading '/home/vito/common-lisp/lem/contrib/mouse-sgr1006/lem-mouse-sgr1006.asd'...
Loading '/home/vito/common-lisp/lem/contrib/selection-mode/lem-selection-mode.asd'... Loading '/home/vito/common-lisp/lem/contrib/tetris/lem-tetris.asd'...
Loading '/home/vito/common-lisp/lem/contrib/trailing-spaces/lem-trailing-spaces.asd'... Loading '/home/vito/common-lisp/lem/contrib/version-up/lem-version-up.asd'...
Loading '/home/vito/common-lisp/lem/extensions/asciidoc-mode/lem-asciidoc-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/asm-mode/lem-asm-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/c-mode/lem-c-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/css-mode/lem-css-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/dart-mode/lem-dart-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/documentation-mode/lem-documentation-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/dot-mode/lem-dot-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/elisp-mode/lem-elisp-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/elixir-mode/lem-elixir-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/go-mode/lem-go-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/haskell-mode/lem-haskell-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/html-mode/lem-html-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/java-mode/lem-java-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/js-mode/lem-js-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/json-mode/lem-json-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/lisp-mode/lem-lisp-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/lsp-mode/lem-lsp-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/makefile-mode/lem-makefile-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/markdown-mode/lem-markdown-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/nim-mode/lem-nim-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/ocaml-mode/lem-ocaml-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/paredit-mode/lem-paredit-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/patch-mode/lem-patch-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/posix-shell-mode/lem-posix-shell-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/python-mode/lem-python-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/review-mode/lem-review-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/rust-mode/lem-rust-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/scala-mode/lem-scala-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/scheme-mode/lem-scheme-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/shell-mode/lem-shell-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/sql-mode/lem-sql-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/swift-mode/lem-swift-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/vi-mode/lem-vi-mode.asd'...
Loading '/home/vito/common-lisp/lem/extensions/xml-mode/lem-xml-mode.asd'... Loading '/home/vito/common-lisp/lem/extensions/yaml-mode/lem-yaml-mode.asd'... Loading '/home/vito/common-lisp/lem/frontends/fake-interface/lem-fake-interface.asd'... Loading '/home/vito/common-lisp/lem/frontends/jsonrpc/lem-jsonrpc.asd'...
Loading '/home/vito/common-lisp/lem/frontends/ncurses/lem-ncurses.asd'... Loading '/home/vito/common-lisp/lem/frontends/pdcurses/lem-pdcurses.asd'... Loading '/home/vito/common-lisp/lem/frontends/sdl2/lem-sdl2.asd'...
Loading '/home/vito/common-lisp/lem/lem-tests.asd'...
Loading '/home/vito/common-lisp/lem/lem.asd'...
Loading '/home/vito/common-lisp/lem/lib/encodings/encodings-table/lem-encodings-table.asd'... Loading '/home/vito/common-lisp/lem/lib/encodings/lem-encodings.asd'...
Loading '/home/vito/common-lisp/lem/lib/language-client/lem-language-client.asd'... Loading '/home/vito/common-lisp/lem/lib/language-server/lem-language-server.asd'... Loading '/home/vito/common-lisp/lem/lib/lisp-syntax/lem-lisp-syntax.asd'...
Loading '/home/vito/common-lisp/lem/lib/lsp-base/lem-lsp-base.asd'...
Loading '/home/vito/common-lisp/lem/lib/process/lem-process.asd'...
Loading '/home/vito/common-lisp/lem/lib/socket-utils/lem-socket-utils.asd'... Loading '/home/vito/common-lisp/lem/src/base/lem-base.asd'...
Ensuring 82 dependencies installed. Unhandled QL-DIST:MISSING-LOCAL-ARCHIVE in thread #<SB-THREAD:THREAD "main thread" RUNNINGte-client-20180228-git.tgz". {1001830173}>: The archive file "translate-client-20180228-git.tgz" for release "translate-client" is missing

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1001830173}> 0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<QL-DIST:MISSING-LOCAL-ARCHIVE {10025CAB23}> # :QUIT T) 1: (SB-DEBUG::RUN-HOOK INVOKE-DEBUGGER-HOOK #<QL-DIST:MISSING-LOCAL-ARCHIVE {10025CAB23}>) 2: (INVOKE-DEBUGGER #<QL-DIST:MISSING-LOCAL-ARCHIVE {10025CAB23}>) 3: (ERROR QL-DIST:MISSING-LOCAL-ARCHIVE :FILE #P"/home/vito/common-lisp/lem/.qlot/dists/quicklisp/archives/translate-client-20180228-git.tgz" :RELEASE #<QL-DIST:RELEASE translate-client-20180228-git / quicklisp 2023-06-18>) 4: ((:METHOD QL-DIST:CHECK-LOCAL-ARCHIVE-FILE (QL-DIST:RELEASE)) #<QL-DIST:RELEASE translate-client-20180228-git / quicklisp 2023-06-18>) [fast-method] 5: ((:METHOD QL-DIST:ENSURE-LOCAL-ARCHIVE-FILE (QL-DIST:RELEASE)) #<QL-DIST:RELEASE translate-client-20180228-git / quicklisp 2023-06-18>) [fast-method] 6: ((:METHOD QL-DIST:INSTALL (QL-DIST:RELEASE)) #<QL-DIST:RELEASE translate-client-20180228-git / quicklisp 2023-06-18>) [fast-method] 7: ((:METHOD QL-DIST:ENSURE-INSTALLED (T)) #<QL-DIST:RELEASE translate-client-20180228-git / quicklisp 2023-06-18>) [fast-method] 8: (QLOT/INSTALL::INSTALL-DEPENDENCIES #P"/home/vito/common-lisp/lem/" #P"/home/vito/common-lisp/lem/.qlot/") 9: (QLOT/INSTALL:INSTALL-QLFILE #P"/home/vito/common-lisp/lem/qlfile" :QUICKLISP-HOME NIL :INSTALL-DEPS T :CACHE-DIRECTORY NIL) 10: (QLOT/CLI::QLOT-COMMAND "install") 11: (QLOT/CLI:MAIN) 12: (SB-INT:SIMPLE-EVAL-IN-LEXENV (QLOT/CLI:MAIN) #<NULL-LEXENV>) 13: (EVAL (QLOT/CLI:MAIN)) 14: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:EVAL . "(ql:quickload :qlot/cli :silent t)") (:EVAL . "(qlot/cli:main)") (:QUIT))) 15: (SB-IMPL::TOPLEVEL-INIT) 16: ((FLET SB-UNIX::BODY :IN SB-IMPL::START-LISP)) 17: ((FLET "WITHOUT-INTERRUPTS-BODY-3" :IN SB-IMPL::START-LISP)) 18: (SB-IMPL::START-LISP)

unhandled condition in --disable-debugger mode, quitting make: *** [Makefile:8: sdl2] Error 1

~~Will investigate this later.~~

This was just my network issue.

VitoVan avatar Dec 15 '23 06:12 VitoVan

imagen

It seems that the original problem has gone, but the current problem was the small default font.

Should we close this issue and create another one?

VitoVan avatar Dec 15 '23 07:12 VitoVan

The above build was using this commit: be98202

VitoVan avatar Dec 15 '23 07:12 VitoVan

I see the same issue building the SDL2 version from the v2.2.0 tag (I use 300% scale in Gnome on Debian Bookworm).

EDIT: To clarify, I mean not the original issue, but the latest screenshot @VitoVan provided that show's very small font and ui elements.

ajoberstar avatar Feb 18 '24 23:02 ajoberstar

you can use the font-size-set command to permanently set a font size in SDL2, it is stored in ~/.config/lem/config.lisp (or wherever your lem-home is) to persist between sessions. Hope this helps.

garlic0x1 avatar Feb 22 '24 23:02 garlic0x1

@cxxxr I think this issue can be closed

jfaz1 avatar May 22 '24 14:05 jfaz1