gilleswaeber / emoji-keyboard

Emoji Keyboard for Windows, allows to type emojis in any application using an onscreen keyboard.
MIT License
47 stars 4 forks source link

Crashes under dark theme on Windows 7 #3

Closed benshep closed 3 years ago

benshep commented 7 years ago

If I set the theme to "dark", open the keyboard and hover over a key with the mouse, the app crashes instantly and shows an "AutoHotKey has stopped working" window. I'm running it under Windows 7. Happy to provide debug info if there is any!

gilleswaeber commented 7 years ago

Hello, I've tried to run it under Windows 7 (Professional, 32-bit) but could not reproduce the error.

Another issue I've encountered is that most of characters appears as rectangles. I've opened the issue #4.

gilleswaeber commented 7 years ago

If you get the following error message, it means AHK is not up to date (v.1.1.21 required)

[Window Title] Web Browser

[Content] Cannot find ‘file:///’. Make sure the path or Internet address is correct.

[OK]

benshep commented 7 years ago

I have AHK version 1.1.26.01, and Windows 7 Pro 64-bit with all updates applied. To be honest, the bug seems a little hard to reproduce. Sometimes I get a "Stack overflow on line 3" error, sometimes a "variable not found" error, and sometimes it crashes and totally hangs my system for a few minutes, to the extent that I can't even move the mouse.

The HTML files open fine in IE.

gilleswaeber commented 7 years ago

Each time you hover a key, the title of the window is changed. This may be the issue (i.e. too much calls causing a crash).

Could you try the following script? It should show a window in the middle of the screen with an incrementing number in the titlebar. Does it crash? Which number does it reach in 10 seconds? Does the title bar "blink"?

#SingleInstance force

Gui __Webapp_:New
Gui __Webapp_:Margin, 0, 0
Gui __Webapp_:+LastFound +Resize
Gui __Webapp_:Add, ActiveX, w200 h200, Shell.Explorer

Gui __Webapp_:+E0x08000000 +AlwaysOnTop -MaximizeBox -MinimizeBox
Gui __Webapp_:Show, NA, Test

OnMessage(0x112, "WM_SYSCOMMAND")

WM_SYSCOMMAND(wParam)
{
    if (wParam = 0xF060) ; SC_CLOSE
    {
        ExitApp, 0
    }
}

v := 0

SetTimer, Timer, 0

Timer:
    v := v + 1
    Gui __Webapp_:Show, NA, %v%
Return

If you get an error dialog please post it here (you can copy the content of a dialog box with Ctrl+C).

benshep commented 7 years ago

That script runs absolutely fine - it reaches 600 in 10 seconds, and keeps going without crashing. The title bar doesn't blink.

gilleswaeber commented 3 years ago

Closing as I don't know how to reproduce the problem, sorry.