question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid parameters to context creation

See original GitHub issue

at CoreGraphics.CGContext.set_Handle (IntPtr value) [0x00010] in /Users/builder/data/lanes/1977/2c66d2fe/source/maccore/src/CoreGraphics/CGContext.cs:156 at CoreGraphics.CGContext…ctor (IntPtr handle, Boolean owns) [0x00006] in /Users/builder/data/lanes/1977/2c66d2fe/source/maccore/src/CoreGraphics/CGContext.cs:136 at CoreGraphics.CGBitmapContext…ctor (IntPtr data, nint width, nint height, nint bitsPerComponent, nint bytesPerRow, CoreGraphics.CGColorSpace colorSpace, CGImageAlphaInfo bitmapInfo) [0x00000] in /Users/builder/data/lanes/1977/2c66d2fe/source/maccore/src/CoreGraphics/CGBitmapContext.cs:61 at NGraphics.ApplePlatform.CreateImageCanvas (Size size, Double scale, Boolean transparency) [0x0005c] in <filename unknown>:0 at SVG.Forms.Plugin.iOS.SvgImageRenderer.OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs1 e) [0x0011a] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[Xamarin.Forms.Image].SetElement (Xamarin.Forms.Image element) [0x00135] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[Xamarin.Forms.Image].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x0001c] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x00010] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001f] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[Xamarin.Forms.VisualElement].SetElement (Xamarin.Forms.VisualElement element) [0x000e2] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[Xamarin.Forms.VisualElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x0001c] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x00010] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001f] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[Xamarin.Forms.VisualElement].SetElement (Xamarin.Forms.VisualElement element) [0x000e2] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[Xamarin.Forms.VisualElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x0001c] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x00010] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001f] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[Xamarin.Forms.VisualElement].SetElement (Xamarin.Forms.VisualElement element) [0x000e2] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[Xamarin.Forms.VisualElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x0001c] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x00010] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001f] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x0007b] in <filename unknown>:0 at (wrapper managed-to-native) ObjCRuntime.Messaging:IntPtr_objc_msgSendSuper (intptr,intptr) at UIKit.UIViewController.get_View () [0x00030] in /Users/builder/data/lanes/1977/2c66d2fe/source/maccore/src/build/ios/native/UIKit/UIViewController.g.cs:2482 at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00008] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00024] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x0001c] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.Platform.AddChild (Xamarin.Forms.VisualElement view) [0x00027] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.Platform.WillAppear () [0x0003c] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.PlatformRenderer.ViewWillAppear (Boolean animated) [0x00016] in <filename unknown>:0 at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr) at UIKit.UIWindow.MakeKeyAndVisible () [0x00010] in /Users/builder/data/lanes/1977/2c66d2fe/source/maccore/src/build/ios/native/UIKit/UIWindow.g.cs:247 at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.SetMainPage () [0x00028] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.FinishedLaunching (UIKit.UIApplication uiApplication, Foundation.NSDictionary launchOptions) [0x00028] in <filename unknown>:0 at StudyxnetXAMLImageControl.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x0001e] in /Users/Rodrigo/Projects/StudyxnetXAMLImageControl/iOS/AppDelegate.cs:26 at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/1977/2c66d2fe/source/maccore/src/UIKit/UIApplication.cs:63 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/1977/2c66d2fe/source/maccore/src/UIKit/UIApplication.cs:47 at StudyxnetXAMLImageControl.iOS.Application.Main (System.String[] args) [0x00008] in /Users/Rodrigo/Projects/StudyxnetXAMLImageControl/iOS/Main.cs:17

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
stephenoakmancommented, Jan 29, 2016

I just had the same problem. For me, the answer was to add height and width to the svg based on this StackOverflow question. The svg was one grabbed from The Noun Project so was surprised to have to make this change.

0reactions
JamieHoustoncommented, Sep 24, 2015

@jbravobr do you know what the problem with you VM was? I’m getting the same error…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid parameters in CGBitmapContext constructor
I changed last parameter from CGBitmapFlags.ByteOrderDefault to CGBitmapFlags.PremultipliedLast , and the error disappear.
Read more >
Error loading block: Invalid parameter(s): context
I have tried updating wordpress to 5.6, creating the 'preview' files and disabling other plugins that could be interfering but nothing has changed...
Read more >
Inviting members always return "message": "Invalid ...
Description When i try to invite members to a channel i provide members to the request like this 'members' => $request->members
Read more >
Why am I getting invalid parameter for a variable I defined ...
I'm trying to define whitelisting for certain domain names on my server. I've figured out a way to do this using the map...
Read more >
When connecting to my database I get an Invalid ...
An Invalid Parameters and Values error occurs when there are typos or formatting errors in the connection string.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found