Re: [SailfishDevel] Warning: File `Makefile' has modification time 0.51 s in the future

2015-01-06 Thread Chris Walker
On Mon, 14 Apr 2014 15:22:39 +0100
David Greaves  wrote:

> On 14/04/14 14:49, Chris Walker wrote:
[snip]
> > Physician heal thyself!
> > 
> > I installed the ntp client and it now picks up network time. I'm
> > assuming therefore that there is some time 'slip' between the host
> > machine and VBox.
> 
> This works but is suboptimal.
> 
> Make sure
>   /usr/bin/VBoxService -f
> is running in the guest; it manages time sync.
> 
> Also https://www.virtualbox.org/manual/ch09.html
> 
> Finally check your host is running the correct services and has all
> the right modules built.
> 
> David

I've just done the latest SDK update and this problem has resurfaced.

David suggested that I check the service is running in the guest.
Having just installed them, surely they should be running by default,
shouldn't they?

Note that I haven't reinstalled the ntp client on the guest machines,
they're still as installed.

If I run the VBoxService command I get this error which explains the
cause of the problem :-
 /usr/bin/VBoxService -f
VBoxService 4.2.12_OSE r84980 (verbosity: 0) linux.x86 (Dec 10 2014
20:45:30) release log 00:00:00.000146 main Log opened
2015-01-06T16:49:56.390798000Z 00:00:00.000299 main OS Product:
Linux 00:00:00.000350 main OS Release: 3.6.11-10.1.7.jolla
00:00:00.000391 main OS Version: #1 SMP PREEMPT Wed Dec 10 19:12:11
UTC 2014 00:00:00.000421 main OS Service Pack: #1 SMP PREEMPT Wed
Dec 10 19:12:11 UTC 2014 00:00:00.000450 main
Executable: /usr/bin/VBoxService 00:00:00.000452 main Process ID:
984 00:00:00.000452 main Package type: LINUX_32BITS_GENERIC (OSE)
00:00:00.003991 main 4.2.12_OSE r84980 started. Verbose level = 0
00:00:00.004647 main Service 'memballoon' was disabled because of
missing functionality 00:00:00.005169 timesync Error:
VBoxServiceTimeSyncSet: RTTimeSet(1 420 562 998 673 016 000 ns) failed:
VERR_ACCESS_DENIED 00:00:10.005461 timesync Error:
VBoxServiceTimeSyncSet: RTTimeSet(1 420 563 008 668 012 000 ns) failed:
VERR_ACCESS_DENIED 00:00:20.005630 timesync Error:
VBoxServiceTimeSyncSet: RTTimeSet(1 420 563 018 663 012 000 ns) failed:
VERR_ACCESS_DENIED

At the time I captured this error, Qt Creator wasn't running, only the
emulator and build machine.

So rather than me tinkering and *possibly* managing to fix this thing,
what is the *correct* way to do it?
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] Next meeting on SailfishOS, open source, collaboration: 7-January 2015 @ 15:00 UTC

2015-01-06 Thread Iekku Pylkka
Ahoy!

Thanks to everyone who responded on
https://together.jolla.com/question/54157/sailfishos-open-source-collaboration-meeting-planning/

Here's the invitation/agenda for tomorrow's meeting:
Date: 7 January 2015
Time: 15:00 UTC, for your local time: http://bit.ly/1Azu9qe
Duration: 60 minutes ?
Chair: Iekku Pylkkä (iekku)
Location: #mer-meeting on Freenode IRC

Those without an IRC client can access it here:
http://webchat.freenode.net?channels=mer-meeting

Current proposed topics:
* Intro (5 min)
* SIP integration into closed source parts of SailfishOS -Thomas B. Rücker (20 
min?)
* Nemo / Mer / Sailfish at FOSDEM 2015 -Thomas B. Rücker (20 min)
* General discussions - everyone (10 min)
* Wrap up and next meeting (5 min)

Please familiarize yourself with the topics before the meeting, as well
as the common Meetbot commands https://wiki.debian.org/MeetBot (it's
used for meeting management and logging)

Thanks and see you tomorrow!

Br,
Iekku
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] [bug] Silica ComboBox.qml - can't set currentIndex after initialization

2015-01-06 Thread Thomas Amler

I'm using this workaround:

Component.onCompleted: {
listid = parseInt(DB.getTaskProperty(taskid, "ListID"))
DB.readLists()
listLocatedIn.currentIndex = listindex
listLocatedIn.currentItem = listLocatedIn.menu.children[listindex]
}

Am 05.01.2015 um 11:40 schrieb Andrey Kozhevnikov:
yeah, i'm using _updating = false in my application also. This is the 
best workaround i found.


29.12.2014 19:45, ok1...@centrum.cz пишет:

Hi,

I've found a bug in ComboBox.qml used in Jolla phone. I wrote an 
application using pyotherside. During initialization, it populates 
combobox and sets the currentIndex to saved value. The problem is, 
that setting the currentIndex does nothing.


ComboBox.qml uses weird timer to delay some tasks. When you change 
currentIndex before that timer is triggered, it ignores the change.


Connections {
 target: comboBox.menu ? comboBox.menu._contentColumn : null
 onChildrenChanged: {
 // delay the reload in case there are more children changes 
to come

 if (!updateCurrentTimer.running) {
 _updating = true
 updateCurrentTimer.start()
 }
 }
}

VS.

onCurrentIndexChanged: {
 _currentIndexSet = true
 if (_completed && !_updating) {
 _updating = true
 _updateCurrent(currentIndex, null)
 _updating = false
 }
}

My application does something like:

function foo(result) {
   for(var i=0; iWhey I force the _updating to 'false', it works. Also if I set the 
correntIndex in a timer some time later, it works.


I've tested following workaround:

onCurrentIndexChanged: {
 _currentIndexSet = true
 if (_completed) {
   if (updateCurrentTimer.running) {
 var save_currentIndex = currentIndex;
 updateCurrentTimer.stop()
 updateCurrentTimer.onTriggered()
 currentIndex = save_currentIndex;
   }
   if (!_updating) {
 _updating = true
 _updateCurrent(currentIndex, null)
 _updating = false
   }
 }
}

But it still seems odd to me to use a timer in in a combobox.

Whole reproducer: http://fpaste.org/164044/59940141/
Code causing this problem: http://fpaste.org/163881/97171141/
Tested workaround: http://fpaste.org/164045/85997614/


Michal
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org