Banshee fails to launch post UP4 (possible mono problem)

Post your update and upgrade related errors here
Forum rules
Before you post please read this

Banshee fails to launch post UP4 (possible mono problem)

Postby fiver22 on Sun Apr 08, 2012 8:12 pm

After installing UP4 I went to launch Banshee and it failed -starting from terminal produced "$ Missing method System.Threading.Monitor::Enter(object,bool&) in assembly /usr/lib/mono/2.0(...)"
-full output http://pastebin.com/zRjY2tCv
Mentioned the above in IRC and Clem suggested pulling in debian testing's version a la 'apt install banshee/testing' which I did -unfortunately banshee still fails to start. I can't really understand what the error is saying or where to go from here. I CAN see that the error is pointing to mono as the culprit so I tried reinstalling mono related packages but still no luck.
Any help/pointers on where to go from here would be appreciated.
User avatar
fiver22
Level 1
Level 1
 
Posts: 46
Joined: Wed Feb 01, 2012 8:08 am

Linux Mint is funded by ads and donations.
 

Re: Banshee fails to launch post UP4 (possible mono problem)

Postby äxl on Sun Apr 08, 2012 8:29 pm

Have you tried installing mono from testing?

- - - - - - - - - -
edit: Could also be one of your plugins since for me it only calls mono for "addins" ...
My Linux history: Ubuntu 10.04 - 10.10 - LMDE 201109 - UP4 My sources.list/preferences

Computers is not science. And it's not magic - it's something in between.
User avatar
äxl
Level 5
Level 5
 
Posts: 524
Joined: Fri Apr 06, 2012 6:14 am
Location: Germany

Re: Banshee fails to launch post UP4 (possible mono problem)

Postby fiver22 on Sun Apr 08, 2012 8:56 pm

äxl wrote:Have you tried installing mono from testing?

- - - - - - - - - -
edit: Could also be one of your plugins since for me it only calls mono for "addins" ...

I have. Just tried again and get "'mono-complete is already the newest version. Selected version '2.10.8.1-1' (Debian:testing [amd64]) for 'mono-complete'"
Any idea on how I'd determine if it's a plugin?
User avatar
fiver22
Level 1
Level 1
 
Posts: 46
Joined: Wed Feb 01, 2012 8:08 am

Re: Banshee fails to launch post UP4 (possible mono problem)

Postby fiver22 on Mon Apr 09, 2012 2:04 am

Update:
I thought I'd try to build banshee 2.3.6 and the following happened: I was warned that banshee existed in /usr/local/lib -I sudo rm -r'd the banshee dir and went and succesfully ./configure'd.
On 'make' I recieved
Code: Select all
Making all in Banshee.Dap.AppleDevice
  MCS   ../../../bin/Banshee.Dap.AppleDevice.dll
./Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs(218,24): error CS0266: Cannot implicitly convert type `int' to `uint'. An explicit conversion exists (are you missing a cast?)
Compilation failed: 1 error(s), 0 warnings
make[4]: *** [../../../bin/Banshee.Dap.AppleDevice.dll] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I went ahead with the 'make install' (because I didn't know what else to try) where I received the error
Code: Select all
Making install in Dap
Making install in Banshee.Dap
 /usr/bin/install -c ../../../bin/Banshee.Dap.dll ../../../bin/Banshee.Dap.dll.mdb '/usr/local/lib/banshee/Extensions'
Making install in Banshee.Dap.AppleDevice
  MCS   ../../../bin/Banshee.Dap.AppleDevice.dll
./Banshee.Dap.AppleDevice/AppleDeviceTrackInfo.cs(218,24): error CS0266: Cannot implicitly convert type `int' to `uint'. An explicit conversion exists (are you missing a cast?)
Compilation failed: 1 error(s), 0 warnings
make[3]: *** [../../../bin/Banshee.Dap.AppleDevice.dll] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

I then attempted to launch banshee from terminal and it failed to launch with the following:
Code: Select all
 banshee           
Cannot open assembly '/usr/local/lib/banshee/Banshee.exe': No such file or directory.

So that's what I've tried and where I am now. -I realize I may have just confused the issue by trying to compile -if so, feel free to ignore my attempt and disregard this post.
For what it's worth: I'm using banshee because 1) I've gotten used to it, and 2) the buzz is that it's most successful in working with my ipod (rooted ipod touch 3rd gen) -tried gtk pod and it just won't see the touch.
User avatar
fiver22
Level 1
Level 1
 
Posts: 46
Joined: Wed Feb 01, 2012 8:08 am

Re: Banshee fails to launch post UP4 (possible mono problem)

Postby äxl on Tue Apr 10, 2012 2:32 am

Please try
mono --runtime=v4.0 /usr/lib/banshee/Banshee.exe

fiver22 wrote:Any idea on how I'd determine if it's a plugin?


I thought so since my banshee only gives mono output when I enable some plugins.
You could disable all your plugins by renaming
sudo mv /usr/lib/banshee/Extensions/ /usr/lib/banshee/Extensions_deactivated

I'm not a big fan of compiling existing stuff but the information that you already had the directory /usr/local/lib/banshee/ might hint that you had it compiled before, no?
If everything else fails I would try a complete (!) reinstall
sudo apt-get -o dpkg::options::="--force-confnew" -o dpkg::options::="--force-confmiss" --reinstall banshee mono-runtime
My Linux history: Ubuntu 10.04 - 10.10 - LMDE 201109 - UP4 My sources.list/preferences

Computers is not science. And it's not magic - it's something in between.
User avatar
äxl
Level 5
Level 5
 
Posts: 524
Joined: Fri Apr 06, 2012 6:14 am
Location: Germany

Re: Banshee fails to launch post UP4 (possible mono problem)

Postby fiver22 on Tue Apr 10, 2012 7:02 am

äxl wrote:Please try
mono --runtime=v4.0 /usr/lib/banshee/Banshee.exe

Well, THAT's exciting: it does, indeed, launch banshee 2.2.1! It gives a fair amount of output with some info/warnings:
full output http://pastebin.com/qBAH2UBS
(Not sure of whether it's preferable to paste full output here or to link to pastebin)

äxl wrote:sudo apt-get -o dpkg::options::="--force-confnew" -o dpkg::options::="--force-confmiss" --reinstall banshee mono-runtime

Not sure what I'm supposed to replace (if anything) in the above -if I just copy/paste it to terminal I get 'E: Invalid operation banshee'

Thanks very much for your help, by the way. The 'mono --runtime=v4.0 /usr/lib/banshee/Banshee.exe' is new to me, what is it doing? -asking a specific version of mono to run Banshee.exe in that specific dir? If so -as opposed to what?
User avatar
fiver22
Level 1
Level 1
 
Posts: 46
Joined: Wed Feb 01, 2012 8:08 am

Re: Banshee fails to launch post UP4 (possible mono problem)

Postby äxl on Tue Apr 10, 2012 5:20 pm

fiver22 wrote:Well, THAT's exciting: it does, indeed, launch banshee 2.2.1! It gives a fair amount of output with some info/warnings:


Shouldn't worry. But there's still the problem of calling banshee. Don't know if it's favorable/advisible to run it from terminal with mono every time ...?

full output http://pastebin.com/qBAH2UBS
(Not sure of whether it's preferable to paste full output here or to link to pastebin)


I don't mind. ;) Keeps the thread clean though if you put it in code tags here it will be scrollable.
My /usr/bin/banshee for example:
Code: Select all
#!/usr/bin/env bash

prefix=/usr
libdir=/usr/lib
exec_asm="Banshee.exe"
MONO_EXE="/usr/lib/banshee/$exec_asm"
BANSHEE_EXEC_NAME=$(basename $0)
BANSHEE_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/banshee-1"

export LD_LIBRARY_PATH=/usr/lib/banshee:/usr/lib/banshee/Extensions:/usr/lib/banshee/Backends:/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export GST_PLUGIN_PATH=/usr/lib/banshee/gstreamer-0.10${GST_PLUGIN_PATH:+:$GST_PLUGIN_PATH}
if [ $BANSHEE_EXEC_NAME = "muinshee" ]; then
    BANSHEE_CLIENT="Muinshee"
    export MONO_PATH=/usr/lib/banshee/Extensions
fi

[ -n "$BANSHEE_DEBUG" -o -f "${BANSHEE_CONFIG_DIR}/always-debug" ] && BANSHEE_DEBUG="--debug"
[ -n "$BANSHEE_TRACE" ] && BANSHEE_TRACE="--trace=$BANSHEE_TRACE"
[ -n "$BANSHEE_PROFILE" ] && BANSHEE_PROFILE="--profile=$BANSHEE_PROFILE"

for arg in $*; do
    case "x--debug" in ("x$arg")
        BANSHEE_DEBUG=$arg
    esac

    case "x--trace=" in ("x${arg:0:8}")
        BANSHEE_TRACE=$arg
    esac

    case "x--profile=" in ("x${arg:0:10}")
        BANSHEE_PROFILE=$arg
    esac

   case "x--redirect-log" in ("x$arg")
      [ -z "$(pidof $BANSHEE_EXEC_NAME)" ] && BANSHEE_REDIRECT_LOG="${BANSHEE_CONFIG_DIR}/log"
   esac

   case "x--client=" in ("x${arg:0:9}")
      BANSHEE_CLIENT="${arg:9}"
   esac
done

if [ ! -z "$BANSHEE_CLIENT" ]; then
   BANSHEE_CLIENT="--client=${BANSHEE_CLIENT}"
fi

# We were testing the SGen compacting GC; disabled for 2.0 release b/c there are serious
# issues with sgen on Mono 2.8.0
#export MONO_ENV_OPTIONS="--gc=sgen"

if [ -n "$BANSHEE_DEBUG" -o -n "$BANSHEE_TRACE" -o -n "$BANSHEE_PROFILE" ]; then
    MONO_OPTIONS="$BANSHEE_DEBUG $BANSHEE_TRACE $BANSHEE_PROFILE"
    echo "** Running Mono with $MONO_OPTIONS **"
fi

# Finally - environment is set up, time to run our beloved
exec_args="-a $BANSHEE_EXEC_NAME mono $MONO_OPTIONS $MONO_EXE $BANSHEE_DEBUG $BANSHEE_CLIENT"

if [ -z "$BANSHEE_REDIRECT_LOG" ]; then
   exec $exec_args "$@"
else
   mkdir -p `dirname "$BANSHEE_REDIRECT_LOG"`
   (echo "exec $exec_args " "$@"; echo; exec $exec_args "$@") &> $BANSHEE_REDIRECT_LOG
fi


Not sure what I'm supposed to replace (if anything) in the above -if I just copy/paste it to terminal I get 'E: Invalid operation banshee'


Uhm, yeah, the invalid operation should have been install. Forgot to copy that, so
sudo apt-get -o dpkg::options::="--force-confnew" -o dpkg::options::="--force-confmiss" --reinstall install banshee mono-runtime

Thanks very much for your help, by the way. The 'mono --runtime=v4.0 /usr/lib/banshee/Banshee.exe' is new to me, what is it doing? -asking a specific version of mono to run Banshee.exe in that specific dir? If so -as opposed to what?


You're welcome. Seems like Banshee.exe is always called. We're just specifying mono to use it's runtime version instead of 2.0.
ls /usr/lib/mono should show you the versions.

When I call banshee with runtime=v2.0 it fails and the output resembles the on in your first post. But it also says:
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v2.0.50727

When I run it with runtime=v2.0.50727 it omits these lines and dies as well.
I don't know why it is called correctly when I just run banshee ...
My Linux history: Ubuntu 10.04 - 10.10 - LMDE 201109 - UP4 My sources.list/preferences

Computers is not science. And it's not magic - it's something in between.
User avatar
äxl
Level 5
Level 5
 
Posts: 524
Joined: Fri Apr 06, 2012 6:14 am
Location: Germany

Re: Banshee fails to launch post UP4 (possible mono problem)

Postby fiver22 on Wed Apr 11, 2012 1:30 pm

Thanks again for the help, äxl.
I'm about to try the lates iso rc so I'm sort of side-stepping the issue, but I figure I'd post my latest in case this issue is of interest to anyone. Banshee still won't launch normally, but will with the command you gave, at least. That is, unless I have my ipod touch plugged in -in that case it launches then crashes with:
Code: Select all
$ mono --runtime=v4.0 /usr/lib/banshee/Banshee.exe
[Info  22:23:01.290] Running Banshee 2.2.1: [Debian GNU/Linux unstable (sid) (linux-gnu, x86_64) @ 2012-01-22 11:59:27 GMT]
[Info  22:23:02.757] Updating web proxy from GConf
[Warn  22:23:02.794] Caught an exception - System.ApplicationException: No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
  at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000] in <filename unknown>:0
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] in <filename unknown>:0
[Warn  22:23:02.795] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
[Warn  22:23:02.822] Failed to load media-player-info file for 1
[Warn  22:23:02.828] Failed to load media-player-info file for 1
[Warn  22:23:02.979] Caught an exception - System.ApplicationException: No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
  at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000] in <filename unknown>:0
  at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000] in <filename unknown>:0
[Warn  22:23:02.979] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
[Info  22:23:02.981] All services are started 1.304778
[Info  22:23:05.717] nereid Client Started
[Info  22:23:05.851] GStreamer version 0.10.35.0, gapless: True, replaygain: True
[Warn  22:23:05.869] Failed to load media-player-info file for 1
[Warn  22:23:05.874] Failed to load media-player-info file for 1
[Info  22:23:05.906] AppleDeviceSource is ignoring unmounted volume JLM’s iPod
Device 0 (VID=05ac and PID=1299) is a Apple iPod Touch 3rd Gen.
Stacktrace:
 
 
Native stacktrace:
 
[1]    32000 segmentation fault  mono --runtime=v4.0 /usr/lib/banshee/Banshee.exe

I feel like I'm giving up on the issue but it's really time for a clean install on my end -I tinker A LOT and have introduced a few small, but annoying, issues by playing around.
Here's hoping I fair better on a clean install :)
User avatar
fiver22
Level 1
Level 1
 
Posts: 46
Joined: Wed Feb 01, 2012 8:08 am

Linux Mint is funded by ads and donations.
 

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 0 guests