Merrit / feeling_finder

A fast and beautiful app to help convey emotion in text communication.
GNU General Public License v3.0
44 stars 5 forks source link

Flatpak version of App not Opening/Working in Void linux #48

Closed ghost closed 2 years ago

ghost commented 2 years ago

I used the terminal to open the app and here is the output the terminal gives-

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: FileSystemException: lock failed, path = '/home/ss/.var/app/codes.merritt.FeelingFinder/data/feeling_finder/storage/general.lock' (OS Error: Resource temporarily unavailable, errno = 11)

0 _RandomAccessFile.lock. (dart:io/file_impl.dart:1002)

1 _rootRunUnary (dart:async/zone.dart:1434)

#2 StorageBackendVm.initialize (package:hive/src/backend/vm/storage_backend_vm.dart:81) #3 HiveImpl._openBox (package:hive/src/hive_impl.dart:116) #4 HiveImpl.openBox (package:hive/src/hive_impl.dart:145) #5 StorageService.init (package:feeling_finder/src/storage/storage_service.dart:36) #6 main (package:feeling_finder/main.dart:24) [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: FileSystemException: lock failed, path = '/home/ss/.var/app/codes.merritt.FeelingFinder/data/feeling_finder/storage/general.lock' (OS Error: Resource temporarily unavailable, errno = 11) #0 _RandomAccessFile.lock. (dart:io/file_impl.dart:1002) #1 _rootRunUnary (dart:async/zone.dart:1434) #2 StorageBackendVm.initialize (package:hive/src/backend/vm/storage_backend_vm.dart:81) #3 HiveImpl._openBox (package:hive/src/hive_impl.dart:116) #4 HiveImpl.openBox (package:hive/src/hive_impl.dart:145) #5 StorageService.init (package:feeling_finder/src/storage/storage_service.dart:36) #6 main (package:feeling_finder/main.dart:24)
Merrit commented 2 years ago

Hi @CapeCrusader321 :wave:

Thanks for opening the issue!

I think this is because there is an instance already running on your system. You can try to kill it from the system monitor, or from terminal:

killall feeling_finder

or even by rebooting.

I will also look into a check at startup, and if there is an instance already running the app can kill it so it can proceed.

ghost commented 2 years ago

Hi @Merrit thanks for checking out, but sadly none of your suggestion seems to work..

Merrit commented 2 years ago

Really, even after rebooting the computer it still won't open? With the same error? :thinking:

ghost commented 2 years ago

@Merrit Yes i have done multiple reboot yet no results

raluvy95 commented 2 years ago

Same issue, here's an error trying to run the app after killall feeling_finder

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Bad state: No element
#0      _GrowableList.last (dart:core-patch/growable_array.dart:348)
#1      Flatpak._systemThemeMode (package:flutter_flatpak/flutter_flatpak.dart:31)
<asynchronous suspension>
#2      Flatpak.init (package:flutter_flatpak/flutter_flatpak.dart:20)
<asynchronous suspension>
#3      SettingsService.themeMode (package:feeling_finder/src/settings/settings_service.dart:78)
<asynchronous suspension>
#4      SettingsCubit.init (package:feeling_finder/src/settings/cubit/settings_cubit.dart:33)
<asynchronous suspension>
#5      main (package:feeling_finder/main.dart:31)
<asynchronous suspension>
ghost commented 2 years ago

This Probably means its a bug which need to be fixed, i am sure you will work on it....

Merrit commented 2 years ago

Have been without power for a few days following bad weather here. I will look into this soon as I can :)

Merrit commented 2 years ago

v0.8.0 is being published to Flathub shortly, hopefully will fix the issue(s) you've encountered; please update when available and let me know :)

ghost commented 2 years ago

ok