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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono crashes for trying to print an emoji in Keepass2 (I guess) #18079

Open
yannl35133 opened this issue Dec 6, 2019 · 3 comments
Open

Mono crashes for trying to print an emoji in Keepass2 (I guess) #18079

yannl35133 opened this issue Dec 6, 2019 · 3 comments

Comments

@yannl35133
Copy link

Steps to Reproduce

  1. Create a database (or download my test one database.tar.gz: password is empty)
  2. Try to insert an emoji (I tried with 馃弫) in a field for a new entry
  3. Or, conversely, open the database in (native) Windows / with another software, add an entry with an emoji, save, and try to open the folder in Linux/Keepass

Current Behavior

Crashes, see stacktrace below

Expected Behavior

Not crash, at least by not trying to draw emoji if it cannot

On which platforms did you notice this

[ ] macOS
[x] Linux: Kubuntu 19.10
[ ] Windows

Version Used: 6.4.0.198 (and also the version live from Ubuntu's ppa)

Stacktrace

Opening a database with an entry containing 馃弫 (Trying to put 馃弫 in a field creates the same trace, along with another exception which, from a quick look, is caused by the window not being available after it closed)

~$ mono /lib/keepass2/KeePass.exe --debug
System.Exception: Generic Error [GDI+ status: GenericError]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00079] in <954bb0211179498a9465d5f89b2a3d40>:0 
  at System.Drawing.Graphics.FillRectangle (System.Drawing.Brush brush, System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height) [0x00025] in <954bb0211179498a9465d5f89b2a3d40>:0 
  at System.Drawing.Graphics.FillRectangle (System.Drawing.Brush brush, System.Drawing.Rectangle rect) [0x0002c] in <954bb0211179498a9465d5f89b2a3d40>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Graphics.FillRectangle(System.Drawing.Brush,System.Drawing.Rectangle)
  at System.Windows.Forms.ThemeWin32Classic.DrawListViewSubItem (System.Drawing.Graphics dc, System.Windows.Forms.ListView control, System.Windows.Forms.ListViewItem item, System.Int32 index) [0x0017e] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.ThemeWin32Classic.DrawListViewSubItems (System.Drawing.Graphics dc, System.Windows.Forms.ListView control, System.Windows.Forms.ListViewItem item) [0x00022] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.ThemeWin32Classic.DrawListViewItems (System.Drawing.Graphics dc, System.Drawing.Rectangle clip, System.Windows.Forms.ListView control) [0x0007b] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.ListView+ItemControl.OnPaintInternal (System.Windows.Forms.PaintEventArgs pe) [0x00011] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x0006d] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001a4] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.ListView+ItemControl.WndProc (System.Windows.Forms.Message& m) [0x00071] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <7346aaf818a24e898fc55461ebf690ad>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <7346aaf818a24e898fc55461ebf690ad>:0
@yannl35133
Copy link
Author

I first filed a bug on Keepass' sourceforge, I was told it was Mono's fault.

@yannl35133
Copy link
Author

The bug is still present on version 6.8.0.105

@luminoso
Copy link

luminoso commented Jul 22, 2020

Same. I've reported to keepass here and I was redirected to this bug. Is there any information that I can add to help to solve this issue?

$ mono --version
Mono JIT compiler version 6.10.0.104 (tarball Fri Jun 26 20:45:56 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        Interpreter:   yes
        LLVM:          yes(610)
        Suspend:       hybrid
        GC:            sgen (concurrent by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants