Code Monkey home page Code Monkey logo

Comments (11)

raboof avatar raboof commented on June 28, 2024

Interesting, from the backtrace it seems to crash inside the XQueryExtension while getting the Query font with XLoadQueryFont in defont_get_text_width. Pretty surprising this is different between running under KDE Plasma compared to running under other DE's. Have you verified it works without KDE Plasma?

from notion.

raboof avatar raboof commented on June 28, 2024

Did you build Notion from source or get some package? Which version/package exactly?

from notion.

kbloom avatar kbloom commented on June 28, 2024

I've been able to reproduce this with distribution packages

  • notion 3+2015061300-2+b1 in Debian
  • notion 3+2017050501-1 in Kubuntu cosmic.

The backtrace I attched to this bug comes the Debian package 3+2015061300-2+b1 rebuilt with debugging information enabled, and with stripping and optimization disabled (and with liblua5.2-0-dbg installed)

from notion.

raboof avatar raboof commented on June 28, 2024

Interesting. I must admit I'm not familiar with KDE at all, so I'd appreciate some help. I'm also running Debian, and installed Plasma and kdm. How do I configure KDE/Plasma to use Notion as a window manager?

from notion.

kbloom avatar kbloom commented on June 28, 2024

So what I've been doing is running killall kwin_x11 from a terminal, and then starting notion from a terminal (typically one of my text terminals, so that I can debug without using my X desktop), however if you really want to replace the window manager by default (when it's not yet known to give you a working desktop), you need to set the KDEWM environment variable to the path of your window manager's binary. This is typically done by adding a shell script in ~/.config/plasma-workspace/env.

from notion.

raboof avatar raboof commented on June 28, 2024

from notion.

kbloom avatar kbloom commented on June 28, 2024

Note that once notion no longer crashes, you probably need a configuration of window hints that's similar to this i3 confguration in order to actually get something usable.

from notion.

raboof avatar raboof commented on June 28, 2024

OK, so the backtrace is a bit of a red herring, because the error is returned by the X server asynchronously, so the trace doesn't point to the code that performs the 'bad' request, but to the code that observes the error.

It appears notion tries to grab some keys from the keybindings, but those have already been bound (presumably by some KDE component).

Instead of crashing, I think we should report on the bindings that failed to register. In the branch at https://github.com/raboof/notion/pull/new/warnOnBindFailures I changed the kill to a warning, but I haven't figured out a way to report which key couldn't be bound yet.

One obvious 'problem' is that now the Plasma 'Desktop' is displayed as a window. I guess we'd want to bind it to the root window of any non-tiled workspaces instead?

from notion.

kbloom avatar kbloom commented on June 28, 2024

That sounds like a good plan.

from notion.

raboof avatar raboof commented on June 28, 2024

I updated the branch to only log the failures, could you have a look?

from notion.

kbloom avatar kbloom commented on June 28, 2024

That works. Now to figure out how to lay out KDE's stuff.

from notion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.