im icon indicating copy to clipboard operation
im copied to clipboard

0.5.0 crash at start on Ubuntu Touch (15.04 OTA 9.1)

Open ds2k5 opened this issue 8 years ago • 23 comments

Hello, i build loqui for Ubuntu Touch and installed it on my device. But it did not start, it crash at start.

Here is the way i did it:

Download Ubuntu Desktop (64bit) 15.04 (vivid)

If you use a Virutal Machine, harddisk should be 25 GB or bigger (if 2 GB RAM)

Install and Update (apt-get update && apt-get upgrade)

apt-get install bzr git qt4-qmake

$ bzr branch lp:ubuntu-sdk-api-15.04

$ sudo add-apt-repository ppa:ubuntu-sdk-team/tools-development -y

$ sudo apt-get update

$ sudo apt-get install ubuntu-sdk-ide ubuntu-sdk-api-tools

$ sudo apt-get install ubuntu-sdk-api-15.04-armhf ubuntu-sdk-api-15.04-i386

$ git clone https://github.com/loqui/im

$ touch ../platform/ubuntu-touch/.exculdes

Start Ubuntu-SDK and install needed packages

close sdk and reopen it

open file: ../platform/ubuntu-touch/loqui.ubuntuhtmlproject

Build

transfer the file: com.ubuntu.loqui.im.loqui_0.5.0:all.click to the device.

Install it:

pkcon install-local --allow-untrusted com.ubuntu.loqui.im.loqui_0.5.0:all.click

Sources: https://developer.ubuntu.com/en/blog/2015/09/01/next-generation-sdk/

ds2k5 avatar Mar 15 '16 09:03 ds2k5

First of all, we don't support Ubuntu Touch officially.

Do you have any log output from the application which show why it crashes?

2016-03-15 10:22 GMT+01:00 ds2k5 [email protected]:

Hello, i build loqui for Ubuntu Touch and installed it on my device. But it did not start, it crash at start.

Here is the way i did it:

Download Ubuntu Desktop (64bit) 15.04 (vivid)

If you use a Virutal Machine, harddisk should be 25 GB or bigger (if 2 GB RAM)

Install and Update (apt-get update && apt-get upgrade) apt-get install bzr git qt4-qmake

$ bzr branch lp:ubuntu-sdk-api-15.04

$ sudo add-apt-repository ppa:ubuntu-sdk-team/tools-development -y

$ sudo apt-get update

$ sudo apt-get install ubuntu-sdk-ide ubuntu-sdk-api-tools

$ sudo apt-get install ubuntu-sdk-api-15.04-armhf ubuntu-sdk-api-15.04-i386

$ git clone https://github.com/loqui/im

$ touch ../platform/ubuntu-touch/.exculdes

Start Ubuntu-SDK and install needed packages

close sdk and reopen it

open file: ../platform/ubuntu-touch/loqui.ubuntuhtmlproject

Build

transfer the file: com.ubuntu.loqui.im.loqui_0.5.0:all.click to the device.

Install it:

pkcon install-local --allow-untrusted com.ubuntu.loqui.im.loqui_0.5.0:all.click

Sources: https://developer.ubuntu.com/en/blog/2015/09/01/next-generation-sdk/

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/loqui/im/issues/977

TitanNano avatar Mar 15 '16 11:03 TitanNano

First of all, we don't support Ubuntu Touch officially.

ok thanks

Do you have any log output from the application which show why it crashes?

thats the problem, i did not found something do you have hint where i can found something ?

ds2k5 avatar Mar 15 '16 11:03 ds2k5

No unfortunately I don't have a ubntu touch device. Maybe you can try to run adb logcat since ubuntu touch is android based.

2016-03-15 12:53 GMT+01:00 ds2k5 [email protected]:

First of all, we don't support Ubuntu Touch officially.

ok thanks

Do you have any log output from the application which show why it crashes?

thats the problem, i did not found something do you have tip where i can found something ?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/loqui/im/issues/977#issuecomment-196785931

TitanNano avatar Mar 15 '16 12:03 TitanNano

i will search in the, i hope i find how to get a log / trace from the crashing app thanks

ds2k5 avatar Mar 15 '16 12:03 ds2k5

Hi, i made a new Project with Ubuntu-SDK and added the files from the src Dir. Now it start, but i think there is a Problem

Here a screenshot

ds2k5 avatar Mar 16 '16 06:03 ds2k5

yes, you need to use the files from the dist dir

TitanNano avatar Mar 16 '16 06:03 TitanNano

i had the files in, please see the source package i made

If i open the index.html file on the PC i see this only 1 sec or so, i can see the same as on the Ubuntu Phone Device if i open the "source code" i can see the hole code of index.html

If i use the index.html from platform/ubuntu-touch then i will see this

The Welcome Message, but not more

ds2k5 avatar Mar 16 '16 06:03 ds2k5

found that the file: src/style/loqui/index.scss should be named: index.css or is this wrong ?

ds2k5 avatar Mar 16 '16 08:03 ds2k5

it needs to be compiled into CSS. this stylesheet is written in SCSS.

2016-03-16 9:41 GMT+01:00 ds2k5 [email protected]:

found that the file: src/style/loqui/index.scss should be named: index.css or is this wrong ?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/loqui/im/issues/977#issuecomment-197213657

TitanNano avatar Mar 16 '16 08:03 TitanNano

hmm ok, if i rename from: index.scss to index.css i got the image from loqui as background image in firefox on PC. will try it on the Ubuntu Touch Device

ds2k5 avatar Mar 16 '16 08:03 ds2k5

yes but most rules won't work.

2016-03-16 9:44 GMT+01:00 ds2k5 [email protected]:

hmm ok, if i rename from: index.scss to index.css i got the image from loqui as background image

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/loqui/im/issues/977#issuecomment-197214307

TitanNano avatar Mar 16 '16 08:03 TitanNano

ok, thanks...

ds2k5 avatar Mar 16 '16 08:03 ds2k5

did following:

apt-get install ruby-sass

sass index.scss:index.css in ~/im/platform/ubuntu-touch/www/style/loqui

looks like the .js Scripts are not compatible with Ubuntu Touch/Phone

developer@touch:~/im/platform/ubuntu-touch/www$ webapp-container index.html pci id for fd 10: 80ee:beef, driver (null) libGL error: core dri or dri2 extension not found libGL error: failed to load driver: vboxvideo Invalid webapp webapp definition: homepage not found or fails predicate isString Could not open manifest file: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json" Invalid webapps manifest found in: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon" Started as a local application container. Empty path in webapps model search path update request Invalid webapp webapp definition: homepage not found or fails predicate isString Could not open manifest file: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json" Invalid webapps manifest found in: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon" QQmlExpression: Expression file:///usr/share/webbrowser-app/webcontainer/WebApp.qml:163:25 depends on non-NOTIFYable properties: unity::action::qml::ActionManager::globalContext Empty path in webapps model search path update request qml: Could not create ContentHub backend (does not appear to be installed) pci id for fd 41: 80ee:beef, driver (null) libGL error: core dri or dri2 extension not found libGL error: failed to load driver: vboxvideo OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please consider switching to userAgentOverrides instead qml: Loaded 3 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/ua-overrides-desktop.js qml: Could not create ContentHub backend (does not appear to be installed) qml: JS Uncaught SyntaxError: Unexpected token [ qml: JS Uncaught SyntaxError: Unexpected identifier qml: JS Uncaught ReferenceError: Blaze is not defined qml: JS Uncaught SyntaxError: Unexpected token [ qml: JS Uncaught ReferenceError: App is not defined qml: JS Uncaught SyntaxError: Unexpected token [ qml: JS Uncaught SyntaxError: Unexpected token [ qml: JS Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. qml: JS [l10n] #MucMembers is undefined. qml: JS [l10n] #MucInvite is undefined. qml: JS Uncaught ReferenceError: App is not defined

Here a picture of firefox with the open APP

Used the Code Version 0.5.2

ds2k5 avatar Mar 30 '16 06:03 ds2k5

please make sure your source is up to date. The Application should run on Firefox desktop (you won't be able to connect to whatsapp). Please run npm install and grunt (you need to install npm install -g grunt-cli), then launch the app from dist/firefoxos. The Ubuntu touch port doesn't work with the our latest build system, so I suggest you to restart the porting by unsing the firefoxos build.

If you have future problems with running the application on Firefox desktop post me some logs or screenshots and we can see whats the problem. After you are able to launch the app in firefox I think you can try to install it on your phone.

TitanNano avatar Mar 30 '16 06:03 TitanNano

Glad to see there's still an interest in porting this fantastic app for Ubuntu Touch. It would be a great incentive for people to use Ubuntu Touch. I'm hoping for a good XMPP client on the platform. Thank you guys!

TheFaico avatar May 27 '16 21:05 TheFaico

Its just a thought: Since you use Node.js to compile it for the different platforms; Could it be, that a working build needs to be compiled on the Ubuntu phone with Node.js? I've been trying to run Loqui on my touch device, same problems as @ds2k5 had them. The build Node.js created on my computer works perfectly there, but instantly crashes on my phone.

@ds2k5 : how and where did you add the src folder?

btw: i'm using 15.04 OTA-11

argon-radio avatar Jun 26 '16 10:06 argon-radio

Let me give you a hint to my pull request #1135. Only tested Whatsapp, but it's not working yet. If you can get experiences (good/bad) of the rest, please let me know.

nfsprodriver avatar Sep 06 '16 19:09 nfsprodriver

I'll upload a .click package to my fork...

nfsprodriver avatar Sep 06 '16 19:09 nfsprodriver

So, there's a .click package to download? I would like to test it, at least as XMPP client

TheFaico avatar Sep 20 '16 16:09 TheFaico

Yes, there is one at my fork, but it's an older one. I'll update it when there are good news about Whatsapp. If you want to build one for Ubuntu Touch yourself, follow the 'How to build' instructions from the wiki. Before creating the click-package, don't forget to remove the 'v' in the version from the manifest.json or it won't work...

nfsprodriver avatar Sep 21 '16 12:09 nfsprodriver

Thanks, nfsprodriver! I tried to build it yesterday, but I still don't understand very well the instructions, I'm not developer, just enthusiast :) I don't see your .click package, is it on https://github.com/nfsprodriver/im ? Also I heard whatsapp is working in some way https://github.com/loqui/im/issues/944#issuecomment-246810260 that's good news, anyway LoquiIM's future support for whatsapp is unknown, some day whatsapp Inc. could cut off it. Thanks!

TheFaico avatar Sep 21 '16 17:09 TheFaico

Hey, thanks for your hint! Yes, you can find my click package under your link in the releases fraction. I'll try your hint and will build a new click package when I have success.

nfsprodriver avatar Sep 21 '16 18:09 nfsprodriver

I installed the click package on my bq e4.5 ubuntu. https://github.com/nfsprodriver/im/releases/download/v0.5.8/com.ubuntu.loqui.im.loqui_0.5.8_all.click It starts correctly but I cannot configure my accounts xmpp as I did on FirefoxOS (Lg fx0). I tried with an account on suchat.org via tcp:suchat.org:5222 and http://bosh.loqui.im, it gives me error or rest in "connecting" and do nothing. Almost!

TheFaico avatar Sep 28 '16 20:09 TheFaico