Bug 477704 - Lokalize crashes the moment I open a .po-file to edit it
Summary: Lokalize crashes the moment I open a .po-file to edit it
Status: RESOLVED WORKSFORME
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: 24.01.75
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-11-29 07:11 UTC by PK
Modified: 2024-01-12 03:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PK 2023-11-29 07:11:26 UTC
SUMMARY
***
I'm using Neon Unstable Wayland. Lokalize starts up pretty well. But the moment I open a .po file it crashes completely.
***


STEPS TO REPRODUCE
1. start up Lokalize
2. "open" a .po file to edit

OBSERVED RESULT

Lokalize crashes 

EXPECTED RESULT

The Lokalize editor opens

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.81.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-26-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Celeron® J4105 CPU @ 1.50GHz
Memory: 7.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 600
Comment 1 Albert Astals Cid 2023-11-29 11:10:17 UTC
Can you read https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports and give us a backtrace?
Comment 2 PK 2023-11-29 15:08:18 UTC
How easy!

Ubuntu-based distros (Ubuntu, Kubuntu, KDE Neon, Linux Mint)
(K)Ubuntu has debuginfod starting with 22.10. See https://ubuntu.com/server/docs/service-debuginfod https://ubuntu.com/blog/debuginfod-is-now-available-in-ubuntu .
You will need to set the environment variable
(HOW, WHERE, WHAT)
export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"

- So gambled... I opened the konsole, pasted "export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com", pushed Enter and restarted the system. This is what I get when I start Lokalize from konsole (no clue if I have to do that)
I love to hear from you when this actions are of no value and why they are of no value.
Output konsole:

pieter6@neon6:/home/pieter$ lokalize
QFont::fromString: Invalid description 'Carlito,13,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'
kf.sonnet.core: Sonnet: No speller backends available!
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
QStatusBar::insertWidget: Index out of range (5), appending widget
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
org.kde.lokalize: db "default140360428799552" opened 3 "nl_NL"
QIODevice::read (QBuffer): device not open
org.kde.lokalize: "Prematuur einde van document."
org.kde.lokalize: db "kf6-nl140360428799552" opened 39 "nl"
org.kde.lokalize: db "standaard140360428799552" opened 1 "nl_NL"
org.kde.lokalize: db "kf5-nl140360428799552" opened 1 "nl"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.service.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "nl_NL"
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "nl"
kf.sonnet.core: No language dictionaries for the language: "en_US"
org.kde.lokalize: alt trans file doesn't exist: "/home/pieter6/Documenten/trunk6/messages/elisa/elisa._desktop_.po"
wl_subsurface@111: error 0: no parent
The Wayland connection experienced a fatal error: Protocolfout
Comment 3 Albert Astals Cid 2023-11-30 14:28:47 UTC
Unfortunately that's not what i wanted.

You should not restart anything after the export, try this again

export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"
lokalize

And see if that helps in give more information.

Also just in case, does doing this help?

export QT_QPA_PLATFORM=cxcb
lokalize
Comment 4 PK 2023-11-30 19:27:50 UTC
The first of your two options gave exactly the same result as before. I believe that the second one contains a typo...
 export QT_QPA_PLATFORM=cxcb
should perhaps be
 export QT_QPA_PLATFORM=xcb (cxcb = xcb)
I started lokalize after
 export QT_QPA_PLATFORM=xcb
and to my surprise suddenly there were no problems at all!
Comment 5 Albert Astals Cid 2023-12-02 19:21:56 UTC
lokalize has known problems on wayland, this is more extreme than usual, but yeah, i think the plan is force x11/xwayland for now
Comment 6 A S Alam 2023-12-13 13:02:35 UTC
I am able to reproduce the issue with Fedora Rawhide (unstable release). Lokalize opened without file, once file selected, it crashed.
Comment 7 Bug Janitor Service 2023-12-28 03:46:20 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2024-01-12 03:45:33 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!