Closed Seiwer121 closed 1 year ago
Hey, what device and Ubuntu touch version are you using?
Probably related to #33 as I reported the same issue there: https://github.com/timsueberkrueb/webber/issues/33#issuecomment-658119639
@Vistaus Possible, but I'm not sure. Do you also see lines similar to this:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: false', /opt/rust/cargo/git/checkouts/qmetaobject-rs-b94b68bd9d03bea9/e892139/qmetaobject/src/qtdeclarative.rs:41:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
in the Webber log?
Redmi 7 device, OTA-14. As for the log, yes, this is Webber's log, and there is this line
@timsueberkrueb Sorry for my late reply. Here's the log and I do see some AppArmor errors:
Published using Logviewer for Ubuntu Touch
From file /home/phablet/.cache/upstart/application-click-webber.timsueberkrueb_webber_0.5.7.log:
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
Creating a QMirClientScreen now
QtWebEngine::initialize() called with QCoreApplication object already created and should be call before. This is depreciated and may fail in the future.
error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.1473\" (uid=32011 pid=10541 comm=\"webber --disable-gpu --disable-viz-display-composi\") interface=\"com.canonical.libertine.Service.Operations\" member=\"list\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=1698 comm=\"/usr/bin/python3 /usr/bin/libertined \")"
error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.1473\" (uid=32011 pid=10541 comm=\"webber --disable-gpu --disable-viz-display-composi\") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"running\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=1698 comm=\"/usr/bin/python3 /usr/bin/libertined \")"
lastError - no arguments?
error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.1473\" (uid=32011 pid=10541 comm=\"webber --disable-gpu --disable-viz-display-composi\") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"last_error\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=1698 comm=\"/usr/bin/python3 /usr/bin/libertined \")"
lastError - no arguments?
error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.1473\" (uid=32011 pid=10541 comm=\"webber --disable-gpu --disable-viz-display-composi\") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"result\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=1698 comm=\"/usr/bin/python3 /usr/bin/libertined \")"
lastError - no arguments?
QQmlExpression: Expression qrc:/qml/EssentialSettings.qml:124:41 depends on non-NOTIFYable properties:
AppModel::screenshotIconPath
qrc:/qml/AddPage.qml:298: TypeError: Property 'loadDefaults' of object Permissions(0x58a0aee3d0) is not a function
file:///usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Content/ContentPeerPicker13.qml:195: TypeError: Cannot read property 'peers' of null
qrc:/qml/CustomIconSelector.qml:38:17: Unable to assign [undefined] to QObject*
[PERFORMANCE]: Last frame took 48 ms to render.
[10541:10634:1205/164546.684792:ERROR:file_path_watcher_linux.cc(71)] Failed to read /proc/sys/fs/inotify/max_user_watches
[10541:10645:1205/164546.729563:ERROR:zygote_host_impl_linux.cc(259)] Failed to adjust OOM score of renderer with pid 10646: Permission denied (13)
[10541:10636:1205/164547.344455:ERROR:nss_util.cc(674)] Error initializing NSS with a persistent database (sql:/home/phablet/.pki/nssdb): NSS error code: -8126
[PERFORMANCE]: Last frame took 35 ms to render.
[PERFORMANCE]: Last frame took 71 ms to render.
QObject::startTimer: Timers cannot be started from another thread
Quick update: I now installed Ubuntu Touch on my Cosmo Communicator (as opposed to the Poco F1 I was using before) and Webber webapps still fail to start :(
@Vistaus meh :| Do all webapps (outside of Morph) fail to start as well or only those created by webber? If other webapps fail as well it's likely an AppArmor issue of the port. You could try to file an issue against the port in that case. If other webapps (outside of Morph) work, we have a chance to fix this in Webber.
@timsueberkrueb Other webapps work fine - only those created with Webber won't even start.
Can you give me an example (OpenStore link) for a webapp that works? Thanks!
Here are a few of the webapps that are working for me: https://open-store.io/app/youtube-web.mateo-salta https://open-store.io/app/skype.rubencarneiro https://open-store.io/app/imdb.aribk
For some reason, after today's system update from the UT Edge channel on my Cosmo Communicator, Webber finally started working! Or at least partly - only a few sites actually work. Most sites I tried open up a blank Webber window and then pass on the URL to Morph Browser. But a few sites do work within Webber. So we're getting closer to have a working Webber, but not close enough to be useable yet.
27 days later: situation is still the same. @timsueberkrueb Have you had the time to look into this yet? Most sites are unusable if you can't even access them because Morph opens instead.
Edit: I see #31 is related. Let's continue there as it might be a bit offtopic here.
Hey @Vistaus, sorry for being a bit unresponsive. I finally have some time to work on Webber again. I plan to look into this more closely next week. Unfortunately, it is quite hard to impossible for me to debug issues on devices I don't have. Also some device-specific issues (like the AppArmor things) are bugs in the Ubuntu touch images I cannot mitigate in Webber. Nevertheless, I will look into this one and write a comment with my thoughts next week. Sorry for the inconvenience!
No problem, I understand. Thanks for letting me know! π
And I also understand you not having the same device, but I'm here to answer any questions or try anything you throw at me to get this solved π
Btw, even though it's mostly solved now and it now seems mostly related to #31, there are still a few apps that crash immediately, no matter what patterns I throw at it. For example, buienradar.nl and web.skype.com
Interesting. Can you provide me with the Webber log, web app log, AppArmor log, and click package generated by Webber, as well as a screenshot of the configuration of the app in Webber for one such app that crashes for you? This will make it easier for me to look into it next week. Btw, this goes for anyone for whom some but not all Webber-generated apps crash. Thanks :)
If all of your web apps crash (regardless of whether they have been created using Webber or whether you have downloaded them from the OpenStore), it's most likely an AppArmor-related bug in your Ubuntu touch image that I cannot fix in Webber.
@timsueberkrueb Will post the requested stuff ASAP π
@Seiwer121 do you still experience this error on your phone? If so, could you send me the same information I requested from @Vistaus? Thanks!
Hey @Vistaus, did you find the time to test it, yet? You could also test the new release candidate if you like.
@timsueberkrueb I am so sorry I didn't find the time to post the requested stuff! And when I did have time, I forgot that I should have. Again: I'm so sorry! βΉ
I will absolutely give the RC a try today or, at the latest, tomorrow and report back. π
Btw, I'm back at the Poco F1 now and the older issue is still present there: all of the web apps crash.
@Seiwer121 do you still experience your problem with the new release candidate?
Even with the release candidate, this issue is still present on my Poco F1.
My Ubuntu Touch version is the latest build from the RC channel and this is a fresh install.
Could you provide the requested info, especially since only the Webapps created by Webber crash? That means we may have a chance to fix the problem in Webber.
cat ~/.cache/upstart/application-click-webber.timsueberkrueb_webber_0.6.0.log
ubuntu.com
webapp): cat ~/.cache/upstart/application-click-ubuntu-com.webber_ubuntu-com_1.0.0.log
ubuntu.com
webapp): .cache/webber.timsueberkrueb/click-build/Ubuntu.click
tail -f /var/log/syslog
in a console before attempting to start the webapp)Also please name me a few non-webber generated webapps that do not crash on your device. Thanks a lot!
Hey, I asked in the Poco F1 Telegram group @ubportsforpocof1
. One user there says they are using stable
and can successfully create a webapp for Wikipedia using Webber. Could you test if that works?
Sorry for my late reply. It doesn't work on stable either.
Here are the logs:
For some reason, the log of the webapp itself is not available. The click package is attached to this post. I used Duolingo a test in this case.
Also please name me a few non-webber generated webapps that do not crash on your device. Thanks a lot!
https://github.com/timsueberkrueb/webber/issues/40#issuecomment-860191693
Thanks, the click
package is missing, though, could you try to upload that again?
Seems like GitHub has an issue with the click file. I've now uploaded it here: https://ufile.io/ifze3m5r
Thanks! I've got good news: I can reproduce the issue with the click package you sent me. I will look into it in the coming week.
There's something weird going on here. I have created a .click
package on my device with the same options (download). Could you try if that works on your device?
There's something weird going on here. I have created a
.click
package on my device with the same options (download). Could you try if that works on your device?
Hmm, that one doesn't seem to install even. Using the graphical install method (opening the click package with OpenStore), it says that the click package is invalid. I tried again via cli to get some more output, which is the following:
phablet@ubuntu-phablet:~$ pkcon install-local --allow-untrusted ~/Downloads/Duolingo_Tim.click
Installing files [=========================]
Done [=========================]
Installing files [=========================]
Launching [=========================]
Done [=========================]
Fatal error: /home/phablet/Downloads/Duolingo_Tim.click failed to install.
Cannot install /home/phablet/Downloads/Duolingo_Tim.click: Signature verification error: debsig: findMember: unexpected end of package
phablet@ubuntu-phablet:~$
@Vistaus just a quick update: sorry for the delay; I haven't forgotten about it but didn't get to it yet. Will definitely attempt to find and fix this bug before the 0.6.0
release.
@timsueberkrueb No problem. Thanks for posting this update - I appreciate your hard work! π Looking forward to the 0.6.0 release (if a fix can be found).
After the last update you pushed through the store, I FINALLY got a few apps working on the Poco F1!!! Fingers crossed that they will keep working! π
(I will also re-test on the Cosmo ASAP)
UPDATE: a few of the apps I created are working on the Poco, BUT a few others are still crashing. Very, very strange.
Just moved to a Xiaomi Redmi 9 and the issue has popped up again. :(
Can we start looking into this issue again, please?
Too bad that this issue isn't looked into anymore. I'm happy for the people that have a working Webber. Wish I had tooβ¦
Hi @Vistaus, could you try if this click
package makes a difference: webber.timsueberkrueb_0.6.2_arm64.zip. Just a hunch.
Hi Tim, unfortunately, that package doesn't make any difference. :(
Here's the log file of Webber:
Okay, thanks, so just to reiterate (since it's been a while): The problem is that all Webber-created apps crash at launch? The Skype web app still works (https://open-store.io/app/skype.rubencarneiro)? It is almost identical to what Webber generates.
Yes, all Webber-created webapps crash at launch and the Skype web app still launches fine.
I created this Wikipedia app with Webber: Wikipedia.zip. Are you able to install it, and if so, does it run?
If it does work, please create an app for https://wikipedia.org
and send me the click
file located in ~/.cache/webber.timsueberkrueb/click-build
.
Strangely enough, Wikipedia works fine. Both your build as well as the one I just created. But that's the only one: other created webapps do not. I'll send you two as an example.
I added both click files to the following zip file:
This is such a weird problem. I can reproduce the problem if I install your click packages. However, as soon as I recreate them with my Webber installation, I can successfully install them, even though the packages are nearly identical. In particular, after I installed and uninstalled my DRGL package, I could successfully install your DRGL package.
Here is a DRGL webapp created using Webber on my device and I expect it to work for you as well (please verify): DRGL_Tim.zip.
Something really odd must be going on with the packages generated on your device.
It's strange why, but all applications made on Webber do not start and crash .... I took the log of Webber itself and posted it on Pastbin. I think you are interested in looking at these strange errors and you will fix Webber
Link: http://paste.ubuntu.com/p/2kR9843FBB/