RPC not working (issues found)
Are you using the newest Version?
- [x] Yes, the issue happens on the newest version
- [x] No, there aren't any open issues about this. I checked!
Type of Report
- [ ] The app is unusable
- [x] Something isn't quite right
- [ ] Some functionality isn't accessible to me
- [ ] Accessibility
- [ ] None of the above
The exact version of the app
unreleased 0.9.21 (git build :p)
Affected Devices/Platform
- [ ] Android
- [ ] Android Auto
- [ ] iOS
- [x] Linux
- [ ] MacOS (iOS version)
- [ ] MacOS (native)
- [ ] Windows
Device
No response
Description & Steps to Reproduce
So the GTK Theme not loading is apparently my fault, but good to know it isnt a code issue.
And I found out why RPC doesnt work in the build version (for me at least). Something is wrong with the build version of the discord_rpc library. Error persists after reinstalling finamp-git, so not [yet] sure if this is an packaging of library issue. @F-4Dev is having the same error so chances are its not my linux being iffy :)
Logs
Logs
$ /opt/finamp/finamp
(finamp:103779): Gtk-WARNING **: 16:30:11.674: Theme parsing error: gtk.css:2:0: expected semicolon
Gdk-Message: 16:30:11.720: Unable to load from the cursor theme
package:media_kit_libs_linux registered.
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libflutter_discord_rpc.so': /opt/finamp/lib/libflutter_discord_rpc.so: undefined symbol: Dart_HandleFromPersistent_DL
#0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11)
#1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22)
#2 new ExternalLibrary.open (package:flutter_rust_bridge/src/platform_types/_io.dart:42)
#3 loadExternalLibraryRaw.<anonymous closure> (package:flutter_rust_bridge/src/loader/_io.dart:80)
#4 loadExternalLibraryRaw.tryAssumingNonPackaged (package:flutter_rust_bridge/src/loader/_io.dart:49)
#5 loadExternalLibraryRaw (package:flutter_rust_bridge/src/loader/_io.dart:79)
#6 loadExternalLibrary (package:flutter_rust_bridge/src/loader/_io.dart:14)
#7 BaseEntrypoint._loadDefaultExternalLibrary (package:flutter_rust_bridge/src/main_components/entrypoint.dart:156)
#8 BaseEntrypoint.initImpl (package:flutter_rust_bridge/src/main_components/entrypoint.dart:49)
#9 RustLib.init (package:flutter_discord_rpc/src/rust/frb_generated.dart:30)
#10 FlutterDiscordRPC.initialize (package:flutter_discord_rpc/src/flutter_discord_rpc_base.dart:23)
#11 DiscordRpc.initialize (package:finamp/services/discord_rpc.dart:35)
#12 _setupDiscordRpc (package:finamp/main.dart:259)
#13 main (package:finamp/main.dart:142)
<asynchronous suspension>
MPV: [error] lavf: Failed to create file cache.
MPV: [error] lavf: Failed to create file cache.
Additional Information
Could this be a Packaging problem? @Maxr1998 The folder containing the libflutter_discord_rpc.so is here
$ lib pwd && ls
/opt/finamp/lib
libapp.so libisar_flutter_libs_plugin.so
libdynamic_color_plugin.so libmedia_kit_libs_linux_plugin.so
libflutter_discord_rpc.so libscreen_retriever_linux_plugin.so
libflutter_linux_gtk.so liburl_launcher_linux_plugin.so
libgtk_plugin.so libwindow_manager_plugin.so
libisar.so
Else ill try and contact the library creator :)
@flloschy have you tried with an old version of the RPC plugin? And also, it doesn't work in 0.9.20 either, yes?
Yeeah, its been a problem since its introduction. I only just now figured i should look in the logs lol