jbuchermn / newm

Wayland compositor
MIT License
959 stars 30 forks source link

Core dump on 0.3 #91

Closed Pandademic closed 2 years ago

Pandademic commented 2 years ago

start-newm -d core dumps from tty after yay -s install

Pandademic commented 2 years ago

@jbuchermn says something about libseat

CRAG666 commented 2 years ago

It is possible that you are missing a package that has already happened to me

jbuchermn commented 2 years ago

Please post logs, otherwise there's nothing we can do. There have been libseat issues in the past (it's kind of a mess...) so I think we should be able to fix it.

BTW, aur has v0.3

CRAG666 commented 2 years ago

As such it doesn't have v3 you can build v3 by modifying the PKBUILD

CRAG666 commented 2 years ago

by the way the the fuzz library is not available in the repositories it has to be installed with pip

jbuchermn commented 2 years ago

As such it doesn't have v3 you can build v3 by modifying the PKBUILD

No. Check the PKGBUILD.

by the way the the fuzz library is not available in the repositories it has to be installed with pip

That's an important piece of information, can you add that to the doc?

Pandademic commented 2 years ago

@CRAG666 shouldn't libseat be a dependency in the PKGBUILD?

jbuchermn commented 2 years ago

That's a good point, however on nixOS it's not necessary...

There's an easy way to test this - install libseat, try again, does anything change?

Pandademic commented 2 years ago

@jbuchermn I'll get to that now

CRAG666 commented 2 years ago

As such it doesn't have v3 you can build v3 by modifying the PKBUILD

No. Check the PKGBUILD.

by the way the the fuzz library is not available in the repositories it has to be installed with pip

That's an important piece of information, can you add that to the doc?

Of course I will do a documentation pr

Pandademic commented 2 years ago

@jbuchermn that doesn't help ...seatd is the package , right? LOG NOTICINGS:

Pandademic commented 2 years ago

if I use dbus-run-session start-newm -d it kinda works....(possible screen freeze) following sway suggestions helps , i've noticed

jbuchermn commented 2 years ago

@jbuchermn that doesn't help ...seatd is the package , right? LOG NOTICINGS:

  • brightnessctl errors untill I manually install it , it should be in the PKGBUILD with seatd , can I submit a PR?
  • python says traceback error : ValueError: invalid literal int() with base 10 showing lines 99 and 24 in file helper/backlight_manager.py.Is this a syntax error or just something I did?

brightnessctl is an optional dependency, only if you use BacklightManager. However these errors should not be fatal, just a lot of log output, but this can't cause the core dump.

Nope, it's nothing you did, probably fixed once brightnessctl is working.

  • the log has a lot of libseat errors and a final failed assertion from pywm/newm
  • OTHER STUFF: if I use dbus-run-session start-newm -d it kinda works....(possible screen freeze) following sway suggestions helps , i've noticed

It's most certainly related to libseat / seatd. Possible cause could be seatd not running and libseat refusing to use systemd-logind (which is something I've seen in the past on arch linux). If you would post a log, we could tell. Does sway start up properly?

Probably @CRAG666 knows better, how to fix this, as I'm not on arch anymore.

Pandademic commented 2 years ago

@jbuchermn it's in a VM , I can't get the log. anyway ,

jbuchermn commented 2 years ago

@jbuchermn it's in a VM , I can't get the log.

anyway ,

  • sway doesn't start either with the same result as dbus-run session start-newm -d , the screen hangs

Okay, probably also a good idea to look for help there as it's a lot bigger of a community.

  • "Possible cause could be seatd not running and libseat refusing to use systemd-logind (which is something I've seen in the past on arch linux)." - How did you fix it? I'll try using elogind

Using seatd.

  • you disable BacklightManager through the config , right?

Yup, just remove it from your config.

Pandademic commented 2 years ago

@jbuchermn can you send me a example newm config without backlight manager and i'll try it?

jbuchermn commented 2 years ago

Just remove it from your config.

But as I said above, that's not the cause of your coredump. It's most certainly a libseat issue.

Pandademic commented 2 years ago

@jbuchermn yes , but its easier to disable for a easier to read log

CRAG666 commented 2 years ago

The problem is easier to fix than it seems, it's just a bit tedious. First make sure you have all the dependencies that newm uses installed, don't rely on pkbuild. Second once compiled and installed in a tty section start newm, it is very likely that you use systemd so set the environment variables correctly. You were able to check my dotfiles, I have a folder called waylando where I have a group of scripts to be able to execute any composer in wayland without problems.

Pandademic commented 2 years ago

@CRAG666 thanks i'll try this on the VM

carterisonline commented 2 years ago

Getting segfaults here after 1-2 minutes of the program being open. A bit of a pattern I've noticed is that normally, an animation is played at some point between animation queues. Whenever there's a segfault, there are two animations queued with no animation played between. I uploaded this part of the log here.

Mesa: 21.3.7-2 on Intel Tiger Lake (Xe) Graphics

jbuchermn commented 2 years ago

Getting segfaults here after 1-2 minutes of the program being open. A bit of a pattern I've noticed is that normally, an animation is played at some point between animation queues. Whenever there's a segfault, there are two animations queued with no animation played between. I uploaded this part of the log here.

Mesa: 21.3.7-2 on Intel Tiger Lake (Xe) Graphics

Thanks for the logs. This however appears to be unrelated to the particular issue here, but a pywm bug triggered by closing windows. I'll open an issue there and take a look.

jbuchermn commented 2 years ago

Closing this for now.