Previous day | Jump to hour: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | Next day

Seconds: Show Hide | Joins: Show Hide | View raw
Font: Serif Sans-Serif Monospace | Size: Small Medium Large

Click in the nick column to highlight everything a person has said.
The Logo icon identifies that the person is a core developer (has commit access).

#rockbox log for 2015-09-18

00:01:49 Quit TheLemonMan (Quit: "It's now safe to turn off your computer.")
00:11:12 Quit petur (Quit: Leaving)
00:28:19***Saving seen data "./dancer.seen"
00:34:59 Join Ivoah2 [0] (uid49352@gateway/web/irccloud.com/x-gcmyoxnbgsdybxcw)
00:39:42 Quit [Saint] (Remote host closed the connection)
00:40:30 Join [Saint] [0] (~hayden@rockbox/staff/saint)
00:41:40 Quit ender` (Quit: A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -- Douglas Adams)
00:52:06 Join Chuddington [0] (~Chuddingt@host-92-26-176-20.as13285.net)
00:52:32 Quit ZincAlloy (Quit: Leaving.)
00:52:40 Quit [Saint] (Quit: Quit.)
00:55:31 Join [Saint] [0] (~hayden@rockbox/staff/saint)
01:00
01:03:59 Quit [Saint] (Quit: Quit.)
01:20:26 Join [Saint] [0] (~hayden@rockbox/staff/saint)
02:00
02:26:18 Join jtdesigns01 [0] (~Thunderbi@2601:400:8000:2669:2d0c:c18:ab50:63ec)
02:26:31 Quit jtdesigns01 (Client Quit)
02:28:20***Saving seen data "./dancer.seen"
03:00
03:15:32 Quit Ivoah2 (Quit: Connection closed for inactivity)
03:28:08 Join jtdesigns01bot [0] (~jonathan@c-68-43-178-141.hsd1.mi.comcast.net)
03:30:59 Join jtdesigns01 [0] (442bb28d@gateway/web/freenode/ip.68.43.178.141)
03:31:21jtdesigns01test2
03:34:16 Quit jtdesigns01 (Client Quit)
03:35:35 Join Ivoah2 [0] (~IvoLaptop@216.227.60.165)
04:00
04:01:34 Quit michaelni_ (Ping timeout: 246 seconds)
04:26:39 Join chrisb [0] (~chrisb@li482-205.members.linode.com)
04:28:22***Saving seen data "./dancer.seen"
04:35:44 Quit chrisb (Ping timeout: 250 seconds)
04:56:26 Join michaelni [0] (~michael@chello084114129144.4.15.vie.surfer.at)
05:00
05:01:52 Quit [7] (Disconnected by services)
05:02:02 Join TheSeven [0] (~quassel@rockbox/developer/TheSeven)
05:05:10 Join Strife89 [0] (~Strife89@adsl-98-80-234-205.mcn.bellsouth.net)
05:17:35 Join advcomp2019 [0] (~advcomp20@unaffiliated/advcomp2019)
05:17:54 Quit Strife89 (Ping timeout: 260 seconds)
05:36:35 Join chrisb [0] (~chrisb@li482-205.members.linode.com)
05:59:09 Quit TheSeven (Disconnected by services)
05:59:22 Join [7] [0] (~quassel@rockbox/developer/TheSeven)
06:00
06:15:43 Quit Ivoah2 (Quit: Leaving...)
06:18:21 Quit JanC (Ping timeout: 248 seconds)
06:19:36 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
06:20:59 Quit IvoLaptop (Remote host closed the connection)
06:28:25***Saving seen data "./dancer.seen"
06:32:38 Join JanC [0] (~janc@lugwv/member/JanC)
06:40:53 Quit chrisb (Ping timeout: 255 seconds)
06:55:01 Join chrisb [0] (~chrisb@li482-205.members.linode.com)
06:58:42 Join rela_ [0] (~x@p5B24437C.dip0.t-ipconnect.de)
07:00
07:00:38 Quit rela (Ping timeout: 256 seconds)
07:51:52 Join einhirn [0] (~Miranda@p5B0C55A7.dip0.t-ipconnect.de)
07:55:41 Quit amiconn (Remote host closed the connection)
07:55:41 Quit pixelma (Read error: Connection reset by peer)
07:56:42 Join pixelma [0] (~pixelma@rockbox/staff/pixelma)
07:56:48 Join amiconn [0] (~amiconn@rockbox/developer/amiconn)
07:59:25 Quit krnlyng (Ping timeout: 240 seconds)
08:00
08:02:26 Join wodz [0] (~wodz@iwl138.internetdsl.tpnet.pl)
08:11:59 Quit CustosLimen (Ping timeout: 252 seconds)
08:15:06 Join krnlyng [0] (~liar@83.175.90.24)
08:21:42 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
08:24:43 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
08:25:48 Join ender` [0] (krneki@foo.eternallybored.org)
08:28:28***Saving seen data "./dancer.seen"
09:00
09:03:41 Quit IvoLaptop (Quit: Leaving...)
09:03:57 Join MMlosh [0] (~MMlosh@2001:470:6f:23:9463:a852:d7f0:a2dd)
09:12:10 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
09:12:10 Quit IvoLaptop (Remote host closed the connection)
09:33:59 Quit CustosLimen (Ping timeout: 264 seconds)
09:35:24 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
09:48:18 Join petur [0] (~petur@rockbox/developer/petur)
09:54:11 Quit Mir (Read error: Connection reset by peer)
09:54:52 Join Mir [0] (~Mir@pool-100-39-12-139.lsanca.fios.verizon.net)
09:59:19 Quit chrisb (Ping timeout: 250 seconds)
10:00
10:28:29***Saving seen data "./dancer.seen"
10:30:10 Join pamaury [0] (~quassel@sphinx.lix.polytechnique.fr)
10:30:10 Quit pamaury (Changing host)
10:30:10 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
10:32:52 Quit CustosLimen (Ping timeout: 246 seconds)
10:35:42 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
10:38:52wodzkugel: Logging value of thread_self() in _battery_level() gives 0x102 while main thread gives 0x100. So yes we try to do jni calls outside from main thread.
10:39:28kugeli know, those calls come from our powermgmnt thread
10:39:36kugelor power thread, whatever the name was
10:41:05wodzkugel: What is your opinion how worker thread should be designed? Should it be created from native part or in java. How to pass messages?
10:45:01kugelwodz: actually I'd try to use our main thread
10:45:27kugelthen you can use queue_send() which is synchronous
10:46:15kugeli have a patch somewhere that adds a SYS_EVENT that takes a callback, and the callback is called on the main thread
10:46:57kugelotherwise you could spawn a pthread with a pthread_cond_wait based mainloop
10:48:45wodzkugel: I don't know well this part of code - where is main loop where I could stick queue check?
10:49:57kugelapps/misc.c
10:50:33kugelyou use queue_post(&button_queue, ...) to post events or queue_send(&button_queue, )
10:53:43wodzkugel: You mean to hack in default_event_handler_ex() new type of message, like SYS_JNI_CALL or something like this, right?
10:54:44kugelyea
10:55:44wodzhacking time then !
10:57:41kugelwodz: found it:
10:57:44kugelhttp://pastie.org/10428452
10:58:51 Join TheLemonMan [0] (~lemonboy@unaffiliated/thelemonman)
11:00
11:00:14kugeli implemented run_on_ui_thread() in apps
11:00:28kugelso either move it to firmware or do queue_post() manually
11:00:55kugelthe downside is that the callback is void/void, so no context or return value
11:01:51kugelnot a big deal for battery readout though: do the post and return the global variable's value, the callback can simply update the global
11:02:22wodzkugel: battery reading is the tip of the iceberg
11:03:08wodzkugel: I bet we do jni calls from other places as well
11:06:48wodzkugel: If I understand correctly the callback for button_queue is defined so you abuse data part as function pointer?
11:12:48 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
11:17:47 Quit IvoLaptop (Ping timeout: 264 seconds)
11:19:34 Join goom [0] (~go4m@cpe-66-25-153-174.satx.res.rr.com)
11:32:35 Quit goom (Quit: Leaving)
11:33:03 Join goom [0] (~go4m@cpe-66-25-153-174.satx.res.rr.com)
11:34:27 Quit CustosLimen (Ping timeout: 265 seconds)
11:46:34 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
11:58:26kugelwodz: the other day you mentioned that reversing the logic (i.e. having the java side set the global) also works, I'd think that would be easiest
11:59:17wodzkugel: This actually work, I tested it. The thing is that AFAIK we have more places with JNI calls outside of main thread
11:59:37kugelI'm not so sure actually
12:00
12:00:43kugelupdating the display is done on the main thread, button reading already uses the reversed logic. pcm callback is also safe i think
12:00:58kugelthere is not a lot of jni calls left, if any
12:01:04wodzIt was reported that after commenting out the guts of __battery_level() the app crashes when entering WPS
12:02:31wodzHa! delegating jni call from __battery_level() to main thread works.
12:05:35kugelah right, the statusbar notification is probably called from the audio or buffering thread (see apps/hosted/android)
12:06:41wodzkugel: What is the android path for adb push so I could easily find uploaded test file?
12:07:48kugelwhich file?
12:08:21kugelyou can do adb install rockbox.apk
12:09:11wodzI want to upload mp3 or ogg to test WPS issue
12:09:34kugel/sdcard/ should work
12:09:49wodzI don't have sdcard here
12:10:47kugelyea, doesnt matter
12:10:57wodzlets try
12:11:13kugel /sdcard is part of the ABI if you wish
12:12:38wodzfailed to copy 'vorbis_096.ogg' to '/sdcard/096.ogg': Read-only file system
12:13:49 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
12:14:41kugelno idea then
12:15:26kugelperhaps you need to allow write from adb somehow? (never had that problem)
12:15:29wodzok, worked it out
12:18:37 Quit IvoLaptop (Ping timeout: 244 seconds)
12:18:57wodzkugel: It crashes when starting playback before displaing WPS. Nothing meaningfull in logcat
12:19:40kugeltry disabling the code in apps/hosted/android/notification.c
12:22:42wodzNow it enters WPS but playback doesn't start and then it crashes after few seconds
12:23:08wodznothing interesting in logcat
12:26:20wodznow it throws something which basically points out again not some jni call probably.
12:26:33wodz*to some
12:26:37kugelah it's a mess
12:27:15kugelpcm_play_dma_* suffer from the same problem
12:28:32***Saving seen data "./dancer.seen"
12:29:15wodzyep
12:31:03wodzI guess it is not sensible to shift such calls to main thread through queue
12:37:09kugelit sucks that we can't use queue_event for pthreads
12:38:22kugeloh wait, we can
12:38:49 Quit CustosLimen (Ping timeout: 240 seconds)
12:38:50kugelby (ab)using our multicore support
12:42:04wodzkugel: I abstracted all dma stuff by posting to queue and it works!
12:42:51wodzkugel: pcm_set_mixer_volume() is the only one which can't be done like this since it gets int parameter
12:45:00kugelwodz: if we'd implement corelock_{lock,unlock} (with a standard pthread mutex) we an use queue_wait on a external pthread
12:46:01kugelwith a separate event queue we can better use the data parameter and return value (by enabling synchronous queue_send())
12:46:55kugeli did this in my playbacklib a while ago (though there I made all rockbox threads be pthreads)
12:47:29wodzwhats wrong with doing the same here?
12:52:50 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
13:00
13:05:33 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
13:06:22 Quit IvoLaptop (Remote host closed the connection)
13:10:17 Nick ParkerR is now known as MortifiedPenguin (~ParkerR@unaffiliated/parkerr)
13:10:33 Nick MortifiedPenguin is now known as ParkerR (~ParkerR@unaffiliated/parkerr)
13:11:13 Join chrisb [0] (~chrisb@li482-205.members.linode.com)
13:20:31 Quit soap_ (Read error: Connection reset by peer)
13:21:00 Join soap_ [0] (~soap@rockbox/staff/soap)
13:22:45 Quit pamaury (Read error: Connection reset by peer)
13:23:39 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
13:32:11 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
13:32:42wodzI workaround pcm_set_mixer_volume() so now only notification stuff is left.
13:32:45 Quit IvoLaptop (Remote host closed the connection)
13:40:44 Quit chrisb (Ping timeout: 255 seconds)
13:42:49 Quit CustosLimen (Ping timeout: 240 seconds)
13:50:11kugelwodz: nothing
13:52:14 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
14:00
14:15:57 Join krabador [0] (~krabador@unaffiliated/krabador)
14:27:20wodzOk I have it all running.
14:27:43wodzConsidering how massive hack it is I am surprised how easy this was.
14:28:10 Quit petur (Quit: Leaving)
14:28:34***Saving seen data "./dancer.seen"
14:35:30 Quit CustosLimen (Ping timeout: 252 seconds)
14:41:28wodzkugel, [Saint]: http://gerrit.rockbox.org/1211
14:45:29 Join IvoLaptop [0] (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
14:47:24 Nick IvoLaptop is now known as Ivoah2 (~IvoLaptop@216-227-60-165.dsl.chatny.frpt.net)
14:49:08 Quit Ivoah2 (Remote host closed the connection)
14:50:58 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
15:00
15:03:40 Quit wodz (Remote host closed the connection)
15:06:02 Join Ivoah2 [0] (~Ivoah2@216-227-60-165.dsl.chatny.frpt.net)
15:19:07 Join amayer [0] (~amayer@mail.weberadvertising.com)
15:19:33 Quit Ivoah2 (Remote host closed the connection)
15:22:02 Quit einhirn (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)
15:27:45 Quit krabador (Quit: Take The Time)
15:43:23 Join ZincAlloy [0] (~Adium@pD9FB7E6D.dip0.t-ipconnect.de)
16:00
16:13:20 Quit Mir (Remote host closed the connection)
16:14:01 Join Mir [0] (~Mir@pool-100-39-12-139.lsanca.fios.verizon.net)
16:14:11 Join chrisb [0] (~chrisb@li482-205.members.linode.com)
16:28:37***Saving seen data "./dancer.seen"
16:30:25 Quit amayer (Quit: Leaving)
16:30:49 Join amayer [0] (~amayer@mail.weberadvertising.com)
16:46:44 Quit aevin2 (Ping timeout: 255 seconds)
17:00
17:28:13 Join krabador [0] (~krabador@unaffiliated/krabador)
17:35:43 Join pablo_pi [0] (~pablo@190.148.249.124)
17:38:17 Quit pablo_pi_ (Ping timeout: 240 seconds)
17:38:49 Quit CustosLimen (Ping timeout: 240 seconds)
17:52:33 Quit pamaury (Remote host closed the connection)
17:54:01 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
17:57:56 Quit TheLemonMan (Quit: Lost terminal)
18:00
18:04:54 Join Jinx [0] (Dojo@unaffiliated/jinx)
18:23:56 Quit gbl08ma (Ping timeout: 252 seconds)
18:24:39 Join gbl08ma [0] (~gbl08ma@hydrogen.tny.im)
18:26:39 Join Ivoah2 [0] (~Ivoah2@cpe-69-204-145-227.nycap.res.rr.com)
18:26:56 Quit Ivoah2 (Remote host closed the connection)
18:27:14 Join Ivoah2 [0] (~Ivoah2@cpe-69-204-145-227.nycap.res.rr.com)
18:28:17 Quit Ivoah2 (Remote host closed the connection)
18:28:39***Saving seen data "./dancer.seen"
18:50:07 Quit amayer (Quit: Leaving)
18:57:42 Join amayer [0] (~amayer@mail.weberadvertising.com)
19:00
19:08:18 Quit chrisb (Ping timeout: 252 seconds)
19:37:47 Quit CustosLimen (Ping timeout: 265 seconds)
19:41:28 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
19:53:52 Join CustosLimen [0] (~CustosLim@unaffiliated/cust0slim3n)
19:54:00 Join lebellium [0] (~chatzilla@89-93-179-187.hfc.dyn.abo.bbox.fr)
20:00
20:28:42***Saving seen data "./dancer.seen"
20:49:51 Nick yuriks is now known as yuriks_ (~quassel@opentyrian/developer/yuriks)
20:50:04 Nick yuriks_ is now known as yuriks (~quassel@opentyrian/developer/yuriks)
20:51:13 Join einhirn [0] (~Miranda@p5B0C55A7.dip0.t-ipconnect.de)
20:55:50 Join bluebrother [0] (~dom@rockbox/developer/bluebrother)
20:56:32 Join fs-bluebot_ [0] (~fs-bluebo@x5ce0eece.dyn.telefonica.de)
20:58:51 Quit fs-bluebot (Ping timeout: 250 seconds)
20:58:53 Quit bluebrother^ (Ping timeout: 244 seconds)
21:00
21:18:30 Quit pamaury (Quit: No Ping reply in 180 seconds.)
21:19:39 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
21:25:35 Quit krabador (Ping timeout: 255 seconds)
21:38:30 Join chrisb [0] (~chrisb@li482-205.members.linode.com)
21:46:40 Quit pamaury (Quit: No Ping reply in 180 seconds.)
21:47:48 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
21:52:20 Quit pamaury (Client Quit)
21:53:34 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
22:00
22:05:03 Quit MMlosh (Quit: Bye...)
22:11:57 Quit uber (Ping timeout: 260 seconds)
22:14:35 Join ZincAlloy1 [0] (~Adium@pD9FB7E6D.dip0.t-ipconnect.de)
22:14:35 Quit ZincAlloy (Read error: Connection reset by peer)
22:17:01 Join TheLemonMan [0] (~lemonboy@unaffiliated/thelemonman)
22:25:45 Join cmhobbs [0] (~cmhobbs@fsf/member/cmhobbs)
22:28:45***Saving seen data "./dancer.seen"
22:33:54 Join prof_wolfff [0] (~prof_wolf@89.141.51.203.dyn.user.ono.com)
22:36:43 Join uber [0] (~uber@unaffiliated/uber)
22:38:54 Quit puckipedia (Remote host closed the connection)
22:41:06 Join puckipedia [0] (puck@irc.puckipedia.com)
22:57:49 Quit chrisb (Ping timeout: 255 seconds)
23:00
23:00:35 Quit pamaury (Quit: No Ping reply in 180 seconds.)
23:01:44 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
23:04:32 Quit amayer (Quit: Leaving)
23:08:04 Quit Chuddington (Ping timeout: 272 seconds)
23:08:21 Join Chuddington [0] (~Chuddingt@host-92-5-96-11.as43234.net)
23:10:28 Join ZincAlloy [0] (~Adium@217.251.126.109)
23:10:28 Quit ZincAlloy1 (Read error: Connection reset by peer)
23:18:04 Quit cmhobbs (Ping timeout: 255 seconds)
23:20:53 Join ZincAlloy1 [0] (~Adium@pD9FB7E6D.dip0.t-ipconnect.de)
23:20:53 Quit ZincAlloy (Read error: Connection reset by peer)
23:27:15 Quit Chuddington (Quit: Leaving)
23:33:34 Quit einhirn (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)
23:40:04 Quit pamaury (Ping timeout: 240 seconds)

Previous day | Next day