Files: App crash in release mode

Created on 28 Apr 2020  路  30Comments  路  Source: files-community/Files

Describe the bug
Sometimes app crash right after launch.

To Reproduce
Steps to reproduce the behavior:

  1. Build app in release mode and deploy
  2. Start app
  3. If it did not crash, restart app

Expected behavior
Expected normal start without crash

Desktop (please complete the following information):

  • OS: [e.g. Windows 10 1909 18363.815]
  • App version: [v0.7.9]

Additional context
Built from develop branch.

fixed

All 30 comments

I wonder if this is related to the changes @ADeltaX made...

@yaichenbaum Just reverted his changes and it is still crash

@yaichenbaum As i understand, that happen because of my changes about theme change

Oh, I did notice you switched to a different method for the get\set.

What do you mean?

Before your change, the setting for acrylic was a simple get and set, this would automatically save the setting as well saving us from needing to detect it when launching the app. An example of how it should be is,

public bool AcrylicSidebar
{
     get => Get(false);
     set => Set(value)
}

I remember this, but this implementation was buggy for toggle switches, to enable or disable it you had to click it twice. So i reworked it and it work good in debug mode.

We need to figure out why this implementation causes that issue, it's worth it to use the implementation I shared above since it is more compact. I have used a similar implementation for settings in others apps and it worked fine, so I must of missed something when copying it over.

Good example, preference page, onedrive toggle working good, to enable or disable next toggle(show dialog...) you have to click twice, but if you click only once and reload settings page, toggle will change state. But, anyway, i don't think get and set of acrylic parameter can cause app crash.

I wonder if this is related to the changes @ADeltaX made...

My code is 200% stable 馃槀馃槀馃槀

Anyway, jokes aside, I've had the same issue before my commit, and only in Release mode, so...
(PS: it happened on 0.7.7 store version for some reason but it's more random and rare)

I canceled the rollout of the v0.7.9 release. I am not sure what's going on but I would appreciate if someone can figure it out.

@yaichenbaum We can revert my changes until problem will not be fixed. Currently i really don't understand what's wrong with my patch in release mode. Any help appreciated.

@tsvietOK Did you get an exception when you tried running the app in release mode?

@yaichenbaum No, i can't catch any exception, app just crash right after start(Sometimes it starts fine).

@yaichenbaum Some notice, if comment line app starts fine(of course theme change in this case is not working)

"Unhandled exception at 0x00007FFA571232E0 (Windows.UI.Xaml.dll) in Files.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000001ECFDD83BA0, 0x0000000000000002)."

@yaichenbaum Sorry, i don't know what to do with this info:(

@tsvietOK I tried commenting out the line you linked and I still get the issue.

@yaichenbaum There is another line.

@yaichenbaum The problem is in var TintLuminosityOpacity in AppTheme. For some reason setting a value to this var in methods SetDefaultTheme(), SetLightTheme() and SetDarkTheme() causes app crash.

It turns out this issue goes back pretty far, it shouldn't be an issue for the store build.

@yaichenbaum We can keep my PR open until we will be sure that there is no issue for the store build

@yaichenbaum Bug in v0.7.9 still exists

@tsvietOK Even if you open the app a second time?

@yaichenbaum After reinstall and clear data first and second start - crash, third start successful

That is fine, does it work to create a new tab?

@yaichenbaum It crash when opening new tab

@yaichenbaum My PR should fix that

@tsvietOK Thank you for working on this issue, the fix is now out in production.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crashmit picture crashmit  路  3Comments

jbvc97 picture jbvc97  路  3Comments

generalguy41 picture generalguy41  路  3Comments

Cyberdroid1 picture Cyberdroid1  路  3Comments

Dylan-Osborne picture Dylan-Osborne  路  3Comments