Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant save this #584

Closed
temginson opened this issue Oct 29, 2023 · 16 comments
Closed

cant save this #584

temginson opened this issue Oct 29, 2023 · 16 comments
Labels
Milestone

Comments

@temginson
Copy link

Description
geet an error when trying to save a .png that had lots of layers saved

To Reproduce
idk
Additional Info
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentNullException: Value cannot be null. (Parameter 'key')
at System.Collections.Generic.Dictionary2.FindValue(TKey key) at System.Collections.Generic.Dictionary2.get_Item(TKey key)
at Pinta.Actions.SaveDocumentImplmentationAction.SaveFileAs(Document document) in D:\a\Pinta\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 126
at Pinta.Actions.SaveDocumentImplmentationAction.Activated(Object sender, DocumentCancelEventArgs e) in D:\a\Pinta\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 56
at Pinta.Core.FileActions.RaiseSaveDocument(Document document, Boolean saveAs) in D:\a\Pinta\Pinta\Pinta.Core\Actions\FileActions.cs:line 119
at Pinta.Core.Document.Save(Boolean saveAs) in D:\a\Pinta\Pinta\Pinta.Core\Classes\Document.cs:line 394
at Pinta.Actions.SaveDocumentAsAction.Activated(Object sender, EventArgs e) in D:\a\Pinta\Pinta\Pinta\Actions\File\SaveDocumentAsAction.cs:line 48
at Pinta.Core.Command.<.ctor>b__33_0(Object o, ActivatedArgs args) in D:\a\Pinta\Pinta\Pinta.Core\Actions\Command.cs:line 61
at InvokeStub_ActivatedHandler.Invoke(Object, Object, IntPtr*)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)

https://drive.google.com/file/d/10DhPCSYAKUJlr-a4si0s-P351jXwACkc/view?usp=sharing this is the file i have problem with

Version
Please include your operating system (e.g. Ubuntu 22.04) and which version of Pinta (e.g. 2.1) you are using.
windows 11 pro insider version 23h2

@temginson temginson added the bug label Oct 29, 2023
@cameronwhite
Copy link
Member

I haven't been able to reproduce this yet, but I think it may be Windows-only judging by similar bug reports on Launchpad
Is there anything particular that seems to trigger this (e.g. the file name or directory you're saving to), or does it consistently happen with any image?

cameronwhite added a commit that referenced this issue Nov 14, 2023
I haven't been able to figure out how to reproduce this, but the crash logs point at this being the issue.

Bug: #584
Bug: #2033014
@cameronwhite cameronwhite added this to the 2.1.2 milestone Nov 14, 2023
cameronwhite added a commit that referenced this issue Nov 14, 2023
I haven't been able to figure out how to reproduce this, but the crash logs point at this being the issue.

Bug: #584
Bug: #2033014
(cherry picked from commit 1bbbe72)
@cameronwhite
Copy link
Member

I've made an attempt at fixing this based on the error message, but still haven't reproduced it.
Could you please try the latest build from https://github.com/PintaProject/Pinta/actions/runs/6859516946 (download link at the bottom - requires a GitHub login) and let me know if that resolved the error?

@temginson
Copy link
Author

temginson commented Nov 14, 2023

I haven't been able to reproduce this yet, but I think it may be Windows-only judging by similar bug reports on Launchpad Is there anything particular that seems to trigger this (e.g. the file name or directory you're saving to), or does it consistently happen with any image?

i don't really know, its like if i have it open and then let my computer go to sleep then i get that error and the strange thing is that if i try and open it it is then not a .png file and i need evry time to chose to open it with pinta once in windows

@cameronwhite
Copy link
Member

OK thanks - please let me know if the newer build I linked to seems to resolve the issue!

@temginson
Copy link
Author

OK thanks - please let me know if the newer build I linked to seems to resolve the issue!

okay do i need to uninstall my current pinta?

@cameronwhite
Copy link
Member

Yeah, the installer should replace the old one but you could uninstall first to be safe

@temginson
Copy link
Author

sorry i havent had time to install this untill now but it just says that the app is unverified and cant install it

@cameronwhite
Copy link
Member

Hmm, isn't there usually an "Install anyways" type of option? (it might be hidden away under some toggle, unless you're perhaps doing this on a very locked-down system without admin permissions)

@temginson
Copy link
Author

temginson commented Nov 22, 2023 via email

@cameronwhite
Copy link
Member

cameronwhite commented Nov 22, 2023 via email

@temginson
Copy link
Author

@cameronwhite
Copy link
Member

Thanks. What's your operating system version, and is your CPU type anything other than x64 (e.g. 32-bit, or ARM?)
And, does the same issue happen if you're installing the regular Pinta build from the website?

@temginson
Copy link
Author

temginson commented Nov 26, 2023 via email

@cameronwhite
Copy link
Member

OK thanks, that sounds normal so I'm really not sure why that error message would appear. My only other idea would be to try running under any "Compatibility mode" options to see if that works

@iksi4prs
Copy link

iksi4prs commented Jan 2, 2024

@cameronwhite ,
I had same exception and stack trace for saving the simplest 2 layers file as .ora.
This was on Windows 11, with release "Pinta v# 2.1.1" (the latest available on downloads page)
Then found this issue when trying solve problem.
As you suggested, I tried the build here (although 2 months old):
https://github.com/PintaProject/Pinta/actions/runs/6859516946
And for me, it looks like solved the problem, saving works fine.

@cameronwhite
Copy link
Member

Great, thank you for confirming!

@cameronwhite cameronwhite modified the milestones: 2.1.2, 2.2 Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants