These are chat archives for AvaloniaUI/Avalonia

8th
Nov 2015
Nikita Tsukanov
@kekekeks
Nov 08 2015 01:51
I was trying to get it working on android for hours
It segfaults during opengl initialization
Nikita Tsukanov
@kekekeks
Nov 08 2015 02:35
Well
At least I got Linux one fixes
Darnell Williams
@Seeker1437
Nov 08 2015 02:42
DOes it say what is causing the segfault on android?
Weston
@ronnyek
Nov 08 2015 02:43
Does it ever? I think you have to use a core dump with gdb and get a better guess
Nikita Tsukanov
@kekekeks
Nov 08 2015 02:44
Well, it seems that it can't create a proper EGL context
Now I'm using different code
May be that's caused by the fact that I'm running it on simulator
I'll try on real device tomorrow
Mkay, it seems that I still need to implement some raster output for android
Now it's clear from the log, that it can't find a suitable device
At least Linux build is now working
Weston
@ronnyek
Nov 08 2015 02:50
Yeah the simulator isn't even a simulator... Its just a virtual machine running full blown is
Nikita Tsukanov
@kekekeks
Nov 08 2015 02:51
Now it doesn't render images
Wtf
Weston
@ronnyek
Nov 08 2015 02:53
Is it conceivable that an actual perspex app will be able to run something with skia backend without having to specify w32 etc?
Universal binary?
Nikita Tsukanov
@kekekeks
Nov 08 2015 02:54
blob

specify w32

Specify what?

Weston
@ronnyek
Nov 08 2015 02:54
I thought you had to specify backend in initialization
Nikita Tsukanov
@kekekeks
Nov 08 2015 02:55
blob
Well, currently we have some kind of platform detector
It lives in Application.cs
Weston
@ronnyek
Nov 08 2015 02:55
Cool
Nikita Tsukanov
@kekekeks
Nov 08 2015 02:55
Skia won't be there for desktop platforms until I'll make damn thing a bit more stable
Weston
@ronnyek
Nov 08 2015 02:56
Understandable
Nikita Tsukanov
@kekekeks
Nov 08 2015 03:16
I see. When using GL backend it's unable to draw images. When using GLES backend it's unable to draw text
Totally weird
Oh, that's actually funny. When I try to use Bumblebee it's unable to create gl context at all
Nikita Tsukanov
@kekekeks
Nov 08 2015 03:30
../../src/gpu/gl/GrGLCaps.cpp:821: failed assertion "fConfigTextureSupport[kBGRA_8888_GrPixelConfig] || kSkia8888_GrPixelConfig != kBGRA_8888_GrPixelConfig"
I have now idea what does that mean
Oh
That was, actually, my fault
I was creation GLES function set for GL interface
Nikita Tsukanov
@kekekeks
Nov 08 2015 03:37
Does anyone here have some linux machine with nVidia/ATI graphics with proprietary driver (NOT optimus)?
Need to test it there
Since optirun breaks something in EGL
Darnell Williams
@Seeker1437
Nov 08 2015 03:38
I do yes
It's an older one though but it is nVidia running the propritary driver
LD_LIBRARY_PATH=`pwd` mono TestApplication.exe
Darnell Williams
@Seeker1437
Nov 08 2015 04:42
setting up
Darnell Williams
@Seeker1437
Nov 08 2015 12:05
@kekekeks ah updated to the new ubunut, kernel 3 wont boot on ky computer and I need it to run enough to install k2
Could not test
Nikita Tsukanov
@kekekeks
Nov 08 2015 12:05

kernel 3 wont boot on ky computer

Have you raided a museum?

Johan Larsson
@JohanLarsson
Nov 08 2015 12:15
:)
Darnell Williams
@Seeker1437
Nov 08 2015 12:17
It is an old computer xD
Wiesław Šoltés
@wieslawsoltes
Nov 08 2015 13:14
XUbuntu.png

https://dl.dropboxusercontent.com/u/18301199/wat.tar.gz

It runs on XUbuntu 15.10 x64 (using VirtualBox)

Nikita Tsukanov
@kekekeks
Nov 08 2015 13:18
You are using MESA renderer
I was interested in nVidia one
Mkay, got sw linux drawing working
Nikita Tsukanov
@kekekeks
Nov 08 2015 14:36
Hoooraay!
Finally got something on screen
Still need to somehow offload sw-rasterized image for devices without proper opengl
Nikita Tsukanov
@kekekeks
Nov 08 2015 14:41
I/BufferQueue(  125): [SurfaceView](this:0xb8338558,id:80,api:0,p:5680,c:125) connect: api=1 producer=(5680:Perspex.Skia.Android.TestApp) producerControlledByApp=true
D/skia    ( 5680): Surface created 0x0
I/PERSPEX ( 5680): Surface Changed
D/skia    ( 5680): Resize 1024 471
Even rotation is working properly
Nikita Tsukanov
@kekekeks
Nov 08 2015 15:37
Yeah, got it working
Weston
@ronnyek
Nov 08 2015 16:00
Screenies?
Darnell Williams
@Seeker1437
Nov 08 2015 16:17
yeah @kekekeks it only works when SurfaceViewCanvasOnDraw is used fot me
oh that was off top
Darnell Williams
@Seeker1437
Nov 08 2015 16:54
off topic
Nikita Tsukanov
@kekekeks
Nov 08 2015 17:44

Screenies?

Do you want to see a white rectangle on black background?

Weston
@ronnyek
Nov 08 2015 17:46
Oh I thought you had demo apps running on top of an Android surface
Can framework already handle touches and stuff or just treats touch as a click
Nikita Tsukanov
@kekekeks
Nov 08 2015 17:51
@donandren has already taken care of input handling
And other stuff
I'm working on xplat renderer, not on platform support itself
Weston
@ronnyek
Nov 08 2015 17:52
Nice
Xplat just meaning cross platform.. Not actually a specific framework right?
Nikita Tsukanov
@kekekeks
Nov 08 2015 18:02
Specific framework that works everywhere except Windows Phone
But who cares about Windows Phone?
Weston
@ronnyek
Nov 08 2015 18:04
Well considering windows phone is moving to portable apps
Nikita Tsukanov
@kekekeks
Nov 08 2015 18:39
This message was deleted
Weston
@ronnyek
Nov 08 2015 18:40
Cool
Nikita Tsukanov
@kekekeks
Nov 08 2015 18:40
            protected override void OnRender(DrawingContext ctx)
            {
                ctx.FillRectangle(Brushes.Green, new Rect(0, 0, Width, Height));

                var rc = new Rect(0, 0, Width/3, Height/3);
                using (ctx.PushPostTransform(
                    Perspex.Matrix.CreateTranslation(-Width/6, -Width/6)*
                    Perspex.Matrix.CreateRotation(_radians)*
                                             Perspex.Matrix.CreateTranslation(Width/2, Height/2)))
                {
                    ctx.FillRectangle(new LinearGradientBrush()
                    {
                        GradientStops =
                        {
                            new GradientStop() {Color = Colors.Blue},
                            new GradientStop(Colors.Red, 1)
                        }
                    }, rc, 5);
                }


            }

            public override bool OnTouchEvent(MotionEvent e)
            {
                if (e.Action == MotionEventActions.Down)
                    return true;
                if (e.Action == MotionEventActions.Move)
                {
                    _radians = (e.RawY + e.RawY)/100;
                    Invalidate();
                    return true;
                }
                return base.OnTouchEvent(e);
            }
        }
No I need to somehow solve binaries issue
We can't store them in the repo
I guess I need a separate dropbox account for that or something
Nikita Tsukanov
@kekekeks
Nov 08 2015 19:11
@grokys I think I'll be keeping libperspesk binaries in my dropbox
I'll add a PowerShell/Bash scripts for keeping them in sync
So we can download them automatically on build server
Is that ok?
Steven Kirk
@grokys
Nov 08 2015 19:24
Sounds good to me
José Manuel Nieto
@SuperJMN
Nov 08 2015 21:31
OmniXAML is becoming rock solid
Nikita Tsukanov
@kekekeks
Nov 08 2015 22:38
Johan Larsson
@JohanLarsson
Nov 08 2015 22:51
typo on 211?
Nikita Tsukanov
@kekekeks
Nov 08 2015 22:51
dlerror = Dynamic Linker Error
Johan Larsson
@JohanLarsson
Nov 08 2015 22:52
ok, though dll :)
Nikita Tsukanov
@kekekeks
Nov 08 2015 22:55
I hate powershell
there is no power there
Johan Larsson
@JohanLarsson
Nov 08 2015 22:55
i rarely use it
Nikita Tsukanov
@kekekeks
Nov 08 2015 22:55
I can do a lot more with bash one-liner
Unable to checkout '55fc2abc715885d3686f8c8605f34714445cd72f' in submodule path 'src/Markup/Perspex.Markup.Xaml/OmniXAML'
wat
@grokys
Steven Kirk
@grokys
Nov 08 2015 23:02
Hmm, not sure what's happened there. Will fix tomorrow morning
Nikita Tsukanov
@kekekeks
Nov 08 2015 23:03
It seems that revision got deleted from omnixaml repo
Steven Kirk
@grokys
Nov 08 2015 23:03
Oh yeah. I had to sync it with the main fork
I'd accidentally committed some stuff to master
Nikita Tsukanov
@kekekeks
Nov 08 2015 23:06
Well, I still have old revision on my computer
Pushing it as ghost-branch-1
Github deletes commits that don't belong to any branch
So does your local git when running git gc