These are chat archives for AvaloniaUI/Avalonia

15th
Feb 2018
Steven Kirk
@grokys
Feb 15 2018 00:33
oh... just found a problem with textbox with scrollbars. clicking on the scrollbar produces weird effects, like it doesn't register the clicks properly
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 00:43
one thing is clear to me
blob
that example is a infitine loop without sleep printing a console writeline date
29mb
now pure skia sample drawing in the same loop
blob
it doesn;t pass 39mb with a full screen draw every loop
@grokys so looks to me that the rest of the memory consumption is indeed from Avalonia
Steven Kirk
@grokys
Feb 15 2018 00:57
hmm wonder where that's coming from?
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 00:58
yeah...
at first I thought it was coming from Skia and its huge codebase
but it is not
the build with the profile option is finishing
I'll run again with profile enabled
I hope it give us some light
give me few minutes to try
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 01:52
trying to load the freaking profile here without success @grokys
/data/opt/app $ MONO_CONFIG=/data/opt/mono/etc/mono/config MONO_PATH=/data/opt/mono/lib/:/data/opt/mono/lib/mono/4.5 LD_LIBRARY_PATH=/data/opt/mono/lib ./mono --profile=log app.exe
The 'log' profiler wasn't found in the main executable nor could it be loaded from 'mono-profiler-log'.
Will call NativeOpen
^C
/data/opt/app $ ls ../mono/lib/libmono-profiler-*
../mono/lib/libmono-profiler-coverage.so        ../mono/lib/libmono-profiler-iomap.so.0.0.0
../mono/lib/libmono-profiler-coverage.so.0      ../mono/lib/libmono-profiler-log.so
../mono/lib/libmono-profiler-coverage.so.0.0.0  ../mono/lib/libmono-profiler-log.so.0
../mono/lib/libmono-profiler-iomap.so           ../mono/lib/libmono-profiler-log.so.0.0.0
../mono/lib/libmono-profiler-iomap.so.0
it is here but still fail to load
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 02:25
I have no means to test right now, but I would like to see how the .net core app behaved using the framebuffer... how much ram it used on x86 systems
Matthijs ter Woord
@mterwoord
Feb 15 2018 07:30
@jakesays Just ask away... :)
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 11:44
Guys, Idk if anyone had that, but my VS is spamming me
blob
Matthijs ter Woord
@mterwoord
Feb 15 2018 12:09
is there any good guide out there (pointing out of window now..) about reactive ui?
Steven Kirk
@grokys
Feb 15 2018 12:16
@galvesribeiro that will hopefully be fixed by AvaloniaUI/AvaloniaVS#63
@mterwoord not sure exactly what you're looking for but there's http://docs.reactiveui.net/
Matthijs ter Woord
@mterwoord
Feb 15 2018 12:18
hmm, maybe i should just ask more ocncrete questions.. :)
does it handle threading? :)
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 12:52
@grokys thanks
also, was trying to run the profiler on the device with avalonia
its impossible...
I left the device online for almost 2 hours
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 12:53
it didn't loaded Avalonia
Steven Kirk
@grokys
Feb 15 2018 12:53
oh :/
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 12:53
profile is a HUGE perf hit
and memory hungry, so it will just make things worse
so, the only thing we can try similar, is to run in a Raspberry PI with Mono and the framebuffer
that way at least we can see results
Steven Kirk
@grokys
Feb 15 2018 12:54
yeah, thing is a hello world app on windows uses 25.5MB so i don't understand why mem usage is so high on your device
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 12:55
the problem is that PIs are not sold in Brazil, I ordered two yesterday before sleep, but they will take 1-2 weeks to get here from USA
I can't wait that long :(
yeah, I guess most of the work on windows is done outside Avalonia and Windows doesn't use Skia backend?
Steven Kirk
@grokys
Feb 15 2018 12:56
do you know how much memory a hello world uses on mono/linux/skia on a normal PC?
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 12:56
no idea
what I know is that a mono+skia+linux on my device eats 29mb
which is perfectly fine
mono+linux alone eat 23mb
Steven Kirk
@grokys
Feb 15 2018 12:58
hello world on dotnet core on windows with skia uses 43.2mb
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 12:59
hum?
Steven Kirk
@grokys
Feb 15 2018 12:59
.net framework 37.6mb
so yeah seems skia uses more, but not that much more
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:00
with skia?
Steven Kirk
@grokys
Feb 15 2018 13:00
yes with skia
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:00
Skia is 3mb the binary + 3mb runtime memory as far as I can tell
ofc, with my supper dupper shrinked build
Steven Kirk
@grokys
Feb 15 2018 13:01
this is on windows using task manager to measure the size
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:01
yeah
same here using top
it doesn't count shared memory
which is ok
we are measuring the same way
Steven Kirk
@grokys
Feb 15 2018 13:02
so question remains why is it so high on your device
i don't have a linux installation right now to try it on
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:03
and with a display, I only have this device
oh
wait
there a point as well
idk if it justify 39mb -> 161mb difference but, the device doesn't have GPU
so anything is drawn from memory
really need a linux with GFX
ok, let me spin up an ubuntu VM here once and for all
1m
danwalmsley
@danwalmsley
Feb 15 2018 13:14
@galvesribeiro i think even on Linux on PC it's using software rendering with skia
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:14
humm
danwalmsley
@danwalmsley
Feb 15 2018 13:15
I have a Pi here if you wanted me to try it out for you, you'd have to give me instructions on how to set it up though
Pi 3
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:15
that is good
it has GPU but, that is good, thanks
let me first try here with the VM
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:15
@galvesribeiro you made your own pi build, right?
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:15
alreayd installed
@mterwoord pi build?
you mean skia for ARM?
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:16
of sia, yes
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:16
yeah I did
why?
it works perfectly outside Avalania
I'm just trying to keep my sanity to confirm where the heavy memory usage is comming from
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:19
test on pi with your build, and as test with my build..
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:19
I don't have a PI yet
will arrive in 1-2 weeks from now
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:20
ahh, shoot. at work now, mixing you with @danwalmsley
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:20
I have 1, but it is doomed
hahaha
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:32
well
at least the regular .net core control gallery took a while to load
blob
122mb
private\
60 shared
but that is not using FB
let me see with it
blob
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:36
i've had issues with framebuffer as well. not sure if its same one. i resorted using x11 with fb backend (on my yocto-based raspberry environment)
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:38
problem is that the device dont have X
if for whatever magic on earth I could compile X to add to it, I eventually would have few memory on the device itself
not to mention IIRC X has some driver requirements in order to run
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:40
just saying.. :)
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:40
I wish there was some sort of tiny X implementation that would run on this device as a binary...
many UI framework would be available just because of it
:(
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:40
wayland and friends dont work either?
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 13:47
Wayland requires openGL, doesnt?
Matthijs ter Woord
@mterwoord
Feb 15 2018 13:53
no clue :)
dont ask me (= windows-based developer) all these weird questions.. ;)
Gutemberg Ribeiro
@galvesribeiro
Feb 15 2018 17:53
hahaha
Kushal
@9034725985
Feb 15 2018 19:47
I would like to make a small change to the avalonia dot net website home page. How do I do that?
Kushal
@9034725985
Feb 15 2018 19:51
Ah, I see ![](images/inspection-support.png) basically the only change I wanted to make was to make this image fit inside the parent container >_>
where is this theme.css?
Steven Kirk
@grokys
Feb 15 2018 19:57
@9034725985 here's the repo for the site: https://github.com/AvaloniaUI/avaloniaui.net
oops, gitter wasn't updating
Kushal
@9034725985
Feb 15 2018 19:57
Thank you, jp2masa sent me the site as well. I am trying to add maximum-width: 100% to the bottom image
but I don't know how to wyam
Kushal
@9034725985
Feb 15 2018 20:08
Steven Kirk
@grokys
Feb 15 2018 21:01
@9034725985 wyam?
Kushal
@9034725985
Feb 15 2018 21:01
that's the tool you use to build the site
actually, if you're using the base theme we should probably fix this in wyam project, not here
Steven Kirk
@grokys
Feb 15 2018 21:47
ah, ha sorry I didn't even know what it was built in, i've not been involved in the site
Alex
@awulkan
Feb 15 2018 23:08
I recently built a small app for UWP, but everytime I minimize it, it stops running. How does Avalonia handle minimized state? Does it continue executing the code, or does it pause?
Steven Kirk
@grokys
Feb 15 2018 23:30
@AWulkan yes it continues executing
Alex
@awulkan
Feb 15 2018 23:38
Okey, cool.
How resource hungry is Avalonia? For example if you create a small "Hello World" app with some controls and pages, nothing special.
Like, RAM/CPU usage