Re: [Banshee-List] gtk3 branch



On 12/01/2011 12:56 AM, Nelson Marques wrote:
2011/11/30 Andres G. Aragoneses<knocte gmail com>:

Hey! I managed to create a "non-hacky" patch that works.

It turns out two types may have the same gparam_spec but obviously the
collection for their objects should not be mixed. I'll send a pull request
later today and hopefully MKestner will have a look at it soon.

Want to share ? (for testing ?)

Sure: https://github.com/mono/gtk-sharp/pull/27



On 11/23/2011 07:46 AM, olivier dufour wrote:

No, for me all run fine.
I am on 32 bits system.
Are you sure to have install this gtk# in the good gac?
here is what I do:
git apply mypatch
./autogen.sh --prefix=/opt/mono
make
sudo make install
cd ../banshee
make run


Olivier Dufour


On Tue, Nov 22, 2011 at 10:37 PM, Andres G. Aragoneses
<knocte gmail com
<mailto:knocte gmail com>>  wrote:

    On 11/21/2011 09:44 PM, olivier dufour wrote:

        Hello,

        Great news!

        I have successfully launched banshee GTK3 version.
        But in order to do so, I have patch gtk# with a quick hack to
        fix issue
        because we can not cast propertyInfo of a subtype with is
        generic from a
        derived class non generic.
        Anyway it work but slow because I get PropertyInfo each time I
        call it.
        Best is to do a cache as Properties in Object.cs but for interface
        properties. But done a cache system just for that is very ugly.
        Anyway, my patch make things works but I have 2 NRE hiden and a
        quick
        hack witch slow done things.
        If people want to test or even fix my patch to make a better one to
        commit to ofiicial gtk# branch.


    Hey Olivier, that's awesome news.

    With your latest patch ( http://monobin.com/1328/ ) I don't get
    anymore the InvalidCastException but now I get a TargetException:



    [1 Debug 21:30:40.867] UpdateAdjustments
    [1 Debug 21:30:40.867] UpdateAdjustments
    Exception in Gtk# callback delegate
      Note: Applications can use
    GLib.ExceptionManager.__UnhandledException to handle the exception.
    System.Reflection.__TargetException: Object of type
    'Hyena.Widgets.RoundedFrame' doesn't match target type
    'Hyena.Data.Gui.ListView`1[__Banshee.Collection.AlbumInfo]'
      at System.Reflection.MonoMethod.__Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.__CultureInfo
    culture) [0x000f8] in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/MonoMethod.__cs:240

      at System.Reflection.__MonoProperty.SetValue (System.Object obj,
    System.Object value, BindingFlags invokeAttr,
    System.Reflection.Binder binder, System.Object[] index,
    System.Globalization.__CultureInfo culture) [0x00064] in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/__MonoProperty.cs:353

      at System.Reflection.__PropertyInfo.SetValue (System.Object obj,
    System.Object value, System.Object[] index) [0x00000] in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/__PropertyInfo.cs:93

      at GLib.Object.__SetPropertyCallback (IntPtr handle, UInt32
    property_id, GLib.Value&  value, IntPtr param_spec) [0x0006a] in
    /home/andres121/checkout/__gnome/gtk-sharp/glib/Object.__cs:359
      at (wrapper native-to-managed) GLib.Object:__SetPropertyCallback
    (intptr,uint,GLib.Value&,__intptr)
      at (wrapper managed-to-native) object:wrapper_native___0xb52a0200
    (intptr,uint,intptr)
      at GLib.Object.__ConstructorCallback (IntPtr gtypeval, UInt32
    n_construct_properties, IntPtr construct_properties) [0x0002c] in
    /home/andres121/checkout/__gnome/gtk-sharp/glib/Object.__cs:218
      at (wrapper native-to-managed) GLib.Object:__ConstructorCallback
    (intptr,uint,intptr)
      at (wrapper managed-to-native) GLib.Object:g_object_newv
    (intptr,int,GLib.Object/__GParameter[])
      at GLib.Object.CreateNativeObject (System.String[] names,
    GLib.Value[] vals) [0x000b8] in
    /home/andres121/checkout/__gnome/gtk-sharp/glib/Object.__cs:487
      at Gtk.Widget.CreateNativeObject (System.String[] names,
    GLib.Value[] vals) [0x00000] in

  /home/andres121/checkout/__gnome/gtk-sharp/gtk/generated/__Widget.custom:370
      at Gtk.Bin..ctor () [0x0000b] in
    /home/andres121/checkout/__gnome/gtk-sharp/gtk/generated/__Bin.cs:17
      at Hyena.Widgets.RoundedFrame..__ctor () [0x00000] in<filename
    unknown>:0
      at Hyena.Widgets.ScrolledWindow.__AddWithFrame (Gtk.Widget widget)
    [0x00000] in

  /home/andres121/Documents/__code/banshee/src/Hyena/Hyena.__Gui/Hyena.Widgets/__ScrolledWindow.cs:52

      at Nereid.PlayerInterface.__BuildViews () [0x000c6] in

  /home/andres121/Documents/__code/banshee/src/Clients/__Nereid/Nereid/PlayerInterface.__cs:305

      at Nereid.PlayerInterface.__BuildPrimaryLayout () [0x00011] in

  /home/andres121/Documents/__code/banshee/src/Clients/__Nereid/Nereid/PlayerInterface.__cs:169

      at Nereid.PlayerInterface.OnShown () [0x00036] in

  /home/andres121/Documents/__code/banshee/src/Clients/__Nereid/Nereid/PlayerInterface.__cs:136

      at Gtk.Widget.Shown_cb (IntPtr inst) [0x0000d] in

  /home/andres121/checkout/__gnome/gtk-sharp/gtk/generated/__Widget.cs:1484
       at
    GLib.ExceptionManager.__RaiseUnhandledException(__System.Exception
    e, Boolean is_terminal) in

  /home/andres121/checkout/__gnome/gtk-sharp/glib/__ExceptionManager.cs:line
    58
       at Gtk.Widget.Shown_cb(IntPtr inst) in

  /home/andres121/checkout/__gnome/gtk-sharp/gtk/generated/__Widget.cs:line
    1486
       at Gtk.Widget.gtk_widget_show(__IntPtr )
       at Gtk.Widget.Show() in

  /home/andres121/checkout/__gnome/gtk-sharp/gtk/generated/__Widget.cs:line
    5376
       at Banshee.Gui.BaseClientWindow.__InitialShowPresent() in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__BaseClientWindow.cs:line
    107
       at Nereid.PlayerInterface.__Initialize() in

  /home/andres121/Documents/__code/banshee/src/Clients/__Nereid/Nereid/PlayerInterface.__cs:line
    116
       at Banshee.Gui.BaseClientWindow.__InitializeWindow() in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__BaseClientWindow.cs:line
    141
       at Banshee.Gui.BaseClientWindow..__ctor(System.String title,
    System.String configNameSpace, Int32 defaultWidth, Int32
    defaultHeight) in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__BaseClientWindow.cs:line
    78
       at Nereid.PlayerInterface..ctor()
       at

  System.Reflection.MonoCMethod.__InternalInvoke(System.__Reflection.MonoCMethod
    , System.Object , System.Object[] , System.Exception ByRef )
       at System.Reflection.MonoCMethod.__Invoke(System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.__CultureInfo
    culture) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/MonoMethod.__cs:line
    526
       at System.Reflection.MonoCMethod.__Invoke(BindingFlags
    invokeAttr, System.Reflection.Binder binder, System.Object[]
    parameters, System.Globalization.__CultureInfo culture) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/MonoMethod.__cs:line
    541
       at System.Reflection.__ConstructorInfo.Invoke(System.__Object[]
    parameters) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/__ConstructorInfo.cs:line
    62
       at System.Activator.__CreateInstance(System.Type type, Boolean
    nonPublic) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System/Activator.cs:line
    333
       at System.Activator.__CreateInstance(System.Type type) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System/Activator.cs:line
    224
       at
    Banshee.ServiceStack.__ServiceManager.__RegisterService(System.Type
    type) in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__Services/Banshee.ServiceStack/__ServiceManager.cs:line
    166
       at Banshee.ServiceStack.__ServiceManager.Run() in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__Services/Banshee.ServiceStack/__ServiceManager.cs:line
    139
       at Banshee.ServiceStack.__Application.Run() in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__Services/Banshee.ServiceStack/__Application.cs:line
    108
       at Banshee.Gui.GtkBaseClient.__Initialize(Boolean
    registerCommonServices) in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__GtkBaseClient.cs:line
    188
       at Banshee.Gui.GtkBaseClient..__ctor(Boolean initializeDefault,
    System.String defaultIconName) in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__GtkBaseClient.cs:line
    91
       at Banshee.Gui.GtkBaseClient..__ctor()
       at Nereid.Client..ctor()
       at

  System.Reflection.MonoCMethod.__InternalInvoke(System.__Reflection.MonoCMethod
    , System.Object , System.Object[] , System.Exception ByRef )
       at System.Reflection.MonoCMethod.__Invoke(System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.__CultureInfo
    culture) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/MonoMethod.__cs:line
    526
       at System.Reflection.MonoCMethod.__Invoke(BindingFlags
    invokeAttr, System.Reflection.Binder binder, System.Object[]
    parameters, System.Globalization.__CultureInfo culture) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/MonoMethod.__cs:line
    541
       at System.Reflection.__ConstructorInfo.Invoke(System.__Object[]
    parameters) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System.Reflection/__ConstructorInfo.cs:line
    62
       at System.Activator.__CreateInstance(System.Type type, Boolean
    nonPublic) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System/Activator.cs:line
    333
       at System.Activator.__CreateInstance(System.Type type) in

  /home/abuild/rpmbuild/BUILD/__mono-2.10.6/mcs/class/corlib/__System/Activator.cs:line
    224
       at Banshee.Gui.GtkBaseClient.__Startup() in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__GtkBaseClient.cs:line
    78
       at

  Hyena.Gui.CleanRoomStartup.__Startup(Hyena.Gui.__StartupInvocationHandler
    startup) in

  /home/andres121/Documents/__code/banshee/src/Hyena/Hyena.__Gui/Hyena.Gui/__CleanRoomStartup.cs:line
    54
       at Banshee.Gui.GtkBaseClient.__Startup() in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__GtkBaseClient.cs:line
    73
       at Banshee.Gui.GtkBaseClient.__Startup(System.String[] args) in

  /home/andres121/Documents/__code/banshee/src/Core/Banshee.__ThickClient/Banshee.Gui/__GtkBaseClient.cs:line
    63
       at Nereid.Client.Main(System.__String[] args) in

  /home/andres121/Documents/__code/banshee/src/Clients/__Nereid/Nereid/Client.cs:line
    54
    make: *** [run] Error 1


    Don't you get this? Are you in 64 or 32 bits? I'll see if I have
    time to investigate.

    Cheers,

      Andres



_______________________________________________
banshee-list mailing list
banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]