Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Please fix/update the Notepadqq 1.4.8 ebuild maybe?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Sun Jun 03, 2018 7:38 am    Post subject: [SOLVED] Please fix/update the Notepadqq 1.4.8 ebuild maybe? Reply with quote

Hello,

When I install Notepadqq 1.4.8 through portage it crashes after being started with the error "Segmentation fault".
But when I follow the instructions here https://github.com/notepadqq/notepadqq#build-it-yourself (you have to emerge qtwebsockets additionally for it to work) and start it, then it runs just fine.
I don't know what is causing the program to crash when installed through portage.
Anybody experiencing the same issue?

Thx


Last edited by gorg86 on Tue Aug 07, 2018 10:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Sun Jun 03, 2018 8:18 am    Post subject: Reply with quote

I tried to install in my system and seems work without segfault.
You can post your emerge --info? Maybe some cflags that cause that?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Sun Jun 03, 2018 8:30 am    Post subject: Reply with quote

emerge --info:
https://pastebin.com/xCVS7XBB
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Sun Jun 03, 2018 9:25 am    Post subject: Reply with quote

cflags seems ok, at this point you should debugging program with gdb
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Sun Jun 03, 2018 8:35 pm    Post subject: Reply with quote

This is what I get:
gdb --args notepadqq
Code:
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/usr/bin/notepadqq": not in executable format: File format not recognized
(gdb) run
Starting program: 
No executable file specified.
Use the "file" or "exec-file" command.
(gdb)


I tried gdb with other programs and it works fine, just with notepadqq it says
Code:
"/usr/bin/notepadqq": not in executable format: File format not recognized


I can't find a build.log but this is being printed on the screen while emering notepadqq: https://pastebin.com/KRSa1268
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Jun 04, 2018 5:27 am    Post subject: Reply with quote

It's correct because notepadqq is a bash script, you should run with command notepadqq-bin (the real compiled executable)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Mon Jun 04, 2018 4:05 pm    Post subject: Reply with quote

lol ok, now I get this:
gdb --args /usr/lib64/notepadqq/notepadqq-bin
Code:
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib64/notepadqq/notepadqq-bin...done.
(gdb) run
Starting program: /usr/lib64/notepadqq/notepadqq-bin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe6dc2700 (LWP 8577)]
[New Thread 0x7fffdd4c3700 (LWP 8578)]
[New Thread 0x7fffdccc2700 (LWP 8579)]
[New Thread 0x7fffd7fff700 (LWP 8580)]
[New Thread 0x7fff8fffd700 (LWP 8581)]
[New Thread 0x7fff8f7fc700 (LWP 8582)]
[New Thread 0x7fff8effb700 (LWP 8583)]
[New Thread 0x7fff8e7fa700 (LWP 8584)]
[New Thread 0x7fff8dff9700 (LWP 8585)]
[New Thread 0x7fff8d7f8700 (LWP 8586)]
[New Thread 0x7fff8cff7700 (LWP 8587)]
[New Thread 0x7fff77fff700 (LWP 8588)]
[New Thread 0x7fff777fe700 (LWP 8589)]

Thread 1 "notepadqq-bin" received signal SIGSEGV, Segmentation fault.
0x00007ffff6642f8e in ?? () from /usr/lib64/libQt5WebKit.so.5


Code:
(gdb) bt
#0  0x00007ffff6642f8e in ?? () from /usr/lib64/libQt5WebKit.so.5
#1  0x00007ffff66441db in JSC::JSRopeString::resolveRope(JSC::ExecState*) const () from /usr/lib64/libQt5WebKit.so.5
#2  0x00007ffff634e923 in JSValueToStringCopy () from /usr/lib64/libQt5WebKit.so.5
#3  0x00007ffff5207b2d in ?? () from /usr/lib64/libQt5WebKit.so.5
#4  0x00007ffff5209d53 in ?? () from /usr/lib64/libQt5WebKit.so.5
#5  0x00007ffff520a628 in ?? () from /usr/lib64/libQt5WebKit.so.5
#6  0x00007ffff632f021 in ?? () from /usr/lib64/libQt5WebKit.so.5
#7  0x00007ffff65164ae in ?? () from /usr/lib64/libQt5WebKit.so.5
#8  0x00007ffff651e4d9 in ?? () from /usr/lib64/libQt5WebKit.so.5
#9  0x0000000000000005 in ?? ()
#10 0xaaaaaaaaaaaaaaab in ?? ()
#11 0x00007fffffffbca0 in ?? ()
#12 0x00007ffff664d615 in ?? () from /usr/lib64/libQt5WebKit.so.5
[...]


Maybe the error is somehow related to this: https://github.com/notepadqq/notepadqq/issues/496 or this https://github.com/notepadqq/notepadqq/issues/593
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Jun 04, 2018 4:48 pm    Post subject: Reply with quote

It's strange that there is need a qt patch to make notepadqq work.
What version notepadqq you installed?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Mon Jun 04, 2018 4:53 pm    Post subject: Reply with quote

1.4.8
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Jun 04, 2018 4:58 pm    Post subject: Reply with quote

Ok I don't know why in your system crash with segfault but you can give a chance to the patch..
Howto apply a user patch (the patch is for dev-qt/qtwebkit package)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Mon Jun 04, 2018 5:18 pm    Post subject: Reply with quote

Apparently they fixed the bug but portage downloads a source where it wasn't implemented yet. I just emerged notepadqq-9999 and it works.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Jun 04, 2018 5:23 pm    Post subject: Reply with quote

gorg86 wrote:
Apparently they fixed the bug but portage downloads a source where it wasn't implemented yet. I just emerged notepadqq-9999 and it works.

Yes isn't implemented for this you can use /etc/portage/patches for apply a patch.
Anyway is better use a new notepadqq version because is it that has a problem
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8932

PostPosted: Tue Jun 05, 2018 5:02 pm    Post subject: Reply with quote

gorg86 wrote:
Apparently they fixed the bug but portage downloads a source where it wasn't implemented yet. I just emerged notepadqq-9999 and it works.

1.4.8 is the latest release made available by upstream.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum