#jogamp @ irc.freenode.net - 20131110 05:05:53 (UTC)


20131110 05:05:53 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20131109050553.html
20131110 05:05:53 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20131110050553.html
20131110 05:42:35 * hharrison (~chatzilla@anon) has joined #jogamp
20131110 06:58:06 <sgothel> @Hija: 'For example, on 13-Mar-2013 20:19 CET, the latest aggregated autobuild was: ' .. <- this was just an example of an .. :)
20131110 06:58:20 <sgothel> re bug900: could not reproduce
20131110 08:10:10 * hharrison (~chatzilla@anon) Quit (Remote host closed the connection)
20131110 09:25:09 * monsieur_max (~maxime@anon) has joined #jogamp
20131110 09:54:44 * [Mike] (~Mike]@anon) Quit (Read error: Connection reset by peer)
20131110 11:45:28 * sgothel (~sven@anon) Quit (Ping timeout: 240 seconds)
20131110 11:59:29 * sgothel (~sven@anon) has joined #jogamp
20131110 11:59:29 * ChanServ sets mode +v sgothel
20131110 12:15:52 * xranby (~xranby@anon) Quit (Ping timeout: 244 seconds)
20131110 12:19:32 * xranby (~xranby@anon) has joined #jogamp
20131110 12:58:45 * Eclesia (~eclesia@anon) has joined #jogamp
20131110 12:58:49 <Eclesia> hi
20131110 13:10:59 <sgothel> hello
20131110 13:45:26 <monsieur_max> hello :)
20131110 14:33:09 <Eclesia> sgothel: is there something special to be aware off when we call setSize on a GLWindow ?
20131110 14:33:35 <Eclesia> when I call it, the position of the frame change
20131110 14:33:41 <sgothel> sounds almost like a trick question :)
20131110 14:34:01 <Eclesia> it moves back to the top left corner of the screen :/
20131110 14:34:21 <sgothel> hmm .. shall not happen, however positioning is often only desired by user and chosen by WM
20131110 14:34:26 <sgothel> which platform ?
20131110 14:34:39 <Eclesia> ubuntu : XFCE 4.10 desktop
20131110 14:35:11 <sgothel> to my experience .. (w/ KDE and Gnome) .. it does not happen
20131110 14:35:36 <sgothel> but if XFCE wants to .. nothing we can do
20131110 14:36:11 <sgothel> we have a few resize tests ..
20131110 14:37:24 <Eclesia> hm... so I should store the frame position and restore it when I resize the frame
20131110 14:37:50 <sgothel> let me see what we do on NEWT/X11 ..
20131110 14:39:09 <sgothel> reconfigureWindowImpl(getX(), getY(), width, height, getReconfigureFlags(0, isVisible()));
20131110 14:39:24 <sgothel> we always set the position and size as a minimum in reconfig .. lets see ..
20131110 14:40:40 <sgothel> Native: NewtWindows_setPosSize(dpy, w, x, y, width, height);
20131110 14:41:09 <sgothel> so we always set pos+size at once via XConfigureWindow
20131110 14:41:53 <sgothel> maybe you can track what happens (all debug properties on) .. maybe, a 'position changed' event happened before (-> 0/0) and that position is used
20131110 14:42:01 <sgothel> or XFCE does it itself
20131110 14:42:28 <sgothel> let me find a good unit test ..
20131110 14:42:46 <sgothel> I may try w/ debian + XFCE .. hmm
20131110 14:43:54 <Eclesia> sgothel: here is what happen in my case : make an undecorated frame > attached mouse listener
20131110 14:44:13 <Eclesia> mouse event > run separate thread to update frame size or position
20131110 14:44:34 <Eclesia> at first I was resizing/dragging directly in the event method
20131110 14:44:41 <sgothel> sounds good
20131110 14:44:58 <sgothel> yup .. not good on NEWT-EDT :)
20131110 14:44:59 <Eclesia> but ljust like the swing EDT I had various bugs
20131110 14:45:18 <Eclesia> that's why I used another thread
20131110 14:45:29 <sgothel> me doing same AFAIK
20131110 14:46:01 <Eclesia> funny thing, at one point, the resize was working properly :/
20131110 14:46:29 <Eclesia> another time, the frame was 'shaking' when I dragged it
20131110 14:46:33 <sgothel> which 'one point' ?
20131110 14:47:08 <Eclesia> I tested mutiple solutions, the (one point' was one of them that's all. can't remember exactly the way I made it
20131110 14:49:35 <sgothel> ok .. creating a unit test .. will push when done
20131110 14:54:32 <Eclesia> sgothel: here is my demo : https://bitbucket.org/Eclesia/unlicense/commits/bf988c91d303803a8dca1e38c3b4850332cd5e8d
20131110 14:55:13 <Eclesia> WActionLayer.java is doing the resize/drag work
20131110 15:04:04 <sgothel> is it a unit test based test ?
20131110 15:05:17 <Eclesia> no, it's a demo in my project
20131110 15:06:21 <Eclesia> it's just to help a bit to reproduce the bug, since you can copy whatever you want from it
20131110 15:08:35 <sgothel> src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows03NEWTAnimResize.java
20131110 15:08:53 <sgothel> does it matter in your case that resize happens in the extra thread ?
20131110 15:09:03 <sgothel> i.e. can this unit test reproduce the issue for you ?
20131110 15:09:19 <sgothel> here it works very well .. position stays
20131110 15:10:09 <Eclesia> 1minute, downloading the source
20131110 15:10:33 <sgothel> jogl/make$ bash scripts/tests-x64.sh
20131110 15:10:48 <sgothel> if build via jogl/make$ bash scripts/make.jogl.all.linux-x86_64.sh
20131110 15:11:24 <Eclesia> I clone from this repo ? https://github.com/sgothel/
20131110 15:11:25 <sgothel> ( I use this rootrel property to hold many build in one jogl folder, i.e. build-x86_64 .. etc)
20131110 15:11:29 <sgothel> sure
20131110 15:11:32 <sgothel> or jogamp
20131110 15:11:53 <Eclesia> http://jogamp.org/git/ ?
20131110 15:13:57 * Eclesia downloading
20131110 15:23:42 <Eclesia> sgothel: BUILD FAILED
20131110 15:23:42 <Eclesia> /media/SATA2_7200/dev/temp/jogl/make/build.xml:4: The following error occurred while executing this line:
20131110 15:23:42 <Eclesia> /media/SATA2_7200/dev/temp/jogl/make/build-common.xml:17: Cannot find /media/SATA2_7200/dev/temp/gluegen/make/gluegen-cpptasks.xml imported from /media/SATA2_7200/dev/temp/jogl/make/build-common.xml
20131110 15:24:37 <sgothel> so ?
20131110 15:24:47 <Eclesia> can even build it
20131110 15:24:52 <sgothel> gluegen not where it should be ..
20131110 15:24:52 <Eclesia> can't*
20131110 15:25:03 <sgothel> have you read JOGL's HowToBuild ?
20131110 15:25:25 <Eclesia> no. I just follow what you said above
20131110 15:25:45 <sgothel> I wish that would happen more often :)
20131110 15:25:52 <sgothel> ok - so 1st build ..
20131110 15:26:16 <sgothel> http://jogamp.org/jogl/doc/HowToBuild.html
20131110 15:26:31 <sgothel> Build Steps <-
20131110 15:30:27 <sgothel> your code probably does something similar - but not suitable as unit test due to all the API layering
20131110 15:30:53 <sgothel> so maybe you can change / add something to the new unit test .. to mimic the bug .. if not yet reproducing w/ XFCE
20131110 15:31:16 <sgothel> kicking off debian on vbox ..
20131110 15:31:58 <Eclesia> I'll try to reproduce it
20131110 15:34:52 <Eclesia> build error on jogl
20131110 15:35:21 <Eclesia> sgothel: http://pastebin.com/Byg9YNvu
20131110 15:38:28 <sgothel> sure you use tip gluegen and jogl ?
20131110 15:38:58 <Eclesia> I've just cloned them
20131110 15:39:58 <sgothel> [javac] /media/SATA2_7200/dev/jogamp/jogl/src/nativewindow/classes/jogamp/nativewindow/Debug.java:52: error: method addTrustedPrefix in class PropertyAccess cannot be applied to given types;     [javac]     PropertyAccess.addTrustedPrefix("nativewindow.", Debug.class);     [javac]    
20131110 15:40:28 <sgothel> source doesn't match current git master tip
20131110 15:40:51 <sgothel> /jogl/src/nativewindow/classes/jogamp/nativewindow/Debug.java:52: private static final boolean verbose;
20131110 15:40:53 <sgothel> :)
20131110 15:41:27 <sgothel> http://jogamp.org/git/?p=jogl.git;a=blob;f=src/nativewindow/classes/jogamp/nativewindow/Debug.java;h=b7197dbca229ad41b244e73e74b0b3d04b87b84f;hb=HEAD
20131110 15:42:37 <sgothel> "PropertyAccess.addTrustedPrefix("nativewindow.", Debug.class)" <- quite some ole code ..
20131110 15:43:10 <Eclesia> 31 mai 2013
20131110 15:43:37 <sgothel> http://jogamp.org/git/?p=jogl.git;a=blob;f=src/nativewindow/classes/jogamp/nativewindow/Debug.java;h=b7197dbca229ad41b244e73e74b0b3d04b87b84f;hb=HEAD#l52
20131110 15:44:06 <sgothel> http://jogamp.org/git/?p=jogl.git;a=blob;f=src/nativewindow/classes/jogamp/nativewindow/Debug.java;hb=HEAD#l52
20131110 15:44:25 <Eclesia> too many git repo...
20131110 15:46:28 <Eclesia> okay I have the right one this time 10 november : Add TestGLWindows03NEWTAnimResize: Test NEWT basic resize while holding posit
20131110 15:52:35 * Eclesia running tests
20131110 15:52:57 <sgothel> hopefully not all of 'em .. will take a while :)
20131110 15:53:10 <Eclesia> how long ?
20131110 15:53:12 <sgothel> hence the mentioned scripts/test*sh
20131110 15:53:27 <sgothel> 20-60 min .. depends on your machine ..
20131110 15:54:02 <Eclesia> GTX-460 AMD FX x4
20131110 15:54:02 <sgothel> copy 'scripts/tests-x64.sh' and edit to match your path .. etc
20131110 15:54:22 <sgothel> since here .. we only like to validate one test
20131110 15:54:35 <sgothel> as enabled in scripts/tests.sh (being called by above ..)
20131110 16:01:50 * trigger (~trigger@anon) has joined #jogamp
20131110 16:08:39 <Eclesia> that's a hell lot of tests ^^
20131110 16:17:36 <sgothel> sure .. quality!
20131110 16:17:53 <Eclesia> BUILD SUCCESSFUL
20131110 16:17:53 <Eclesia> Total time: 26 minutes 14 seconds
20131110 16:18:47 <sgothel> https://jogamp.org/chuck/view/fwd/job/jogl/lastSuccessfulBuild/label=linux-x86_64-nvidia/testReport/ 827 tests .. per node
20131110 16:19:57 <Eclesia> sgothel: where can i find the specific test source code we are interested in ?
20131110 16:20:14 <sgothel> see last git commit
20131110 16:20:19 <sgothel> git log -u
20131110 16:20:27 <sgothel> it's enabled in scripts/tests.sh
20131110 16:35:23 <Eclesia> sgothel: I reproduced it in a test : http://pastebin.com/9hpXsx8T
20131110 16:35:53 * monsieur_max (~maxime@anon) Quit (Ping timeout: 272 seconds)
20131110 16:36:03 <Eclesia> I see the frame jump on nearly each resize
20131110 16:36:21 <sgothel> can you pls send me a git patch or pull request ?
20131110 16:36:24 <sgothel> (email ..)
20131110 16:38:10 <sgothel> http://dtcsupport.gplhost.com/Git/Create-Patch-Files
20131110 16:38:16 <sgothel> https://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html
20131110 16:39:21 <sgothel> .. if you care :)
20131110 16:39:31 <Eclesia> git nightmare again ...
20131110 16:39:52 <sgothel> I probably will remove AWT reference later on ..
20131110 16:41:29 <sgothel> Updater <- necessary ?
20131110 16:42:22 <Eclesia> it produces the bug
20131110 16:42:32 <sgothel> so the orig test worked I assume ?
20131110 16:42:41 <Eclesia> yes
20131110 16:42:51 <sgothel> the change here is: perform resize on dedicated arbitrary thread ?
20131110 16:43:11 <Eclesia> right
20131110 16:43:21 <sgothel> i.e. I like to have the least complicated code .. ofc :)
20131110 16:43:49 <sgothel> but thats cool .. will see whether this produces the error as well ..
20131110 16:44:21 <Eclesia> could you just try to run it on your machine ? to see if it's xfce the problem here ?
20131110 16:46:00 <sgothel> in progress ..
20131110 16:46:09 <Eclesia> sgothel: I've just noticed the bug is also in TestGLWindows03NEWTAnimResize
20131110 16:46:34 <sgothel> well ..
20131110 16:46:39 <Eclesia> it didn't move that much last time i run it
20131110 16:48:00 <sgothel> runs perfectly here
20131110 16:48:13 <sgothel> KDE
20131110 16:48:53 * Eclesia making a small video
20131110 16:48:56 <sgothel> let me check ugly ubuntu's gnome-branch ..
20131110 16:49:07 <sgothel> pls run w/ -Dnewt.debug=all !
20131110 16:49:52 <sgothel> gnome: good
20131110 16:50:44 * monsieur_max (~maxime@anon) has joined #jogamp
20131110 16:50:55 <sgothel> xfce 4.10.1 ?
20131110 16:52:01 <Eclesia> sgothel: here: http://unlicense.developpez.com/debug/bugresize.ogv
20131110 16:53:14 <sgothel> sweet :)
20131110 16:53:45 <sgothel> ^^ debug properties .. pls run my orig test to simplify output ..
20131110 16:53:51 <sgothel> send via email pls
20131110 16:54:17 <sgothel> piped output 'java ... 2>&1 | tee forSven.log'
20131110 16:54:18 <Eclesia> that's the original test
20131110 16:54:36 <sgothel> good .. but need the debug output
20131110 16:54:46 <sgothel> (05:50:55 PM) sgothel: xfce 4.10.1 ?
20131110 16:55:17 * Eclesia searching a way to show the xfce version
20131110 16:55:33 <sgothel> dpkg -l | grep xfce
20131110 16:56:21 <Eclesia> 4.10.1 yes
20131110 16:56:38 <Eclesia> 4.10.0 on some packages too
20131110 16:57:42 <Eclesia> mail ?
20131110 16:57:42 * sgothel (~sven@anon) Quit (Read error: Connection reset by peer)
20131110 16:58:07 * sgothel (~sven@anon) has joined #jogamp
20131110 16:58:07 * ChanServ sets mode +v sgothel
20131110 17:00:01 <Eclesia> mail send
20131110 17:04:36 <sgothel> missing debug output
20131110 17:04:51 <sgothel> sure you did '-Dnewt.debug=all' ?
20131110 17:06:21 <Eclesia> hm.. i think I didn't put the parameters at the right place
20131110 17:08:56 <Eclesia> damn... where are those vm parameters in ant scripts...
20131110 17:09:15 <sgothel> note: use the scripts/tests.sh ..
20131110 17:11:00 <sgothel> yup XFCE .. does it :)
20131110 17:11:40 <Eclesia> you have the bug ?
20131110 17:12:28 <sgothel> Window setSize: START 200x150 -> 129x129, fs false, windowHandle 0x3200002, visible true
20131110 17:12:28 <sgothel> X11Window reconfig: 200/200 129x129, [PARENT_false, FS_false_span_false, UNDECOR_true, ALWAYSONTOP_false, VISIBLE_true]
20131110 17:12:28 <sgothel> Window.insetsChanged: skip insets change for undecoration mode
20131110 17:12:28 <sgothel> Window.sizeChanged: (main-Display-.x11_:0.0-1-EDT-1): (defer: false) force false, 200x150 -> 129x129 - windowHandle 0x3200002 parentWindowHandle 0x0
20131110 17:12:28 <sgothel> defineSize: 200x150 -> 129x129
20131110 17:12:29 <sgothel> consumeWindowEvent: WindowEvent[WINDOW_RESIZED, NEWTEvent[source:jogamp.newt.driver.x11.WindowDriver, consumed false, when:1384103514847 d 0ms]], visible true 200/200 129x129
20131110 17:12:29 <sgothel> WindowEvent[WINDOW_RESIZED, NEWTEvent[source:jogamp.newt.driver.x11.WindowDriver, consumed false, when:1384103514847 d 0ms]]
20131110 17:12:30 <sgothel> Window.positionChanged: (main-Display-.x11_:0.0-1-EDT-1): (defer: false) 200/200 -> 0/0 - windowHandle 0x3200002 parentWindowHandle 0x0
20131110 17:12:30 <sgothel> definePosition: 200/200 -> 0/0
20131110 17:12:42 <sgothel> as I thought .. XFCE decides to put us on 0/0
20131110 17:13:51 * Eclesia don't want to go back on gnome or kde :'(
20131110 17:16:07 <sgothel> it goes to 0/0 if > than a certain size ..
20131110 17:16:16 <sgothel> one of the smart placement WM tweaks ..
20131110 17:17:27 <Eclesia> not very smart this time
20131110 17:18:21 <sgothel> well .. if you find a way to convince XFCE (native X11 code ) .. to use our position request .. your patch is welcome ofc
20131110 17:18:25 <Eclesia> strange anyway, I never experienced any akward frame displacement before on xfce
20131110 17:18:37 <sgothel> na .. it's in the spec!
20131110 17:18:53 <sgothel> i.e. placements and focus-requests are only whet dreams :)
20131110 17:18:59 <sgothel> *wet*
20131110 17:19:01 <sgothel> :)
20131110 17:19:35 <sgothel> works most of the time .. but WM has priority for a reason, i.e. no app shall do bad things
20131110 17:19:57 <Eclesia> and JOGL is a big bad thing :D
20131110 17:20:43 <sgothel> maybe we need an ICCM request .. i.e. WM communication instead XConfigureWindow .. hmm
20131110 17:21:28 <Eclesia> you are talking chinese for me ...
20131110 17:25:48 <Eclesia> I'll try to make a test for parallal data loading, problem I had at work if you remember
20131110 17:26:19 <sgothel> the shared context (see the many unit tests) is working quite well now
20131110 17:27:08 <Eclesia> sgothel: may I have the test name ?
20131110 17:27:20 <sgothel> https://jogamp.org/bugzilla/show_bug.cgi?id=776 <- was a long story to have it in API well behaving :)
20131110 17:27:31 <sgothel> Test*Shared*
20131110 17:28:07 <Eclesia> It's going to be very usefull on my 16cores machine at the office if it works well ^^
20131110 17:37:54 <trigger> hello! long time no see
20131110 17:38:12 <sgothel> you may want to use the very latest .. some locking reduction is 'in' .. maybe 2.1.3 is ready by then
20131110 17:38:21 <sgothel> Hi Johannes
20131110 17:38:50 <trigger> Hi Sven
20131110 17:42:15 <sgothel> @Eclesia: Enlightement works nice ..
20131110 17:42:40 <Eclesia> Enlightement ?
20131110 17:42:48 <trigger> There is a new version of my texture generator (using java & jogl for rendering). Maybe thats of interest for the jogl community.
20131110 17:43:20 <sgothel> yup .. E17 I guess
20131110 17:44:21 <sgothel> sure .. send announcement to forum .. maybe w/ some html snippet for our JOGL page
20131110 17:44:29 <sgothel> (and a good screenshot)
20131110 17:45:14 <trigger> okay!
20131110 17:45:42 <sgothel> i.e. you can off a git pull/patch yourself ofc .. jogamp.org git repo :)
20131110 18:40:06 * trigger (~trigger@anon) Quit (Remote host closed the connection)
20131110 19:36:50 * xranby (~xranby@anon) Quit (Ping timeout: 264 seconds)
20131110 19:39:09 * xranby (~xranby@anon) has joined #jogamp
20131110 19:52:56 * Eclesia (~eclesia@anon) Quit (Quit: Leaving.)
20131110 22:10:40 * [Mike] (~Mike]@anon) has joined #jogamp
20131110 22:15:07 * void256 (~void@anon) has joined #jogamp
20131110 22:17:05 * void256_ (~void@anon) has joined #jogamp
20131110 22:19:10 * void256__ (~void@anon) has joined #jogamp
20131110 22:19:52 * void256 (~void@anon) Quit (Ping timeout: 244 seconds)
20131110 22:20:04 * void256__ is now known as void256
20131110 22:21:25 * void256_ (~void@anon) Quit (Ping timeout: 244 seconds)
20131110 22:42:37 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20131110 23:29:55 * void256 (~void@anon) Quit (Quit: ChatZilla 0.9.90.1 [Firefox 25.0/20131025151332])
20131111 00:16:09 * sgothel (~sven@anon) Quit (Read error: Connection reset by peer)
20131111 01:01:35 * xranby (~xranby@anon) Quit (Ping timeout: 244 seconds)
20131111 01:06:36 * xranby (~xranby@anon) has joined #jogamp
20131111 03:03:35 * [Mike] (~Mike]@anon) Quit ()
20131111 04:51:30 * [Mike] (~Mike]@anon) has joined #jogamp
20131111 05:05:53 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20131111050553.html