Speechbubble can't be used after copy/paste
Description
Environment
Reproduced on Windows 7 64 bit and Windows 10 on version 1.2.9 build 98 and 112
Install w all plugins but no additional languages, default install dir on windows using windows installer.
Attachments
Gliffy Diagrams
Activity
Hi Joel,
I am REALLY sorry...!!
This is my doing, although by accident: my JIRA Project for Greenshot needs to test changes to a real JIRA and this issue ended up as a test issue.
This should have been solved a bit over a week ago, by creating a project especially for testing.
Let me know when this still happens, but from my point of view this should be the last email you have gotten for changes on this issue.
Best wishes,
Robin
Speech bubbles has worked fine for a while, now, I've been using the latest stable release
As a side note, I've gotten 100 email notifications so far on work logs for this issue. I cannot seem to disable these myself, seems it can be done by editing the project though: https://confluence.atlassian.com/adminjiraserver071/creating-a-notification-scheme-802592629.html
Thanks for the feedback, closing the ticket.
Keep using that version until a newer arrives, which Greenshot should tell if the update check is active.
Thanks Robin! I downloaded and it works fine with speech bubbles so far.
I'll let you know if I see anything weird.
If you like, have a test with the attached version.
When I insert a speeachbubble element and then select, copy it and paste it (i.e. to clone it), only the element is copied but the text is lost. Trying to edit the text results in a Nullpointer exception. See attached image.
Reproduce
0. printscreen - dialog choose to open w Editor
1. new speechbubble w text
2. press ESC key twice to unfocus
3. select this speechbuble with mouse
4. copy element w ctrl-c or right-click copy
5. paste to editor with ctrl-v or Edit>paste
6. empty speechbubble element is created
7. click inside new empty element to edit
8. Nullpointer exception
Affected versions
I started seeing this error since I downloaded 1.2.9.112 (stable/build 98/64) because I wanted to get the new canvas resizing which is a feature I like a lot. I went back and reinstalled 1.2.8.14 and the issue disappeared. Reproduced on two different PCs.
Logs
Here is the data logged in log file after trying to edit text inside the new speechbubble element:
Configuration dump: 2017-01-08 10:32:07,236 [Greenshot] INFO - [GreenshotPlugin.Controls.GreenshotForm] Form was closed with OK: storing field values. 2017-01-08 10:32:07,245 [Greenshot] INFO - [Greenshot.Helpers.CaptureHelper] Calling processor TitleFix 2017-01-08 10:32:08,414 [Greenshot] INFO - [GreenshotPlugin.Core.AbstractDestination] Export to Copy to clipboard success, closing menu 2017-01-08 10:37:28,502 [Greenshot] WARN - [GreenshotPlugin.Controls.GreenshotForm] Wrong language key 'about_translation' configured for control 'lblTranslation' 2017-01-08 10:40:50,653 [Greenshot] WARN - [Greenshot.Forms.CaptureForm] Found currentForm, Closing already opened CaptureForm 2017-01-08 10:48:06,166 [Greenshot] ERROR - [Greenshot.MainForm] Exception caught in the ThreadException handler. 2017-01-08 10:48:06,166 [Greenshot] ERROR - [Greenshot.MainForm] Software version: 1.2.9.112-RELEASE-9bc62ac42bd37d7ba2b19946b70d40a599332b75 (64 bit) .NET runtime version: 4.0.30319.42000+ Time: 2017-01-08 10:48:06 +01:00 OS: unknown (x64) 6.1 build 7601 revision 10000 GDI object count: 111 User object count: 96 Exception: System.NullReferenceException Message: Object reference not set to an instance of an object. Stack: at Greenshot.Drawing.TextContainer.EnsureTextBoxContrast() at Greenshot.Drawing.TextContainer.ShowTextBox() at Greenshot.Drawing.DrawableContainerList.OnDoubleClick() at Greenshot.Drawing.Surface.SurfaceDoubleClick(Object sender, MouseEventArgs e) at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Workaround
Current workaround is to not clone speechbubble elements and instead create new ones.