These are chat archives for AvaloniaUI/Avalonia

16th
Feb 2018
Kushal
@9034725985
Feb 16 2018 03:04
I talked to the wyam folks. There's nothing to do at the moment. Upstream will fix. Tracking at Wyamio/Wyam#627
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:11

not sure why avalonia uses a custom built, but i'm pretty sure there's a good reason for that..

Constaint is there to prevent people from breaking their builds on Linux by using a different version of SkiaSharp package

revive the cairo backend to use only with the framebuffer

I think it has some dependencies on X11

Note sure though

SkiaSharp now ships with the native library in-package for the linux-x64 RID. Any reason we couldn't use their build

@jkoritzinsky which version of glibc are they targeting?

Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:14
I'll take a look and see if I can figure it out!
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:16
$ unzip ../skiasharp.1.59.3.nupkg 
Archive:  ../skiasharp.1.59.3.nupkg
  inflating: _rels/.rels             
  inflating: SkiaSharp.nuspec        
  inflating: lib/net45/SkiaSharp.dll  
  inflating: lib/net45/SkiaSharp.dll.config  
  inflating: lib/net45/SkiaSharp.xml  
  inflating: lib/MonoAndroid/SkiaSharp.dll  
  inflating: lib/MonoAndroid/SkiaSharp.xml  
  inflating: lib/XamariniOS/SkiaSharp.dll  
  inflating: lib/XamariniOS/SkiaSharp.xml  
  inflating: lib/XamarintvOS/SkiaSharp.dll  
  inflating: lib/XamarintvOS/SkiaSharp.xml  
  inflating: lib/XamarinMac/SkiaSharp.dll  
  inflating: lib/XamarinMac/SkiaSharp.xml  
  inflating: lib/uap10.0/SkiaSharp.dll  
  inflating: lib/uap10.0/SkiaSharp.xml  
  inflating: lib/netstandard1.3/SkiaSharp.dll  
  inflating: lib/netstandard1.3/SkiaSharp.xml  
  inflating: lib/portable-net45%2Bwin8%2Bwpa81%2Bwp8/SkiaSharp.dll  
  inflating: lib/portable-net45%2Bwin8%2Bwpa81%2Bwp8/SkiaSharp.xml  
  inflating: build/net45/SkiaSharp.targets  
  inflating: build/net45/SkiaSharp.dll.config  
  inflating: runtimes/win7-x64/native/libSkiaSharp.dll  
  inflating: runtimes/win7-x86/native/libSkiaSharp.dll  
  inflating: runtimes/osx/native/libSkiaSharp.dylib  
  inflating: runtimes/win10-x64/nativeassets/uap10.0/libSkiaSharp.dll  
  inflating: runtimes/win10-x86/nativeassets/uap10.0/libSkiaSharp.dll  
  inflating: runtimes/win10-arm/nativeassets/uap10.0/libSkiaSharp.dll  
  inflating: runtimes/win10-x64/nativeassets/uap10.0/libGLESv2.dll                                                                                                                                                                                                        
  inflating: runtimes/win10-x86/nativeassets/uap10.0/libGLESv2.dll                                                                                                                                                                                                        
  inflating: runtimes/win10-arm/nativeassets/uap10.0/libGLESv2.dll                                                                                                                                                                                                        
  inflating: runtimes/win10-x64/nativeassets/uap10.0/libEGL.dll                                                                                                                                                                                                           
  inflating: runtimes/win10-x86/nativeassets/uap10.0/libEGL.dll                                                                                                                                                                                                           
  inflating: runtimes/win10-arm/nativeassets/uap10.0/libEGL.dll                                                                                                                                                                                                           
  inflating: xamarin.interactive/SkiaSharp.Workbooks.dll                                                                                                                                                                                                                  
  inflating: [Content_Types].xml                                                                                                                                                                                                                                          
  inflating: package/services/metadata/core-properties/b544860e341b4e9f924ebc4361d17ffe.psmdcp
I don't see it in the package

Avalonia itself has a native linux library which is linked to SkiaSharp native librarie

You got it wrong. We have a precompiled libSkiaSharp.so for linux-x64. Which is tied to SkiaSharp package version, because of ABI.

@galvesribeiro
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:24
Yeah I figured out that it's in the next beta version. It hasn't been released.
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:24

@grokys

161mb!! ouch

It's the same on Linux desktop, actually
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:24
I pulled down the beta version and ran ldd on them. Here's the output I got:
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:25
For our control catalog managed heap is somewhat ~35MB, runtime heap ~10MB, bitmaps ~10MB
I have no idea what occupies the rest
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:25
jkori@Jeremy-Surface-Book:/mnt/c/Users/jkori/Downloads$ ldd libSkiaSharp.so
        linux-vdso.so.1 =>  (0x00007fffe67c8000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3d547d0000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3d545c0000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f3d54360000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3d54050000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3d53e30000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3d53a50000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f3d55400000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f3d537a0000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f3d53570000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3d53340000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f3d53110000)
jkori@Jeremy-Surface-Book:/mnt/c/Users/jkori/Downloads$ ldd libSkiaSharp.so.60.0.0
        linux-vdso.so.1 =>  (0x00007fffc6d9a000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc4a3af0000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc4a38e0000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fc4a3680000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc4a3370000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc4a3150000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc4a2d70000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc4a4600000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fc4a2ac0000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fc4a2890000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc4a2660000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fc4a2430000)
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:26

libpng12.so.0

That's bad

Please, file an issue so they compile it statically
Also, libfreetype.so.60
Hm
Please, send me the binary
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:26
Any chance you can file the issue? You'll be better able to explain it than me.
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:27
Need to check with lddtree and objdump
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:27
I downloaded the libraries from their Jenkins build here: https://jenkins.mono-project.com/view/Components/job/Components-SkiaSharp-Linux/119/Azure/
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:27
Oh, thanks
Wow, they have a CI builder
So it would be possible to make PRs, great
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:27
Yep. This build is actually one out of date haha. The most current one failed.
Also they're building libSkiaSharp with traditional Makefiles now.
Deps are OK
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:30
Perfect :ok_hand:
Once SkiaSharp 1.60.0 releases we can fully evaluate upgrading and using their native builds.
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:31
$ objdump -T libSkiaSharp.so |grep -o 'GLIBC[^ ]*'|sort -n |uniq
GLIBC_2.11
GLIBC_2.14
GLIBC_2.17
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.7
GLIBC_2.17
That's not OK
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:32
I'd say open an issue and hopefully it can get resolved before they release 1.60.0.
Nikita Tsukanov
@kekekeks
Feb 16 2018 08:32
Well, Ubuntu 14.04 has glibc 2.19
And it's the year 2018 already
we should be fine
Jeremy Koritzinsky
@jkoritzinsky
Feb 16 2018 08:39
Lowest .net core 2.0 supports anyway is Ubuntu 14.04. So we should be good except for maybe some eccentric Mono-based systems.
Mono uses up to 2.15, so we might have issues on some use cases with Mono, but I'd think those would be pretty rare nowadays.
danwalmsley
@danwalmsley
Feb 16 2018 09:56
can #1373 be merged?
Steven Kirk
@grokys
Feb 16 2018 09:58
yep!
danwalmsley
@danwalmsley
Feb 16 2018 10:00
how far are we off the release now? any more issues to resolve?
Nikita Tsukanov
@kekekeks
Feb 16 2018 11:54
It would be nice if someone checked if VS extension works fine
Like, done a proper testing
I still need to figure out why our ButtonsPage.xaml crashes previewer (both old and new versions)
Big Jake
@jakesays
Feb 16 2018 17:08
@mterwoord are you using HDMI?
Steven Kirk
@grokys
Feb 16 2018 20:03
thanks for looking into that @9034725985 !
@danwalmsley yeah i'd like to do the release this weekend if possible
Steven Kirk
@grokys
Feb 16 2018 20:12
could someone try out AvaloniaUI/AvaloniaVS#57 and try creating a new project?
when i do, the designer doesn't work for me
Steven Kirk
@grokys
Feb 16 2018 20:49
also: if anyone's interested i have a this branch https://github.com/AvaloniaUI/Avalonia/tree/custom-rx where i've managed to cut control catalog's memory by 1/3
i'd be interested to know if it causes issues for anyone