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

osmscout-server-gui segfaults on startup #377

Open
Thra11 opened this issue Apr 2, 2021 · 3 comments
Open

osmscout-server-gui segfaults on startup #377

Thra11 opened this issue Apr 2, 2021 · 3 comments

Comments

@Thra11
Copy link
Contributor

Thra11 commented Apr 2, 2021

Updating to osmscout-server version 2.0.1, built against Qt 5.15.2 on NixOS, I get a segfault on startup:

> osmscout-server-gui
Failed to load translation for  "en_GB"   ":/i18n"
/tmp/nix-shell-28327-0/rc: line 1: 30086 Segmentation fault      (core dumped) osmscout-server-gui

Backtrace from the coredump: gdb.txt. Doesn't look super informative, as it's entirely Qt code on the stack, so I can't tell at a glance which bit of qml it was trying to load.

Let me know if there's anything you'd like me to try (I can probably upload the coredump is that's helpful?).

osmscout-server appears to run fine: only osmscout-server-gui crashes.

@rinigus
Copy link
Owner

rinigus commented Apr 2, 2021

Few questions:

  • can you try to build debug version? CONFIG+=debug at qmake should result in it.
  • start GUI without server running

Try to run in these conditions.

In general, is it easy to get NixOS in the virtual machine for testing/debugging?

Anything special in DBus session handling on NixOS?

@Thra11
Copy link
Contributor Author

Thra11 commented Apr 2, 2021

  • can you try to build debug version? CONFIG+=debug at qmake should result in it.

It's already a debug build (and linking against a debug build of qt).

  • start GUI without server running

I tried this early on. It doesn't appear to make any difference whether the server is running. I don't believe the server was running when I captured the backtrace.

I'll try this next.

In general, is it easy to get NixOS in the virtual machine for testing/debugging?

In theory, yes. In practice, there might be quite a steep learning curve if you're only used to more conventional linuxes.

Anything special in DBus session handling on NixOS?

Not that I'm aware off, but there may be.

@rinigus
Copy link
Owner

rinigus commented Apr 3, 2021

I will wait for your results before diving into NixOS debugging. As there is vbox image, I could start that easily. But let's see if you manage to narrow down what is causing the crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants