maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] QML Browser - Web browser written using Qt Components Hildon (https://talk.maemo.org/showthread.php?t=93508)

marxian 2014-07-28 20:57

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by pythoneye2 (Post 1434121)
I tried to benchmark via sunspider 1.0.2 , but it fails at 4 or 3 with:
QNetworkReplyImpl::_q_startOperation was called more than once

You can ignore that output. For some reason, QNetworkReplyImplPrivate::_q_startOperation() is called twice when the first network request is made using QNetworkAccessManager. The function returns immediately in this case, so no harm is done:

Code:

void QNetworkReplyImplPrivate::_q_startOperation()
{
    // ensure this function is only being called once
    if (state == Working) {
        qDebug("QNetworkReplyImpl::_q_startOperation was called more than once");
        return;
    }
    state = Working;

    // note: if that method is called directly, it cannot happen that the backend is 0,
    // because we just checked via a qobject_cast that we got a http backend (see
    // QNetworkReplyImplPrivate::setup())
    if (!backend) {
        error(QNetworkReplyImpl::ProtocolUnknownError,
              QCoreApplication::translate("QNetworkReply", "Protocol \"%1\" is unknown").arg(url.scheme())); // not really true!;
        finished();
        return;
    }

#ifndef QT_NO_BEARERMANAGEMENT
    if (!backend->start()) {
        // backend failed to start because the session state is not Connected.
        // QNetworkAccessManager will call reply->backend->start() again for us when the session
        // state changes.
        state = WaitingForSession;

        QNetworkSession *session = manager->d_func()->networkSession;

        if (session) {
            Q_Q(QNetworkReplyImpl);

            QObject::connect(session, SIGNAL(error(QNetworkSession::SessionError)),
                            q, SLOT(_q_networkSessionFailed()));

            if (!session->isOpen())
                session->open();
        } else {
            qWarning("Backend is waiting for QNetworkSession to connect, but there is none!");
        }

        return;
    }
#endif

    if (state != Finished) {
        if (operation == QNetworkAccessManager::GetOperation)
            pendingNotifications.append(NotifyDownstreamReadyWrite);

        handleNotifications();
    }
}


panjgoori 2014-07-29 00:56

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
tried it on my N900. Good efforts marxian. like all your other apps this one is also amazing. One question when loading pages why it triggers 100% cpu usage ? and when its done loading CPU usage goes down again. Bug or its like this ?

jessi3k3 2014-07-29 01:26

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by pythoneye2 (Post 1434121)
Great work!
I installed via apt-get and got
sh: can't create /home/user/.config/QMLBrowser searchengines.conf: Permission denied
too, i created the file and after that reinstalling worked.

I tried to benchmark via sunspider 1.0.2 , but it fails at 4 or 3 with:
QNetworkReplyImpl::_q_startOperation was called more than once

anyone has some results or the same error?

Mine just straight out crashes the tab. Is that what yours does too?

ivgalvez 2014-07-29 14:47

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
There's a small issue with the package installation:

Code:

...
-sh: can't create /home/user/.config/QMLBrowser/searchengines.conf:
Permission denied
...

The folder .config/QMLBrowser belongs to root and the file tries to be created as user.

marxian 2014-07-29 15:06

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by ivgalvez (Post 1434207)
There's a small issue with the package installation:

Code:

...
-sh: can't create /home/user/.config/QMLBrowser/searchengines.conf:
Permission denied
...

The folder .config/QMLBrowser belongs to root and the file tries to be created as user.

Yes, I see the problem now. There are two image files installed to /home/user/.config/QMLBrowser. Therefore the directory is created as root before the postinst script is run. I will fix this for the next release. :)

marxian 2014-07-29 15:19

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by panjgoori (Post 1434157)
tried it on my N900. Good efforts marxian. like all your other apps this one is also amazing. One question when loading pages why it triggers 100% cpu usage ? and when its done loading CPU usage goes down again. Bug or its like this ?

CPU usage will increase during loading, because that's when there is the most activity. How many cycles are used will depend on the page that is being loaded. It should not get anywhere near 100% when browsing TMO or similar.

pythoneye2 2014-07-29 15:29

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by jessi3k3 (Post 1434158)
Mine just straight out crashes the tab. Is that what yours does too?

Yes. After it "crashes" the sunspider tab, im back on an empty start tab.

Anyway javascript performance seems to be much better than stock, because google maps is useable in browser now :)

nokiabot 2014-07-29 16:37

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Intregating qdl as download manager cutetube as video player modrana as adress opener etc via a long click or open with dailog should be good as they are incredibly good apps which serve their purpose well also it should not hamper perfomance ?:)
btw it is evolving as a nice microb replacement :)

marxian 2014-07-29 16:52

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by nokiabot (Post 1434219)
Intregating qdl as download manager cutetube as video player modrana as adress opener etc via a long click or open with dailog should be good as they are incredibly good apps which serve their purpose well also it should not hamper perfomance ?:)
btw it is evolving as a nice microb replacement :)

You can use those applications to handle appropriate URLs by adding custom URL handlers. :) At the moment the handlers do not appear in the context menu, so the handler is only called if you click the link. Adding handlers to the context menu is planned for a future release.

Example handler to display YouTube videos in cuteTube:

Code:

[cuteTube]
regExp=(http(s|)://(www.|m.|)youtube.com/(v/|.+)(v=|list=|)|http://youtu.be/)
command=dbus-send --type=method_call --dest=com.maemo.cuteTube / com.maemo.cuteTube.display string:%URL%


nokiabot 2014-07-29 17:15

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
[QUOTE=marxian;1434222]You can use those applications to handle appropriate URLs by adding custom URL handlers. :) At the moment the handlers do not appear in the context menu, so the handler is only called if you click the link. Adding handlers to the context menu is planned for a future release.
Example handler to display YouTube videos in cuteTube:
yeah yeah ! carry on finally it seems like n900 could live a bit more:)


All times are GMT. The time now is 15:36.

vBulletin® Version 3.8.8