These are chat archives for AvaloniaUI/Avalonia

15th
Dec 2017
I guess we could use it for log message formatting without serilog
It seems to have the same string format
danwalmsley
@danwalmsley
Dec 15 2017 13:33
@jkoritzinsky #1317 fixes the issue, looks good, obviously some failing unit test there
Matthijs ter Woord
@mterwoord
Dec 15 2017 13:35
is there any reason why avalonia doesn't use the portable pdb format?
danwalmsley
@danwalmsley
Dec 15 2017 13:38
@grokys btw iv just tried to run AS with UseDirect2D1(), instead of UseSkia(), and it crashes immediately
all I get is:
The program '[10352] dotnet.exe' has exited with code -1073740791 (0xc0000409).
The program '[10352] dotnet.exe: Program Trace' has exited with code 0 (0x0).
Matthijs ter Woord
@mterwoord
Dec 15 2017 13:41
no unhandled exception?
danwalmsley
@danwalmsley
Dec 15 2017 13:41
nope
Matthijs ter Woord
@mterwoord
Dec 15 2017 13:41
ouch
danwalmsley
@danwalmsley
Dec 15 2017 13:41
just this
image.png
Matthijs ter Woord
@mterwoord
Dec 15 2017 13:42
any clues in windows event log?
shoot. i'm building against avalonia sources now, and somehow i dont get file locations in stack traces with exceptions. any idea?
danwalmsley
@danwalmsley
Dec 15 2017 13:43
Faulting application name: dotnet.exe, version: 2.0.25816.2, time stamp: 0x59e535ea
Faulting module name: ucrtbase.dll, version: 10.0.15063.674, time stamp: 0x8ac9f9d4
Exception code: 0xc0000409
Fault offset: 0x000000000007350e
Faulting process ID: 0xe4c
Faulting application start time: 0x01d375aa6c9b4195
Faulting application path: C:\Program Files\dotnet\dotnet.exe
Faulting module path: C:\Windows\System32\ucrtbase.dll
Report ID: 6fa300bb-14c3-4909-ba4c-8ddae5fa7a0d
Faulting package full name: 
Faulting package-relative application ID:
no idea
it doesn't stop me, I just use skia most of the time, but was interested to see how direct2d backend looked
Nikita Tsukanov
@kekekeks
Dec 15 2017 13:44
try to debug it with windbg, I guess
Matthijs ter Woord
@mterwoord
Dec 15 2017 13:45
@kekekeks any idea on my stack trace issue?
Nikita Tsukanov
@kekekeks
Dec 15 2017 13:46
never had this issue before
Outdated PDB files, probably
Matthijs ter Woord
@mterwoord
Dec 15 2017 13:47
hmm, lets see, that would mean some file location goofup..
seems like its related to avalonia using "Full" debugging info format
danwalmsley
@danwalmsley
Dec 15 2017 13:51
(908.2f88): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
ntdll!LdrpDispatchUserCallTarget+0xe:
00007fff`66d0632e 4f8b1cd3        mov     r11,qword ptr [r11+r10*8] ds:03fc39f1`bb1fbbf8=????????????????
I'm not really sure what to look at here
Nikita Tsukanov
@kekekeks
Dec 15 2017 13:54
load sos plugin and examine clr stacks
.loadby sos coreclr
danwalmsley
@danwalmsley
Dec 15 2017 13:58
 .loadby sos coreclr
Unable to find module 'coreclr'
if I let it run a bit
then do it,
its ok
but I don't see any managed stack frames
do I need to manually load pdb or something?
hmm maybe I need full pdbs for windbg
danwalmsley
@danwalmsley
Dec 15 2017 14:05
teamviewer?
@kekekeks
Matthijs ter Woord
@mterwoord
Dec 15 2017 14:14
right now, the debugtype is hardcoded as full for many projects. would a pr making that overridable be accepted?
danwalmsley
@danwalmsley
Dec 15 2017 14:27
id of thought so, people will want to debug on Linux / mac at some point
Matthijs ter Woord
@mterwoord
Dec 15 2017 14:29
right now, most project files contain <DebugType>full</DebugType>
i'd suggest (at least for now) making that into a "only set if not yet set already"
i'll make a PR for that soon.
and Portable.Xaml PR's should happen against cwensley's repository, i guess?
Matthijs ter Woord
@mterwoord
Dec 15 2017 14:37
See #1321
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:02
what's best place to discuss protable xaml things?
Nikita Tsukanov
@kekekeks
Dec 15 2017 15:25
@mterwoord I have absolutely no issues with debugging avalonia with Rider
on Linux/OSX
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:35
i'm running on windows now. using .net core 2.0
the runtime Exception.ToString() doesn't produce the line numbers in the stacktrace
you're basically saying something is goofed up on my end?
Nikita Tsukanov
@kekekeks
Dec 15 2017 15:39

i'm running on windows now

Then you shouldn't have any issues with PDB format whatsoever

Matthijs ter Woord
@mterwoord
Dec 15 2017 15:40
even when on .net core?
Nikita Tsukanov
@kekekeks
Dec 15 2017 15:40
The reason why portable PDB format exists
Is that original PDB reader is a part of win32 API
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:40
porable?
avalonia is using full
Nikita Tsukanov
@kekekeks
Dec 15 2017 15:41
DebugType Defines the level of debug information that you want generated. Valid values are "full," "pdbonly," and "none."
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:41
that's with normal project system, new (.net core) project system has portable as well
Nikita Tsukanov
@kekekeks
Dec 15 2017 15:42
We should remove these propertygroups completely anyway
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:50
does avalonia use a custom build of portable xaml or the upsteam one?
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:52
so where should PR's go? upstream or there?
Nikita Tsukanov
@kekekeks
Dec 15 2017 15:52
That depends
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:52
i'm trying to improve error handling
feels like generic stuff....
Nikita Tsukanov
@kekekeks
Dec 15 2017 15:53
If it's not something avalonia-specific you should make PRs to upstream
We also need to somehow merge our patches back to upstream, but we aren't doing that because of the constant lack of time
Matthijs ter Woord
@mterwoord
Dec 15 2017 15:56
last activity on the upstream site is 3 months ago...
Nikita Tsukanov
@kekekeks
Dec 15 2017 16:03
It's quite stable and fast
It doesn't have to be under active development
Matthijs ter Woord
@mterwoord
Dec 15 2017 17:39
text in my app isn't being shown. textblock, explicit colors, font sizes etc.
can this be a distro/os issue?
Nikita Tsukanov
@kekekeks
Dec 15 2017 17:43
make sure that you have fonts
that you are trying to use
Matthijs ter Woord
@mterwoord
Dec 15 2017 17:43
how to find out which one is used? :)
Matthijs ter Woord
@mterwoord
Dec 15 2017 18:43
in /usr/share/fonts/ttf there are a couple of files
one of them is LiberationSans-Regular.ttf
i set the FontFamily property of the textblock to LiberationSans-Regular
but nothing appearing
Nikita Tsukanov
@kekekeks
Dec 15 2017 18:50
Try to set it to LiberationSans
Matthijs ter Woord
@mterwoord
Dec 15 2017 19:28
Ok. Will try tomorrow. Thanks.
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 19:37
@danwalmsley can you take a look at the bugs you filed in the Pre-Beta and Beta 1 milestones and check if they still repro? Some of these issues haven't been updated in a year, so I want to make sure they're still bugs before spending time on fixing them
danwalmsley
@danwalmsley
Dec 15 2017 19:37
Ok will do
#1143 repos still
#1142 i will have to double check i think it might have been fixed (by accident)
danwalmsley
@danwalmsley
Dec 15 2017 19:43
#522 i will have to re evaluate since data context changed events are done completely differently
Now
#809 i will check tonight, last time I looked it was still an issue

1074is still an issue, id like to fix that one myself but looking for some input on how you guys

danwalmsley
@danwalmsley
Dec 15 2017 19:48
#1074
Would like the api to look
Nikita Tsukanov
@kekekeks
Dec 15 2017 19:49
We need to redesign that API completely, I think
danwalmsley
@danwalmsley
Dec 15 2017 19:49
Not really sure how relevant #556 is now
Basically that issue is CurrentFolder and CurrentPath (or equivalent, I'm on mobile) have completely different behaviours on windows and linux
I had to put an if statement around open folder and open file dialog calls in AS
danwalmsley
@danwalmsley
Dec 15 2017 20:14
@jkoritzinsky I think master has been broken by
#1319
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:15
Master is broken because of the bug in .NET Framework 4.7.1.
And the appveyor image got updated again so master on windows broke.
danwalmsley
@danwalmsley
Dec 15 2017 20:16
ah
does that cause these
Avalonia.Input.UnitTests.KeyboardNavigationTests_Custom.Right_Should_Custom_Navigate_From_Outside [FAIL]
to fail right?
jp2masa
@jp2masa
Dec 15 2017 20:17
if you use the Visual Studio 2017 image, it will probably work I think
and the Visual Studio 2017 image currently has VS 15.5.1
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:18

Master is broken because of the bug in .NET Framework 4.7.1.

valuetuple one?

Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:19
Yep
danwalmsley
@danwalmsley
Dec 15 2017 20:19
should I change to previous 2017 image?
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:19
We need our own build host or something
jp2masa
@jp2masa
Dec 15 2017 20:19
currently you're using the previous image
that's why it's failing
danwalmsley
@danwalmsley
Dec 15 2017 20:20
lets see if this works now
it was on the latest
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:22
@danwalmsley I opened a PR to try out using their current image.
danwalmsley
@danwalmsley
Dec 15 2017 20:22
ok
I'm going through those issues to try and repro them
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:23
:+1:
danwalmsley
@danwalmsley
Dec 15 2017 20:32
@kekekeks I think #1183 seems to have resolved itself are you able to confirm same on Linux?
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:38
Issue seems to be fixed but everything is SUPER SLOW
danwalmsley
@danwalmsley
Dec 15 2017 20:39
pretty sure #1183 and #1142 are resolved @jkoritzinsky just checked and don't seem to be able to repro
@kekekeks you know the previewer
image.png
If I'm on higher dpi display
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:39
Ok I'll close them.
danwalmsley
@danwalmsley
Dec 15 2017 20:39
it renders at lower DPI and doesn't look too great
is there a way to configure this yet?
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:41
The new appveyor image doesn't fix the ValueTuple bug.
The only fix I know is to cross-target net471 so the right assembly versions are resolved
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:42
for some reason there is a serious lag
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:42
And I can't repro #1183 any more either.
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:43
Yep, the glitch isn't there anymore
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:46
@wieslawsoltes Can you try to repro again the bugs you've opened that are in the "Pre-Beta" and "Beta 1" milestones?
danwalmsley
@danwalmsley
Dec 15 2017 20:56
@jkoritzinsky I think #1314 looks like a fairly serious bug we might want to milestone
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:56
They get finalized later anyway
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:57
Let's milestone it for Beta2 for now.
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:57
It's not like they are leaking or something
danwalmsley
@danwalmsley
Dec 15 2017 20:57
ok
@kekekeks do you remember that one where the horizontal scrollbar kept appearing and re-appearing and overloading the layout pass queue?
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:57
yep
danwalmsley
@danwalmsley
Dec 15 2017 20:57
which issue was that
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:58
@danwalmsley What's your system setup for reproing #1320?
danwalmsley
@danwalmsley
Dec 15 2017 20:58
did we have one?
Nikita Tsukanov
@kekekeks
Dec 15 2017 20:58
we never had a repro
danwalmsley
@danwalmsley
Dec 15 2017 20:58
@jkoritzinsky I just use Windows 10
and avalonstudio
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:58
Ok. I'll try cloning AvalonStudio and reproing it.
danwalmsley
@danwalmsley
Dec 15 2017 20:58
and change code in app.xaml.cs to UseDirect2d!
I tried windbg but couldn't figure much out
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:59
Is it possible to run AvalonStudio on .NET Framework (instead of core)?
danwalmsley
@danwalmsley
Dec 15 2017 20:59
technically it should be possible
but iv not tried for a long time
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:59
Because then you can do mixed-mode debugging and have a chance to catch the native exception.
danwalmsley
@danwalmsley
Dec 15 2017 20:59
I think you can probably just put net461 in csproj
I will try now
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 20:59
Or just try attaching the native debugger instead of the managed debugger.
danwalmsley
@danwalmsley
Dec 15 2017 20:59
btw when you clone
checkout implement-roslyn-workspaces branch
for reproing this
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 21:00
Ok.
danwalmsley
@danwalmsley
Dec 15 2017 21:01
I'm just trying with net461 now
danwalmsley
@danwalmsley
Dec 15 2017 21:16
not as easy as I thought
did you manage to repro the crash?
Jeremy Koritzinsky
@jkoritzinsky
Dec 15 2017 21:30
I cant even get AvalonStudio to build fully.
danwalmsley
@danwalmsley
Dec 15 2017 23:52
Did you checkout the branch
then do got submodule update --init
then dotnet restore
and dotnet build from dir with AvalonStudio.csproj