Pinta 1.6 unhandled exception error after install.

Bug #1429642 reported by Nina T
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Low
Unassigned

Bug Description

STEPS: Download and Install new version Pinta 1.6 on Max OS X Yosemite version 10.10.2 Mac mini server (late 2012). Unzip and copy Pinta icon to applications folder. Below error appears. Click OK. Pinta closes. Also downloaded and installed Mono after that. No change.
ERROR: Unhandled Exception: Exception has been thrown by the target of an invocation.
DETAILS: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Cairo.Context.SetSource'.
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0

Tags: gtk3
Revision history for this message
Cameron White (cameronwhite91) wrote :

I think this might be an issue with the Mac package being built on Ubuntu, which uses a newer version of Mono.Cairo than what is shipped with the Mono installer we link to from http://pinta-project.com/releases.

Can you try out the latest Mono installer from http://www.mono-project.com/download/ and check if that works?

Regardless, though, I think https://github.com/PintaProject/Pinta/commit/34b698d3 needs to be changed to use a separate method rather than an extension method in order to avoid this problem.

Changed in pinta:
importance: Undecided → High
milestone: none → 1.7
Revision history for this message
Nina T (outinarizona) wrote : Re: [Bug 1429642] Re: Pinta 1.6 unhandled exception error after install.
Download full text (3.3 KiB)

It worked. That was the problem. No more errors. THANK YOU!

*Nina*
<email address hidden>
Tumblr blog - 50x130 <http://outinarizona.tumblr.com>

On Sun, Mar 8, 2015 at 7:15 PM, Cameron White <email address hidden>
wrote:

> I think this might be an issue with the Mac package being built on
> Ubuntu, which uses a newer version of Mono.Cairo than what is shipped
> with the Mono installer we link to from http://pinta-
> project.com/releases.
>
> Can you try out the latest Mono installer from http://www.mono-
> project.com/download/ and check if that works?
>
> Regardless, though, I think
> https://github.com/PintaProject/Pinta/commit/34b698d3 needs to be
> changed to use a separate method rather than an extension method in
> order to avoid this problem.
>
> ** Changed in: pinta
> Importance: Undecided => High
>
> ** Changed in: pinta
> Milestone: None => 1.7
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1429642
>
> Title:
> Pinta 1.6 unhandled exception error after install.
>
> Status in Pinta:
> New
>
> Bug description:
> STEPS: Download and Install new version Pinta 1.6 on Max OS X Yosemite
> version 10.10.2 Mac mini server (late 2012). Unzip and copy Pinta icon to
> applications folder. Below error appears. Click OK. Pinta closes. Also
> downloaded and installed Mono after that. No change.
> ERROR: Unhandled Exception: Exception has been thrown by the target of
> an invocation.
> DETAILS: System.Reflection.TargetInvocationException: Exception has been
> thrown by the target of an invocation. ---> System.MissingMethodException:
> Method not found: 'Cairo.Context.SetSource'.
> at (wrapper managed-to-native)
> System.Reflection.MonoMethod:InternalInvoke
> (System.Reflection.MonoMethod,object,object[],System.Exception&)
> at System.Reflection.MonoMethod.Invoke (System.Object obj,
> BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
> parameters, System.Globalization.CultureInfo culture) [0x00000] in
> <filename unknown>:0
> --- End of inner exception stack trace ---
> at System.Reflection.MonoMethod.Invoke (System.Object obj,
> BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
> parameters, System.Globalization.CultureInfo culture) [0x00000] in
> <filename unknown>:0
> at System.Reflection.MethodBase.Invoke (System.Object obj,
> System.Object[] parameters) [0x00000] in <filename unknown>:0
> at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
> in <filename unknown>:0
> at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args)
> [0x00000] in <filename unknown>:0
> at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in
> <filename unknown>:0
> at GLib.Signal.ClosureInvokedCB (System.Object o,
> GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
> at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
> in <filename unknown>:0
> at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr
> return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr
> invocation_hint, IntP...

Read more...

Revision history for this message
Cameron White (cameronwhite91) wrote :

OK, good to hear! We probably should have updated to a more recent version on OSX anyways, so I've updated the website to recommend that version (https://github.com/PintaProject/website/commit/09983084).

For Pinta 1.7, we should still fix the issue I mentioned in my previous comment.

Changed in pinta:
importance: High → Low
status: New → Triaged
tags: added: easy-to-fix
Revision history for this message
grofaty (grofaty) wrote :

Cameron, it looks like this new download link is now broken. In browser: http://www.pinta-project.com/releases and click on "Mono OS X (Required)" At the end of URL link it is (without double quotes): "target=". If this " target=" is deleted from URL then download starts successfully.

Revision history for this message
grofaty (grofaty) wrote :

Now I see it current link:
[some text] xamarin.x86.pkg target=

there is missing double quote characters after 'pkg' like this:
[some text] xamarin.x86.pkg" target=

Revision history for this message
Cameron White (cameronwhite91) wrote :

Thanks, it should be fixed now (or whenever the website next pulls in the changes from Github)

Revision history for this message
Cameron White (cameronwhite91) wrote :

I don't think this will be a release blocker for 1.7, since the Mac installer is now built on OSX instead of being cross-compiled from Ubuntu. Tagging this as a GTK3 issue since the whole SetSource() issue will be something that can be removed in the GTK# port.

Changed in pinta:
milestone: 1.7 → none
tags: added: gtk3
removed: easy-to-fix
Revision history for this message
Cameron White (cameronwhite91) wrote :

The remaining issue was fixed in the GTK3 branch of Pinta

Changed in pinta:
milestone: none → 1.8
status: Triaged → Fix Committed
Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.