Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fyne error: Custom filter types not supported on mobile (Android) #2012

Closed
yml opened this issue Feb 23, 2021 · 6 comments
Closed

Fyne error: Custom filter types not supported on mobile (Android) #2012

yml opened this issue Feb 23, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@yml
Copy link

yml commented Feb 23, 2021

Describe the bug:

When I try to select a picture in wormhol-gui to send it the app crash with the following message logs:

02-23 09:56:17.462  6143 14200 I Fyne    : Fyne error:  Custom filter types not supported on mobile
02-23 09:56:17.462  6143 14200 I Fyne    :   At: /app/vendor/fyne.io/fyne/v2/internal/driver/gomobile/file.go:40
02-23 09:56:23.511 25043 25081 D AppsModelWriter: normalizeVisibleItems(visibleItems)> 0, 166, 0, -102, 4, 3, UserHandle{0}, 0, Fyne_demo, -1, -1

To Reproduce:

Steps to reproduce the behaviour:

  1. Install wormhole-gui mobile branch (009edb2430d71eb9ddfb24b21c848f5d2deeb087)
  2. Open the app
  3. Click on Send
  4. Select a file

Screenshots:

Example code:

Device (please complete the following information):

  • OS: android
  • Version:
  • Go version:
  • Fyne version: fyne.io/fyne/v2 v2.0.1-0.20210221193418-ec32c77b3ce4
@yml yml added the bug Something isn't working label Feb 23, 2021
@Jacalz
Copy link
Member

Jacalz commented Feb 23, 2021

To be clear here, I asked @yml to open this issue because it came up in his testing and did not seem to be an error I my code as I don’t define any custom filter types (or use any filters at all) in wormhole-gui 🙂

@Jacalz
Copy link
Member

Jacalz commented Feb 23, 2021

My best guess is that the function is getting a nil filter and the else block in

fyne.LogError("Custom filter types not supported on mobile", nil)
flags that as not being a valid filter.

@andydotxyz
Copy link
Member

app crash with the following message logs

Are you certain the app crashed? That logged error should not be the cause of a crash.

@andydotxyz
Copy link
Member

flags that as not being a valid filter.

Agreed. But that should not cause a crash...

@Jacalz
Copy link
Member

Jacalz commented Feb 23, 2021

flags that as not being a valid filter.

Agreed. But that should not cause a crash...

Indeed, certainly not. I guess we need to figure out what’s causing the crash. In the meantime, it looks like we squashed a little bug 🙂

@Jacalz
Copy link
Member

Jacalz commented Feb 24, 2021

Fixed as of fcad6b2. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants