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

crashes on page with emoji in title #2306

Closed
samuelallan72 opened this issue Feb 9, 2017 · 10 comments
Closed

crashes on page with emoji in title #2306

samuelallan72 opened this issue Feb 9, 2017 · 10 comments

Comments

@samuelallan72
Copy link

samuelallan72 commented Feb 9, 2017

When I open a page containing a unicode emoji in the title element, such as this:

<html>
  <head>
    <title>🕴️</title>
  </head>
  <body>
    <p>
      Test page with a unicode emoji in the title.
    </p>
  </body>
</html>

I get weird behaviour depending on where/how I open qutebrowser.

qutebrowser version info

qutebrowser v0.9.1
Git commit: v0.9.0-220-g038a517c5 (2017-02-08 23:46:37 +0100)
Backend: QtWebKit

CPython: 3.6.0
Qt: 5.8.0
PyQt: 5.7.1

sip: 4.19
colorama: 0.3.7
pypeg2: 2.15
jinja2: 2.9.5
pygments: 2.2.0
yaml: 3.12
cssutils: 1.0.1 $Id$
typing: yes
PyQt5.QtWebEngineWidgets: yes
pdf.js: 1.6.210 (/usr/share/pdf.js/build/pdf.js)
Webkit: 538.1
SSL: OpenSSL 1.0.2k  26 Jan 2017

Style: Qt5CTProxyStyle
Platform: Linux-4.9.8-1-ARCH-x86_64-with-arch, 64bit
Frozen: False
Imported from /usr/lib/python3.6/site-packages/qutebrowser
OS Version: 

--- /etc/lsb-release ---
LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"

--- /etc/os-release ---
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux

Paths:
config: /home/samuel/.config/qutebrowser
data: /home/samuel/.local/share/qutebrowser
system_data: /home/samuel/.local/share/qutebrowser
cache: /home/samuel/.cache/qutebrowser
download: /home/samuel/Downloads
runtime: /run/user/7000/qutebrowser
@The-Compiler
Copy link
Member

Can you try with e.g. QupZilla please?

@samuelallan72
Copy link
Author

Aha, same issue. http://paste.the-compiler.org/view/186f1722

Also probably related - CopyQ also crashes now after copying some emoji into the clipboard.

@The-Compiler
Copy link
Member

The-Compiler commented Feb 18, 2017

This is interesting... how about this?

import sys
from PyQt5.QtWidgets import QApplication, QLabel

app = QApplication(sys.argv)
label = QLabel(text='a🕴️b')
label.show()
app.exec_()

@samuelallan72
Copy link
Author

Yep, that segfaults instantly. Interestingly enough, now qutebrowser doesn't crash, but simply shows a missing glyph box instead of the emoji...

@The-Compiler
Copy link
Member

Okay, this definitely looks like a Qt bug then - I don't have the time to track those down too I'm afraid, too busy with qutebrowser bugs 😉

Can you please open an issue in the Qt bugtracker with that example and stacktrace and link it here though?

@samuelallan72
Copy link
Author

QT bug report: https://bugreports.qt.io/browse/QTBUG-59022

@The-Compiler
Copy link
Member

Thank you! Closing this then.

@The-Compiler
Copy link
Member

I wonder whether the fix for QTBUG-64239 also fixes this. It's part of Qt 5.9.3, which was released today. @swalladge can you check whether you can still reproduce this now, and then re-check as soon as Arch has Qt 5.9.3?

@samuelallan72
Copy link
Author

Can confirm, segfault still happens in 5.9.2. I'll let you know regarding 5.9.3 as soon as I get it installed.

@samuelallan72
Copy link
Author

@The-Compiler it renders perfectly with no segfaults with 5.9.3! 👍

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