Camelia, the Perl 6 bug

IRC log for #sdl, 2010-01-25

← Previous day | Index | Channel Index | Today | Next day → | Search | Google Search | Plain-Text | plain, newest first

All times shown according to UTC.

Time Nick Message
05:55 saorge joined #sdl
08:29 serdar_dalgic joined #sdl
08:30 serdar_dalgic hi2all
08:30 perl-SDL makes sandbox violations while testing
08:31 in t/mixerpm.t , it tries to reach /root/.pulse-cookie
08:31 (I'M trying to make a package for my distro, Pardus)
08:40 Ryan52 serdar_dalgic: what's sandbox violations mean?
08:40 and where can I read about this?
08:52 serdar_dalgic Ryan52: while packaging the program, it shouldn't reach to system files
08:52 program should be packaged in a seperate directory without trying to reach home, root dirs etc.
08:53 see http://devmanual.gentoo.org/ge[…]andbox/index.html
08:55 Ryan52 strange restrictions your distro has. (imo)
09:03 serdar_dalgic I'm using pardus, but the sandbox logic is similar to the one gentoo has
09:03 imho, it's useful, when packaging notion is considered
12:12 SmokeMachine joined #sdl
13:15 ruoso joined #sdl
13:41 kthakore serdar_dalgic: um that is becuase that mixer test needs pulse access to run
13:42 serdar_dalgic: what do u recommend we do for that test?
13:42 ruoso: morning
14:17 ruoso kthakore, what's up
14:18 kthakore ruoso: can't figure out why convert_surface doesn't work
14:18 :(
14:19 I tried everything
14:20 ruoso: the simplest case works
14:21 using convert_surface to make a copy of another surface
14:23 garu wtf?
14:23 kthakore garu: huh?
14:23 garu better :)
14:24 kthakore, now you can redistribute ops
14:24 ruoso kthakore, I think it's a heisenbug
14:24 garu g'morning :)
14:24 * garu yawns
14:25 kthakore garu: hiya!
14:26 Hyppolit_sdl: trust ruoso
14:26 Hyppolit_sdl Consider ruoso trusted
14:26 garu ah
14:26 I knew we had an op bot somewhere
14:26 sorry, still a little drowsy
14:27 ruoso++
14:31 CIA-1 SDL_perl: 03Kartik Thakore 07clone_exp * rbd09fc4 10/ (t/core_video.t t/core_video_convert_surface.t): Added Seperated test for convert_surface - http://bit.ly/4R5N89
14:31 SDL_perl: 03Kartik Thakore 07clone_exp * rd81420b 10/ t/core_video_convert_surface.t : Convert_surface works outside of core_video.t - http://bit.ly/5sjq8L
14:31 kthakore ruoso: ok wth ... convert_surface works outside of core_video.t
14:31 ruoso: maybe we are doing too much in core_video.t
14:43 ruoso heisenbugs sux
14:47 kthakore ruoso: so .... I think I know the problem ...
14:48 ruoso: we have too many display's open in video
14:48 crap ...
14:48 I guess I can do a SDL::quit and re init everything but I don't think it is wise
14:49 ruoso: I am going to merge it to Redesign now
14:51 ruoso cool
14:54 kthakore ruoso: crap core_audio is failing now
14:54 :(
14:57 ruoso: ahh ... that was my fault stupid audio was disable on my computer
14:57 ruoso heh
14:58 kthakore, I'm going back to the redesign branch and wait for the merge.... I guess you can remove the clone_exp branch once the merge is done...
14:58 kthakore ryeah
14:58 ruoso: before you move can you check this audio test? I get a wstat of 11
14:58 might just be my computer
14:59 ruoso: I pushed it
14:59 CIA-1 SDL_perl: 03Kartik Thakore 07clone_exp * ree702fb 10/ (t/core_audio.t t/core_video.t): Added more tests to core_audio.t for clarity - http://bit.ly/7Ch6Gm
15:02 SDL_perl: 03Kartik Thakore 07clone_exp * r2ddcc02 10/ (t/core_audiospec.t xt/07_core_memleak.t): Made audiospec test not buzz at cpan testers cause we are nice people - http://bit.ly/830X7Q
15:03 ruoso is that in clone_exp or in redesign?
15:04 * ruoso running tests in clone_exp
15:04 ruoso I get a skip in core_audi
15:07 kthakore ruoso: right I skip audiospec because it makes sound at testers
15:08 they complained at me
15:08 ruoso: you can turn this test on by export RELEASE_TESTING=1
15:08 ruoso: did core_audio.t pass?
15:09 ruoso segfaults
15:09 after test 9
15:09 kthakore crap
15:13 ruoso: can you paste your verbose?
15:15 ruoso it breaks in XS_SDL__AudioSpec_DESTROY ()
15:16 kthakore :(
15:16 AHHH
15:17 AudioSpec Should not be destroyed there :(
15:17 free_wav takes care of that
15:17 damn it
15:17 there should be a way to say don't destroy this ref right?
15:17 in perl
15:21 oh! I know
15:21 we return the reference with a refcnt of 0
15:22 so it is not destroied
15:23 ruoso: I found the problem
15:23 seav_push(RETVAL, sv_setref_pv( asref, "SDL::AudioSpec", (void *)temp));
15:23 how do I make a bag thing for your code?
15:24 also same problem in src/Core/Events.xs line 30
15:24 and
15:25 src/Core/Audio.xs line 64
15:25 ruoso: can you make those bags please or tell me how to?
15:45 CIA-1 SDL_perl: 03Kartik Thakore 07clone_exp * r25aadf6 10/ (src/Core/Audio.xs src/Core/Events.xs t/core_audio.t): Okay handling bag creation manually for dyanamic O_OBJECT creation for Event and Audio - http://bit.ly/5DxiQJ
15:45 kthakore ruoso: try this ^^
15:46 garu: can you try this too?
16:28 ruoso kthakore, why does load_wav return an AV*
16:28 ?
16:31 kthakore ruoso: because it gives you the audiospec buf and len
16:31 so you can modify it
16:31 that was the only way to return it
16:31 temp = SDL_LoadWAV(filename,temp,&buf,&len);
16:32 ruoso wouldn't it be the case of creating an SDL::Wav object that would hold that data?
16:32 kthakore it returns data in buf, len and the audiospec is returned
16:32 not sure SDL_LoadWav doesn't make a new wav object for us
16:33 http://sdl.beuc.net/sdl.wiki/SDL_LoadWAV
16:33 ruoso: ^^
16:34 ruoso kthakore, I see... but... it's strange to require the user to call free_wav
16:34 kthakore ruoso: I know
16:34 ruoso if we encapsulate the wav into a new object
16:34 kthakore we will later
16:34 SDLX::Audio should do this
16:35 ruoso right
16:36 kthakore, Audio.xs looks fine
16:36 what is missing there?
16:38 Events.xs looks fine too
16:39 kthakore no I just added a bag thing for the ref
16:39 did the test work?
16:39 t/core_audio.t?
16:46 ok we are back on redesign branch
16:46 I gtg study
17:36 SmokeMachine joined #sdl
17:54 kthakore SmokeMachine: hi
17:55 SmokeMachine: can you try out this http://github.com/kthakore/SDL[…]/tarball/redesign
17:56 garu: ^^ can you test the redesign branch please?
17:59 TonyC: can you please test http://github.com/kthakore/SDL[…]/tarball/redesign
18:06 kthakore left #sdl
18:11 kthakore joined #sdl
21:02 CIA-1 SDL_perl: 03Kartik Thakore 07redesign * rc6edf02 10/ t/core_audio.t : Cannot do load_wav after SDL::Audio::close() - http://bit.ly/5ZfqiX
21:04 SDL_perl: 03Kartik Thakore 07redesign * r06bbe8a 10/ (CHANGELOG lib/SDL.pm): Moved up to release 2.3_5 - http://bit.ly/4EXd5z
21:05 kthakore ruoso: that is going on CPAN, if there are no objections, in a few hours
21:05 garu: ^^
21:06 ruoso kthakore, awesome
21:07 kthakore ruoso: did you test it?
21:09 ruoso yeah... I think...
21:09 kthakore the 2.3_5
21:09 I meant
21:10 ruoso kthakore, did you merge clone_exp?
21:12 kthakore yup
21:12 it is on redesign now
21:12 with the fix for audio and event
21:13 * ruoso running a last test
21:19 ruoso kthakore, there's a fail in gfx, but I think I might be missing a library
21:19 undefined symbol: shrinkSurface
21:19 maybe it requires a newer sdl
21:27 kthakore new sdlgfx stuff
21:27 what version do you have
21:27 I will have it exclude sdlgfx tests for below versions

← Previous day | Index | Channel Index | Today | Next day → | Search | Google Search | Plain-Text | plain, newest first