maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   liqbase - call for assistance (https://talk.maemo.org/showthread.php?t=23854)

gregorovius 2008-10-09 13:56

Re: liqbase - call for assistance
 
Quote:

Originally Posted by lcuk (Post 230690)
gregorovius, I spent a long time trying to work around needing performance mode.
However in the end I have accepted it has to stay.

The problem is that I have optimized the software so much that when rendering a screen of text the CPU thinks it has nothing important to do (it is under 40% utilization) and so slows down.

I can fix this natively by rendering the whole page multiple times, but that is more wasteful than simply using performance mode.

I leave my cpu in performance and have not had any noticable power drains I continue to be able to run all day long and as far as I can gather the cpu still has wait states and sleep time, and the peripherals are not effected by this setting in any way, so it doesnt really matter.
Obviously feedback on this would be important.

I don't mind having to run liqbase in performance mode, but I have no need for it while I'm not running it. So maybe a setting to automatically turn on performance mode at startup and return to default on exit?

lcuk 2008-10-09 14:10

Re: liqbase - call for assistance
 
I considered this when I first wrote the application and attempted to implement it.
However what is default?
Do I return the mode to whatever it was when I started running the application?
Do I return it to a fixed "ondemand" setting?
What happens if I cannot change it back?
What happens if a different piece of software changes the default outside of liqbase?
What happens if liqbase crashes?

How doesthe user know what mode it will be in depending upon what situation hes in.
You are considering the performance setting, but I have found myself setting to "powersave" prior to closing and locking my device - I want to ensure my battery lasts maximum possible duration and want it to be left afterwards.

A lot more questions and complications arise than simply giving the option to revert it which is why I left the setting as open as possible.

I understand the desire to return to some setting and if consensus agrees will put in place a "try to return to 'XXXX' when closing" option somewhere in the system.



As an aside, for a long time I ran a modified version of acmonitor which would set the ondemand/performance automatically when the nokia detected Charging/Battery status. this worked better than anything I could come up with for a single app.

qole 2008-10-09 16:11

Re: liqbase - call for assistance
 
Thanks for pointing out performance mode, lcuk.

OpenOffice is actually quite usable in performance mode!

lcuk 2008-10-09 16:12

Re: liqbase - call for assistance
 
Lots of applications benefit from it.
It gives a general snappyness that is much needed :)

Have you found the bacon yet?

qwerty12 2008-10-09 16:15

Re: liqbase - call for assistance
 
Well, a quick grep in the source code tells me where I would find the bacon but I don't want to find it :P

qole 2008-10-09 16:23

Re: liqbase - call for assistance
 
Yes, and I would love to leave the bacon-mode running... it makes a nice clock. But the screen goes dark just after the "more bacon" message, and when I tap the screen, it goes back to the menu... sigh...

gregorovius 2008-10-09 23:51

Re: liqbase - call for assistance
 
Well, if you put 2 options: 'on startup, switch to X mode' and 'on exit, switch to Y mode' (by default, probably set performance on startup and return to the default, ondemand, on exit). I think that should cover most use cases... if it crashes now it leaves you running in the state it was, so it wouldn't be any different from that. Can anyone think of a counter-example? Does any other piece of software attempt to change this as well?

Cheers.

lcuk 2008-10-10 00:39

Re: liqbase - call for assistance
 
gregorovius, only the custom version of acmonitor I have here does this I think.

I extended it to forcefully switch between.
I suppose though with your options I could simply choose "leave it as it is" and have it remain calm.

Until I get comboboxes created it may have to wait however, I'm up to my armpits in style instances and am just putting them all into order.

Side effect of this, I've reverted to the slide in menu, because the changes I had made changed the usable speed of the menus to "bloody hell that was too quick" ;)

JustNick 2008-10-11 16:12

Re: liqbase - call for assistance
 
The strange screen behaviour is back :(
While drawing I get corrupted screen (from black background everything turns purple and some "noise lines" randomly appear), exiting and launching the program again seems to fix it...

lcuk 2008-10-11 16:35

Re: liqbase - call for assistance
 
Quote:

Originally Posted by JustNick (Post 232733)
The strange screen behaviour is back :(
While drawing I get corrupted screen (from black background everything turns purple and some "noise lines" randomly appear), exiting and launching the program again seems to fix it...


hmmm, "back" you say, how long was it gone for and have you been using liqbase in the intermediate period?

JustNick 2008-10-11 17:45

Re: liqbase - call for assistance
 
It was gone for 6 days... first time I had screen corruption was upon first run, I uninstalled, reinstalled and everything was fine...
During these six days I randomly used liqbase (most of the time after new packages installation to check if something was broken by new software) to sketch silly things while sick in bed :(
In the period I rebooted just once for the personal launcher update and charged the NIT twice.
Last app I run before having graphic issues with liqbase was VGBA.
Never fiddled with the screen resolution nor CPU speed under liqbase...
(I just hope my N800 hasn't got the flu from me... )

lcuk 2008-10-11 17:57

Re: liqbase - call for assistance
 
Its really odd and so transient.
As I said I've seen it only a couple of times since its inception and never reproducible.
You said restarting liqbase cured it, but has it come back since and you have had to restart again, or have you only seen it once today?

JustNick 2008-10-11 18:27

Re: liqbase - call for assistance
 
Once today, couldn't reproduce it after I saw it the first time...
Can't even say it was because of the device was running hot for a long gaming session, because i restarted liqbase almost immediately, not giving the nit the time to cool off

lcuk 2008-10-11 18:42

Re: liqbase - call for assistance
 
meh, ill just scratch my head about it and carry on with the other stuff I'm bubbling away at.

I've moved all the style information into one place now and have started to prepare user definable theming.

The graffiti wall has been given a personal boost due to refactoring and upgrading some of the components, it now does kinetic at full speed without jutters whilst still loading in pages from the disk (it simply waits for the kinetic scroll to finish before carrying on loading)

Zooming on the graffiti wall with +- works really nicely (and stores last size) and you can go from fullsize down to hundreds of sketches on screen at one time. This is in preparation for allowing a multiselect tagging mode.

I did some more work on the error handling for images and its a lot more capable at handling errors from libjpeg.

I have had to re-enable slide in menus (oh the hardship!) because when I centralized the styles I removed 99% of the time difference opening up the next menu, it was *too* fast and I needed to do something.
Feedback on this will be required and alternative options formulated for those that aren't happy with it.

A few people have mentioned expanding on the screensaver/clock principle either by displaying a fullscreen clock or more bacon and "stuff".
I will consider a few ideas over the coming days and see if anything comes of it.

In the meantime I still have no png saving and think I need to get it in - I have a lot of things to put in place which require images.

I will upload a new package later on (should be 0.0.4) once its built.

lcuk 2008-10-11 18:57

Re: liqbase - call for assistance
 
Justnick, one last thought on the corruption.

Did it occur when you first started liqbase or after you had been running a while.
When its happened to me it was right at the start the first time I tried drawing.

JustNick 2008-10-11 19:07

Re: liqbase - call for assistance
 
Always right after the start of the program, once in the drawing tool I had corruption on stylus contact.

tso 2008-10-11 19:09

Re: liqbase - call for assistance
 
played around a bit, kinda fun ;)

TrueJournals 2008-10-11 20:01

Re: liqbase - call for assistance
 
I've also had the screen corruption problem happen. It happens every once in a while, and restarting liqbase always fixes it. The corruption happens on stylus contact, and I've observed it when drawing, and on the grafitti wall. But, as mentioned, it never seems to be reproducable.

lcuk 2008-10-11 20:10

Re: liqbase - call for assistance
 
ok, the sketching is the fastest part of the system.
Of any area it is the one place where minimal work is done to the canvas.
Simply extend the current drawing by 1 line and refresh.
liqbase always waits for xv to inform it that the frame is completely sent and I do not touch the memory again until I receive this event (overdrawing before this event is a different and leads to tearing).

Since I am not updating the whole display and sending a bitmap which is very similar to current display it appears as though the LCD controller itself is eating the lower portion of the page.

Perhaps it is caused by another process attempting to update its portion of the framebuffer when XV is meant to have it locked?

Has this been noticed anywhere else?



Also, if it occurs, try switching to a different drawing tool, the others work "live" and refresh the whole screen from top to bottom including buttons and stuff.

JustNick 2008-10-12 09:11

Re: liqbase - call for assistance
 
I tried to recreate what I was doing yesterday before the screen corruption occurred, but nothing happened...
Maybe sometimes a process becomes stuck without being noticed, but it is hard to track down what really happens :(
I'm aware there's a bug in the GPE summary applet that sometimes can cause the home screen to be reset (it was discussed in the GPE thread), but this was not the case...
From now on I'll try to pay more attention to what I'm doing on the tablet before reporting "bad attitudes" of liqbase :)

lcuk 2008-10-12 09:23

Re: liqbase - call for assistance
 
justnick,

I'd rather know and try to identify a problem, and this corruption is certain inside that category, it upsets the experience.

As you may have noticed within liqbase I am my worst critic, and I use it and test and run all the time.

When I notice a bug I make a quick note and resolve to fix it when I get infront of an editor.

Its just too early on a Sunday morning to worry :D

*goes to make bacon butties*

JustNick 2008-10-12 21:38

Re: liqbase - call for assistance
 
Try not to work too hard on this project and always remember that it took billions of years to mother nature to offer us the world we see today, so you can have some time too to perfect your liqbase :D

lcuk 2008-10-12 22:32

Re: liqbase - call for assistance
 
I've thought about it and wrote notes about it many many times over the years about an awful lot of subjects.

However every time I've written something it i eventually have to turn the page and start again.

These pages get lost and thrown away because there simply isnt enough room.
I can never look back over things because of this, and have always wanted a way for me to hold onto what I write.

Its also given me a short term memory :)

Just because I have started to do this publically now does not mean I am going any faster or slower than before :)

I simply want to get enough done so I can relax and spend more time being a user.

Actually having a device sitting here and able to mould my thoughts onto is amazing, to be coding in c again feels so natural.

I am not losing anything I write and am building up the background framework to make use of everything I write and draw :)


Incidentally, there is an incremental update on http://liqbase.net/

0.0.4 I believe.

lcuk 2008-10-13 00:31

Re: liqbase - call for assistance
 
0.0.5 includes a multitouch test ( http://liqbase.net/ ).

its been rolling around for a while, but last night I managed to describe exactly what was required.
This evening I have put a test in place and want to see if its reasonable.


// use the primary thumb as ground zero
// then keeping the thumb pressed and stationary touch with a secondary finger
// the cursor will jump to roughly the halfway point (depending upon pressure differential)
// this is my chance, I know the original fixed start location
// and I know roughly where the finger is, i know its direction, and something of its position
// if the finger moves closer, its rough position will get closer
// it it moves further away, then so will the rough position
// if it rotates, i will know roughly where it is
// i can use this rough guide to stretch or rotate objects

It can be viewed from options.multitouch test. if it can be refined, maybe we can use it as an input method.

Thesandlord 2008-10-13 00:43

Re: liqbase - call for assistance
 
HOLY MOTHER OF INTERNET TABLET!!

It actually WORKED! Well, for about 5 seconds, then it crashed like the original playtest (requiring reboot, you know what I mean lcuk)

Problems: Works well in HiRes, bad in LowRes. Why does the outer box say ext, and the inner say finger, it should be opposite. And, obviously no pinch gesture, but "half-pinch".

How do you plan to differentiate between a normal click and a "multitouch".

Lol, two versions of liqbase in a day. I am overwhelmed.

lcuk 2008-10-13 00:49

Re: liqbase - call for assistance
 
I find it increasingly incredible how it manages to crash so hard on other machines.
I run enclosed in a wooden crate at performance all day long charging a battery and torturing my poor abused machine with ssh and gcc and liqbase drawing and doodling and running and playing and hacking and I do this on the other machine as well.

And I dont see failure rates anywhere near what appears to happen to you guys.

it genuinely shocks me and the worst part is nothing is its not reproducable :'( its simply failing.


I have extensive logging in the system, if nobody objects I would like to save this log to a file (replaced after a couple of runs) and request that you send it me if things go wrong.

Does this sound reasonable or even would people be ok if i asked on startup "you have an incomplete run log, do you want to send to liquid@.." ?

qole 2008-10-13 00:53

Re: liqbase - call for assistance
 
Wow, simulated multi-touch! That would really rock. But how to tell the difference between this and two taps and a swipe? Maybe if there's 0 time between origin-release (thumb) and secondary-press (finger), you can go into simulated multi-touch mode. If there's even a fraction of a second between release and press, treat it as two taps. Is the touchscreen interface capable of that kind of fine-grained polling?

lcuk 2008-10-13 00:56

Re: liqbase - call for assistance
 
qole, I already do.
I work on strokes remember ;)

Then, there is the knowledge that a single finger moves in a linear track, if it happens to jump a large distance (bsg.hybrid.jump()) I can say:
"ahhhahhh you broke the laws of physics and an additional mass has pressed on the surface"

Once I have taken that step I limit the equation by asking that you maintain this first thumb in place, this acts as the pivot point.

I just monitor the filtered new results and use that to mean the second finger.

qole 2008-10-13 00:57

Re: liqbase - call for assistance
 
lcuk: perhaps see if the user can use ftp or scp (if they have ssh installed) and upload it to you that way?

lcuk 2008-10-13 00:59

Re: liqbase - call for assistance
 
qole, theres plenty of scope, i can just make a simple page on the server and push the data to it (or i can upgrade the server and run my own code).

Its no hassle, i'm just thinking of ways to get logs up to me easily.

Thesandlord 2008-10-13 01:05

Re: liqbase - call for assistance
 
Quote:

Originally Posted by lcuk (Post 233062)

"ahhhahhh you broke the laws of physics and an additional mass has pressed on the surface"

Yea, but I break the laws of physics all the time. I guess that's why my grade is so low :D

I would not mind sending log files.

Also, 0.0.5 seems a lot slower than 0.0.4. Possibly just a memory leak from another (cough fennec) app.

lcuk 2008-10-13 01:07

Re: liqbase - call for assistance
 
Quote:

Problems: Works well in HiRes, bad in LowRes. Why does the outer box say ext, and the inner say finger, it should be opposite. And, obviously no pinch gesture, but "half-pinch".
Yes, its a start though, I've noted myself about resolution dependence, but its simply a matter of scale as part of the polish.

ermmm ext/finger - yeah I realised but the variables are named thusly and haven't renamed them yet.


Quote:

How do you plan to differentiate between a normal click and a "multitouch".
it technically does now, if the single finger stroke does not break a certain Jump() radius then it is considered a single stroke.
It is only if it breaks this radius that it breaks into two, it should really only allow jumping if it happens from the start, ie not in mid stroke.

Quote:

Lol, two versions of liqbase in a day. I am overwhelmed.
heh, well yeah I upped the code and was messing with it and it worked well enough to help explain to a buddy.

lcuk 2008-10-13 01:11

Re: liqbase - call for assistance
 
I've not done any substantial reworking from 4->5 and its not changed speed over here.

Do the slide in menus work?

JustNick 2008-10-13 13:23

Re: liqbase - call for assistance
 
Must... upgrade... now... :D
For me np about logging, I have neither porn nor sensible data, just engineering books and some caledar entries :D

asys3 2008-10-13 13:36

Re: liqbase - call for assistance
 
Hi lcuk,

I must say that this is really, really good!!

I saw the drawings saved in the user directory - do you have any plans to make it exportable to any standard format?
Say jpg or whatever.
So we could use the graphics for other programs (mail, ooficce, gimp, ...).

I could imagine that you have some more things to do on your list...

Very funny for me and my son ;-)

Thanks a lot so far!

asys3

lcuk 2008-10-13 13:55

Re: liqbase - call for assistance
 
asys3,

my youngest keeps picking up my tablet and reading through the graffiti wall and finding things which interest him and drawing more and more.
He had me drawing James (from thomas the tank engine) the other night and was great to have him explaining what he needed to make it look right :)

As for export formats, theres nothing explicitely built into the system yet, I have been having a bit of a mental block regarding exporting bitmap images to PNG.

However I have done some initial testing with SVG, the results are quite good so far.

http://liqbase.net/liqriver.php

JustNick 2008-10-13 14:19

Re: liqbase - call for assistance
 
Updated to latest build, everything is fine (to be read à la Homer Simpson: Mutlitouch... Aaaaah!!!), no loss of speed or functionality :)
I really like the new sliding transition between menus, unfortunately as usual there was screen corruption (this time no more purple, it is orange and I like it best :D) upon first run (I didn't do anything particular before running liqbase, just opened microb, downloaded the .deb, installed it and closed everything I had active before running liqbase)

lcuk 2008-10-13 14:24

Re: liqbase - call for assistance
 
Justnick, do you have a video camera.
Can you show me these corruptions? (to my email addy if you want to keep it private)

I'll be putting the file logging in place tonight but as you see from numerous videos and stuff it just isnt happening on these devices here.

*scratchheadandsuckairthroughteeth*

JustNick 2008-10-13 14:55

Re: liqbase - call for assistance
 
Man I must admit: I was thinking of asking you something like that, but I was afraid it would sound stupid... But now that you ask I'll do it as soon as I have my batteries recharged ;)

bluesubaru 2008-10-13 18:29

Re: liqbase - call for assistance
 
Just loaded this app. Looks good.

Is there a central place for tracking the bugs or problems? I don't want to be posting about issues that are already known about. This thread is already 16 pages.

Like the lines that pop up in the screen (like a tv with sync problems) when viewing the list of "books" to read. I assume this is known, or is it only a problem on my N800?

Keep up the good work!


All times are GMT. The time now is 05:26.

vBulletin® Version 3.8.8