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

点击X图标时崩溃V1.2.0(Crashes when clicking the X icon.) #205

Open
EasonHelloWord opened this issue Dec 30, 2023 · 0 comments
Open

Comments

@EasonHelloWord
Copy link

问题描述(Issue Description)

使用数位笔或鼠标点击X图标会有一定概率触发崩溃事件,有种拆炸弹的美感。
(Clicking the X icon with a digital pen or mouse has a certain probability of triggering a crash event, giving it a somewhat suspenseful and delicate feel, akin to disarming a bomb.)
后附配置文件
(Ending is the configuration file.)

崩溃日志(Crash Log)

UIThreadException

Oops, gInk crashed! Please include the following information if you plan to contact the developers (a copy of the following information is stored in crash.txt in the application folder):

参数无效。

Stack Trace:
   在 System.Drawing.Image.get_Width()
   在 System.Drawing.Image.get_Size()
   在 System.Windows.Forms.ButtonInternal.ButtonBaseAdapter.CommonLayout()
   在 System.Windows.Forms.ButtonInternal.ButtonFlatAdapter.PaintFlatLayout(PaintEventArgs e, Boolean up, Boolean check, Int32 borderSize)
   在 System.Windows.Forms.ButtonInternal.ButtonFlatAdapter.PaintUp(PaintEventArgs e, CheckState state)
   在 System.Windows.Forms.ButtonInternal.ButtonBaseAdapter.Paint(PaintEventArgs pevent)
   在 System.Windows.Forms.ButtonBase.OnPaint(PaintEventArgs pevent)
   在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   在 System.Windows.Forms.Control.WmPaint(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
   在 System.Windows.Forms.Button.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

配置文件

config.ini

----------
[Basic Settings]

# Language
Language_File = zh-cn

# Use a white icon in system tray instead of the default red one (looks better in windows 10 :)
White_Tray_Icon = True

# The folder that snapshots are saved to
Snapshot_Path = %USERPROFILE%/Pictures/gInk/

# Show eraser icon
Eraser_Icon = True

# Show pan icon
Pan_Icon = True

# Show pointer icon
Pointer_Icon = True

# Show pen width icon
Pen_Width_Icon = True

# Show view/hide inks icon
InkVisible_Icon = True

# Show snapshot icon
Snapshot_Icon = True

# Show undo icon
Undo_Icon = True

# Show clear icon
Clear_Icon = True

# Which mouse cursor to use on canvas
Canvas_Cursor = 1

# Allow dragging toolbar
Allow_Dragging_Toolbar = True

# Allow all non-global hotkeys in mouse pointer mode (may cause a mess)
Allow_Hotkey_In_Pointer_Mode = True

# Toolbar location (only applicable when allowing dragging toolbar)
Toolbar_Left = 957
Toolbar_Top = 46

----------
[Advanced Settings]

# Whether the toolbar automatically closes itself after taking a snapshot
# Values could be True, False or BlankOnly
# If Close_On_Snap = True, the toolbar closes itself after taking a snapshot
# If Close_On_Snap = False, the toolbar does not close itself
# If Close_On_Snap = BlankOnly (default value), the toolbar closes itself after taking a snapshot if there is no drawings on the screen, while not if otherwise.
Close_On_Snap = BlankOnly

# Whether to hide the toolbar completely
# If Always_Hide_Toolbar = True, the toolbar will never be shown. You will have to use hotkeys.
Always_Hide_Toolbar = False

# Height of toolbar, in proportional of primary screen height.
Toolbar_Height = 0.05

hotkeys.ini

----------
[Hotkeys]

# The global hotkey to start drawing
# e.g.
# Hotkey_Global = None
# Hotkey_Global = Ctrl + Alt + Shift + X
Hotkey_Global = Ctrl + Alt + Shift + P

# Hotkey for each tool
Hotkey_Eraser = Ctrl + Alt + Shift + E
Hotkey_InkVisible = V
Hotkey_Pointer = None
Hotkey_Pan = None
Hotkey_Undo = Ctrl + Z
Hotkey_Redo = Ctrl + Y
Hotkey_Snapshot = Ctrl + Alt + S
Hotkey_Clear = Ctrl + Alt + Shift + C

# Hotkey for each pen
Pen0_Hotkey = 0
Pen1_Hotkey = 1
Pen2_Hotkey = 2
Pen3_Hotkey = 3
Pen4_Hotkey = 4
Pen5_Hotkey = 5
Pen6_Hotkey = 6
Pen7_Hotkey = 7
Pen8_Hotkey = 8
Pen9_Hotkey = 9

pens.ini

[PEN0]
Pen0_Enabled = True
Pen0_Red = 80
Pen0_Green = 80
Pen0_Blue = 80
Pen0_Alpha = 255
Pen0_Width = 80

[PEN1]
Pen1_Enabled = True
Pen1_Red = 225
Pen1_Green = 60
Pen1_Blue = 60
Pen1_Alpha = 255
Pen1_Width = 80

[PEN2]
Pen2_Enabled = True
Pen2_Red = 30
Pen2_Green = 110
Pen2_Blue = 200
Pen2_Alpha = 255
Pen2_Width = 80

[PEN3]
Pen3_Enabled = False
Pen3_Red = 235
Pen3_Green = 180
Pen3_Blue = 55
Pen3_Alpha = 255
Pen3_Width = 80

[PEN4]
Pen4_Enabled = False
Pen4_Red = 120
Pen4_Green = 175
Pen4_Blue = 70
Pen4_Alpha = 255
Pen4_Width = 80

[PEN5]
Pen5_Enabled = True
Pen5_Red = 235
Pen5_Green = 125
Pen5_Blue = 15
Pen5_Alpha = 80
Pen5_Width = 800

[PEN6]
Pen6_Enabled = False
Pen6_Red = 230
Pen6_Green = 230
Pen6_Blue = 230
Pen6_Alpha = 255
Pen6_Width = 80

[PEN7]
Pen7_Enabled = False
Pen7_Red = 240
Pen7_Green = 140
Pen7_Blue = 200
Pen7_Alpha = 255
Pen7_Width = 80

[PEN8]
Pen8_Enabled = False
Pen8_Red = 25
Pen8_Green = 180
Pen8_Blue = 175
Pen8_Alpha = 255
Pen8_Width = 80

[PEN9]
Pen9_Enabled = False
Pen9_Red = 145
Pen9_Green = 70
Pen9_Blue = 160
Pen9_Alpha = 80
Pen9_Width = 500
@EasonHelloWord EasonHelloWord changed the title 点击X图标时崩溃Vv1.2.0(Crashes when clicking the X icon.) 点击X图标时崩溃V1.2.0(Crashes when clicking the X icon.) Dec 30, 2023
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

2 participants