timsueberkrueb / webber

Making webapps superfluous since 2019
https://open-store.io/app/webber.timsueberkrueb
Other
14 stars 9 forks source link

All applications created on Webber do not start and crash #40

Closed Seiwer121 closed 1 year ago

Seiwer121 commented 3 years ago

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/

timsueberkrueb commented 3 years ago

Hey, what device and Ubuntu touch version are you using?

Vistaus commented 3 years ago

Probably related to #33 as I reported the same issue there: https://github.com/timsueberkrueb/webber/issues/33#issuecomment-658119639

timsueberkrueb commented 3 years ago

@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?

Seiwer121 commented 3 years ago

Redmi 7 device, OTA-14. As for the log, yes, this is Webber's log, and there is this line

Vistaus commented 3 years ago

@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
Vistaus commented 3 years ago

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 :(

timsueberkrueb commented 3 years ago

@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.

Vistaus commented 3 years ago

@timsueberkrueb Other webapps work fine - only those created with Webber won't even start.

timsueberkrueb commented 3 years ago

Can you give me an example (OpenStore link) for a webapp that works? Thanks!

Vistaus commented 3 years ago

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

Vistaus commented 3 years ago

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.

Vistaus commented 3 years ago

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.

timsueberkrueb commented 3 years ago

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!

Vistaus commented 3 years ago

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 πŸ™‚

Vistaus commented 3 years ago

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

timsueberkrueb commented 3 years ago

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.

Vistaus commented 3 years ago

@timsueberkrueb Will post the requested stuff ASAP πŸ™‚

timsueberkrueb commented 3 years ago

@Seiwer121 do you still experience this error on your phone? If so, could you send me the same information I requested from @Vistaus? Thanks!

timsueberkrueb commented 2 years ago

Hey @Vistaus, did you find the time to test it, yet? You could also test the new release candidate if you like.

Vistaus commented 2 years ago

@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.

timsueberkrueb commented 2 years ago

@Seiwer121 do you still experience your problem with the new release candidate?

Vistaus commented 2 years ago

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.

timsueberkrueb commented 2 years ago

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.

timsueberkrueb commented 2 years ago
timsueberkrueb commented 2 years ago

Also please name me a few non-webber generated webapps that do not crash on your device. Thanks a lot!

timsueberkrueb commented 2 years ago

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?

Vistaus commented 2 years ago

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.

Vistaus commented 2 years ago

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

timsueberkrueb commented 2 years ago

Thanks, the click package is missing, though, could you try to upload that again?

Vistaus commented 2 years ago

Seems like GitHub has an issue with the click file. I've now uploaded it here: https://ufile.io/ifze3m5r

timsueberkrueb commented 2 years ago

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.

timsueberkrueb commented 2 years ago

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?

Vistaus commented 2 years ago

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:~$ 
timsueberkrueb commented 2 years ago

@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.

Vistaus commented 2 years ago

@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).

Vistaus commented 2 years ago

0bea12eb-dacf-402e-b351-cdb30648c354

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)

Vistaus commented 2 years ago

UPDATE: a few of the apps I created are working on the Poco, BUT a few others are still crashing. Very, very strange.

Vistaus commented 2 years ago

Just moved to a Xiaomi Redmi 9 and the issue has popped up again. :(

Vistaus commented 1 year ago

Can we start looking into this issue again, please?

Vistaus commented 1 year ago

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…

timsueberkrueb commented 1 year ago

Hi @Vistaus, could you try if this click package makes a difference: webber.timsueberkrueb_0.6.2_arm64.zip. Just a hunch.

Vistaus commented 1 year ago

Hi Tim, unfortunately, that package doesn't make any difference. :(

Vistaus commented 1 year ago

Here's the log file of Webber:

application-click-webber.timsueberkrueb_webber_0.6.2.log

timsueberkrueb commented 1 year ago

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.

Vistaus commented 1 year ago

Yes, all Webber-created webapps crash at launch and the Skype web app still launches fine.

timsueberkrueb commented 1 year ago

I created this Wikipedia app with Webber: Wikipedia.zip. Are you able to install it, and if so, does it run?

timsueberkrueb commented 1 year ago

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.

Vistaus commented 1 year ago

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.

Vistaus commented 1 year ago

I added both click files to the following zip file:

webapps.zip

timsueberkrueb commented 1 year ago

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.