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

SDK Debugger fails immedately #308

Closed
bionade24 opened this issue May 9, 2020 · 6 comments
Closed

SDK Debugger fails immedately #308

bionade24 opened this issue May 9, 2020 · 6 comments

Comments

@bionade24
Copy link

On the GUI I only get unexpected error: 1
Arch Linux with latest SDK, ncurses5-compat-libs installed from AUR (maybe add this to known bugs)

[oskar@Fujitsu-Oskar:~] % qtcreator
Color "darkBackground" is neither a named color nor a valid color
"DebuggerItem \"/opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu\" ({9c0dfdea-4113-4f4c-b9b6-39003546b868}) read from \"/home/oskar/.config/SailfishSDK/qtcreator/debuggers.xml\" dropped since it is not valid."
"DebuggerItem \"/opt/SailfishSDK/bin/gdb-armv7hl-meego-linux-gnueabi\" ({e96baaa2-744c-48a8-b279-da0d743e3b1e}) read from \"/home/oskar/.config/SailfishSDK/qtcreator/debuggers.xml\" dropped since it is not valid."
Unknown debugger id {e96baaa2-744c-48a8-b279-da0d743e3b1e} in kit SailfishOS-3.3.0.16-armv7hl (in Sailfish OS Build Engine)
Unknown debugger id {9c0dfdea-4113-4f4c-b9b6-39003546b868} in kit SailfishOS-3.3.0.16-i486 (in Sailfish OS Build Engine)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3779, resource id: 44040591, major code: 40 (TranslateCoords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3844, resource id: 44040587, major code: 40 (TranslateCoords), minor code: 0
Unexpected GDB stderr: "/opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu: /usr/lib/libncurses.so.5: version `NCURSES_5.3.20021019' not found (required by /opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu)\n/opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu: /usr/lib/libncurses.so.5: version `NCURSES_5.0.19991023' not found (required by /opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu)\n"
*** UNEXPECTED STATE TRANSITION:  Debugger::Internal::GdbEngine(0x304b8b0, name = "GdbEngine") "State changed from EngineSetupRequested(1) to InferiorShutdownRequested(13)"

But even though the issue exists, I have it:

[oskar@Fujitsu-Oskar:~] % ls -l /usr/lib/libncurses.so.5
lrwxrwxrwx 1 root root 25  9. May 15:32 /usr/lib/libncurses.so.5 -> /usr/lib/libncursesw.so.5
@bionade24 bionade24 changed the title SDK Debugger fail immedately SDK Debugger fails immedately May 9, 2020
@martyone
Copy link
Member

It works well with ncurses5-compat-libs 6.1-1, breaks with 6.2.-1 (latest). Could you please try with ncurses5-compat-libs built without this https://aur.archlinux.org/cgit/aur.git/commit/?h=ncurses5-compat-libs&id=2c73da756edd06a87f64e1dd9fe9184257d16057?

@bionade24
Copy link
Author

Output afterwards:

Color "darkBackground" is neither a named color nor a valid color
"DebuggerItem \"/opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu\" ({8f52f42d-e697-4aa8-9094-0dab8d9fc135}) read from \"/home/oskar/.config/SailfishSDK/qtcreator/debuggers.xml\" dropped since it is not valid."
"DebuggerItem \"/opt/SailfishSDK/bin/gdb-armv7hl-meego-linux-gnueabi\" ({32fbb16b-4d7c-483c-86ce-f07e9564094f}) read from \"/home/oskar/.config/SailfishSDK/qtcreator/debuggers.xml\" dropped since it is not valid."
Unknown debugger id {32fbb16b-4d7c-483c-86ce-f07e9564094f} in kit SailfishOS-3.3.0.16-armv7hl (in Sailfish OS Build Engine)
Unknown debugger id {8f52f42d-e697-4aa8-9094-0dab8d9fc135} in kit SailfishOS-3.3.0.16-i486 (in Sailfish OS Build Engine)
Unexpected GDB stderr: "/opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu: /usr/lib/libncurses.so.5: version `NCURSES_5.3.20021019' not found (required by /opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu)\n/opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu: /usr/lib/libncurses.so.5: version `NCURSES_5.0.19991023' not found (required by /opt/SailfishSDK/bin/gdb-i486-meego-linux-gnu)\n"
*** UNEXPECTED STATE TRANSITION:  Debugger::Internal::GdbEngine(0x3a14240, name = "GdbEngine") "State changed from EngineSetupRequested(1) to InferiorShutdownRequested(13)"

@martyone
Copy link
Member

hm, unless you want to investigate more, I suggest to downgrade to 6.1-1 as a workaround.

@bionade24
Copy link
Author

I already did this before posting the second output:

[oskar@Fujitsu-Oskar:~/workspace/aur-ci/packages] % pikaur -Qi ncurses5-compat-libs 
Name                     : ncurses5-compat-libs
Version                  : 6.1-1
Beschreibung             : System V Release 4.0 curses emulation library, ABI 5
Architektur              : x86_64
URL                      : http://invisible-island.net/ncurses/ncurses.html
Lizenzen                 : MIT
Gruppen                  : Nichts
Stellt bereit            : libtinfo5
Hängt ab von             : glibc  gcc-libs  sh
Optionale Abhängigkeiten : Nichts
Benötigt von             : Nichts
Optional für             : Nichts
In Konflikt mit          : libtinfo5
Ersetzt                  : Nichts
Installationsgröße       : 602,38 KiB
Packer                   : Oskar Roesler <oskar@oskar-roesler.de>
Erstellt am              : Mo 11 Mai 2020 11:55:27 CEST
Installiert am           : Mo 11 Mai 2020 11:57:17 CEST
Installationsgrund       : Ausdrücklich installiert
Installations-Skript     : Nein
Verifiziert durch        : Nichts

@martyone
Copy link
Member

I built the package myself from revision 4c625da1deb571feda59661b36af3eb7f68c19a9 and it works well.

Though it complains like in:

Unexpected GDB stderr: "/home/martin/SailfishOS/bin/gdb-i486-meego-linux-gnu: /usr/lib/libncurses.so.5: no version information available (required by /home/martin/SailfishOS/bin/gdb-i486-meego-linux-gnu)"

and that may make the difference. In your case unexpected version information is recorded, so it fails. In my case no version information is available, so it passes.

Here is the output of configure, maybe you will find something that makes the difference there https://pastebin.com/AQd5LLBN

@bionade24
Copy link
Author

I can't reproduce this on my current machine anymore, probably ncurses5-compat-libs 6.3.1 fixed the issue. Everything works now.

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