<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=DE link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Ankur,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m facing the exact same error when running Subsurface.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The sandbox error can be avoided by creating a Shell script to start the application, like this:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#!/bin/bash</p><p class=MsoNormal>export QTWEBENGINE_DISABLE_SANDBOX=1 && subsurface</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The manifest is hosted here: <a href="https://github.com/Alexander-Wilms/flatpak-manifests/blob/master/org.subsurface_divelog.subsurface.json">https://github.com/Alexander-Wilms/flatpak-manifests/blob/master/org.subsurface_divelog.subsurface.json</a></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The error udev_loader.cc requires the QtWebEngine module in the KDE Sdk manifest to be patched so it builds without udev. I tried adding this patch to the module, but the build failed</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--- ./src/core/config/linux.pri</p><p class=MsoNormal>+++ ./src/core/config/linux.pri</p><p class=MsoNormal>@@ -3,6 +3,7 @@</p><p class=MsoNormal> QT_FOR_CONFIG += gui-private webengine-private</p><p class=MsoNormal> </p><p class=MsoNormal> gn_args += \</p><p class=MsoNormal>+ use_udev=false \</p><p class=MsoNormal> use_cups=false \</p><p class=MsoNormal> use_gconf=false \</p><p class=MsoNormal> use_gio=false \</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Cheers,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Alex</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>Von: </b><a href="mailto:sanjay.ankur@gmail.com">Ankur Sinha</a><br><b>Gesendet: </b>Samstag, 24. Juni 2017 01:59<br><b>An: </b><a href="mailto:flatpak@lists.freedesktop.org">flatpak@lists.freedesktop.org</a><br><b>Betreff: </b>Re: Help building a flatpak for qutebrowser</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On Fri, 2017-06-23 at 11:47 +0100, Emmanuele Bassi wrote:</p><p class=MsoNormal>> Which version of Flatpak are you using? With 0.8.x I've noticed that</p><p class=MsoNormal>> Python modules installed via setuptools' setup.py are generally</p><p class=MsoNormal>> broken</p><p class=MsoNormal>> by the inclusion in the repo.</p><p class=MsoNormal>> </p><p class=MsoNormal>> You should either update Flatpak to the 0.9 release, or you should</p><p class=MsoNormal>> use</p><p class=MsoNormal>> `pip install .` instead of `python ./setup.py`.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for this - using `pip` to build all the python bits worked. I'm</p><p class=MsoNormal>building on F26 here, so it's flatpak-0.9.5-1.fc26.x86_64</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now, it builds, installs, but crashes on running :D</p><p class=MsoNormal>Here's the updated manifest, and then the error:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>https://github.com/sanjayankur31/qutebrowser/blob/flatpak/qutebrowser.json</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> [asinha@ankur flatpaks]$ flatpak run org.qutebrowser.desktop</p><p class=MsoNormal>> Gtk-Message: Failed to load module "pk-gtk-module"</p><p class=MsoNormal>> Gtk-Message: Failed to load module "canberra-gtk-module"</p><p class=MsoNormal>> Gtk-Message: Failed to load module "pk-gtk-module"</p><p class=MsoNormal>> Gtk-Message: Failed to load module "canberra-gtk-module"</p><p class=MsoNormal>> libGL error: MESA-LOADER: failed to retrieve device information</p><p class=MsoNormal>> libGL error: Version 4 or later of flush extension not found</p><p class=MsoNormal>> libGL error: failed to load driver: i915</p><p class=MsoNormal>> libGL error: failed to open drm device: No such file or directory</p><p class=MsoNormal>> libGL error: failed to load driver: i965</p><p class=MsoNormal>> 00:49:11 WARNING: WebEngine compiled with X11 support, however qpa backend is not xcb. This may fail.</p><p class=MsoNormal>> File "/app/bin/qutebrowser", line 9, in <module></p><p class=MsoNormal>> load_entry_point('qutebrowser==0.10.1', 'gui_scripts', 'qutebrowser')()</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/qutebrowser.py", line 178, in main</p><p class=MsoNormal>> return app.run(args)</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 112, in run</p><p class=MsoNormal>> init(args, crash_handler)</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 138, in init</p><p class=MsoNormal>> _init_modules(args, crash_handler)</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 431, in _init_modules</p><p class=MsoNormal>> crash_handler.handle_segfault()</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashsignal.py", line 87, in handle_segfault</p><p class=MsoNormal>> self._args.debug, data)</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 100, in get_fatal_crash_dialog</p><p class=MsoNormal>> return FatalCrashDialog(debug, data)</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 498, in __init__</p><p class=MsoNormal>> self._set_crash_info()</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 270, in _set_crash_info</p><p class=MsoNormal>> self._gather_crash_info()</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 536, in _gather_crash_info</p><p class=MsoNormal>> super()._gather_crash_info()</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 254, in _gather_crash_info</p><p class=MsoNormal>> self._crash_info.append(("Version info", version.version()))</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/version.py", line 316, in version</p><p class=MsoNormal>> lines.append("Backend: {}".format(_backend()))</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/version.py", line 306, in _backend</p><p class=MsoNormal>> return 'QtWebEngine (Chromium {})'.format(_chromium_version())</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/version.py", line 288, in _chromium_version</p><p class=MsoNormal>> profile = QWebEngineProfile()</p><p class=MsoNormal>> File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/log.py", line 442, in qt_message_handler</p><p class=MsoNormal>> stack = ''.join(traceback.format_stack())</p><p class=MsoNormal>> </p><p class=MsoNormal>> [2:2:0624/004911.080947:INFO:zygote_host_impl_linux.cc(107)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.</p><p class=MsoNormal>> [2:2:0624/004911.252627:WARNING:audio_manager.cc(317)] Multiple instances of AudioManager detected</p><p class=MsoNormal>> [2:2:0624/004911.252672:WARNING:audio_manager.cc(278)] Multiple instances of AudioManager detected</p><p class=MsoNormal>> [2:21:0624/004911.255230:FATAL:udev_loader.cc(38)] Check failed: false.</p><p class=MsoNormal>> #0 0x7f976854d499 <unknown></p><p class=MsoNormal>> #1 0x7f97685859dd <unknown></p><p class=MsoNormal>> #2 0x7f9766893e68 <unknown></p><p class=MsoNormal>> #3 0x7f976688ff90 <unknown></p><p class=MsoNormal>> #4 0x7f9766891975 <unknown></p><p class=MsoNormal>> #5 0x7f976a711536 <unknown></p><p class=MsoNormal>> #6 0x7f976a7131f4 <unknown></p><p class=MsoNormal>> #7 0x7f976a712e7c <unknown></p><p class=MsoNormal>> #8 0x7f976a71276b <unknown></p><p class=MsoNormal>> #9 0x7f976a7123d6 <unknown></p><p class=MsoNormal>> #10 0x7f97686aabb1 <unknown></p><p class=MsoNormal>> #11 0x7f9768752282 <unknown></p><p class=MsoNormal>> #12 0x7f97685a829a <unknown></p><p class=MsoNormal>> #13 0x7f97685a83f8 <unknown></p><p class=MsoNormal>> #14 0x7f97685a88cb <unknown></p><p class=MsoNormal>> #15 0x7f97685c7b3e <unknown></p><p class=MsoNormal>> #16 0x7f97685a7e97 <unknown></p><p class=MsoNormal>> #17 0x7f97686405f0 <unknown></p><p class=MsoNormal>> #18 0x7f976869d5d5 <unknown></p><p class=MsoNormal>> #19 0x7f9766b2703f <unknown></p><p class=MsoNormal>> #20 0x7f9766b27358 <unknown></p><p class=MsoNormal>> #21 0x7f976869de3d <unknown></p><p class=MsoNormal>> #22 0x7f97686869ef <unknown></p><p class=MsoNormal>> #23 0x0032ada073f4 <unknown></p><p class=MsoNormal>> #24 0x0032ad2e827f <unknown></p><p class=MsoNormal>> </p><p class=MsoNormal>> [asinha@ankur flatpaks]$</p><p class=MsoNormal>> </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>-- </p><p class=MsoNormal>Thanks,</p><p class=MsoNormal>Regards,</p><p class=MsoNormal>Ankur Sinha "FranciscoD"</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>https://fedoraproject.org/wiki/User:Ankursinha</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>