Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upMikrotik Winbox crashes when starting #266
Comments
vegardlarsen
self-assigned this
Nov 6, 2018
vegardlarsen
added
the
bug
label
Nov 6, 2018
vegardlarsen
added this to the 2.0.0 milestone
Nov 6, 2018
This comment has been minimized.
This comment has been minimized.
Thank you for writing. I will investigate this for 2.0 final and see if it can be fixed. |
This comment has been minimized.
This comment has been minimized.
@drizo72 I have verified that this issue occurs when Winbox connects to a server. Preliminary findings: Crashes with Call stack
On the second walkthrough of this, I was able to get an access violation in Call stack of second crash
I have no idea why this occurs at the moment. |
This comment has been minimized.
This comment has been minimized.
ShutterQuick
commented
Jan 23, 2019
@vegardlarsen Any update on this issue? It is rather annoying to have to disable and reactivate MaxTo all the time. Do you see any obvious reason why the following wouldn't work? Maybe I'm misunderstanding matching on process, or maybe my assumption about {
"id": "winbox",
"descriptions": {
"en": {
"title": "Mikrotik Winbox",
"subtitle": "Prevent crashes",
"description": "[Winbox](https://wiki.mikrotik.com/wiki/Manual:Winbox) is a tool for managing Mikrotik routers. It crashes if on connection when MaxTo is injected into it."
}
},
"iconUrl": "https://publicdomainvectors.org/photos/winbox-mikrotik-icon.png",
"url": null,
"canDisable": true,
"defaultEnabled": true,
"ignore": true,
"disableSubclassing": false,
"disableSnapping": false,
"disableTransparency": false,
"useMoveWindow": false,
"emulatesMaximize": false,
"windowClasses": [],
"processes": [
"winbox"
]
} |
This comment has been minimized.
This comment has been minimized.
This seems correct to me at a glance. This assumes that the WinBox process is called |
This comment has been minimized.
This comment has been minimized.
Gappa
commented
Jan 29, 2019
Tried |
This comment has been minimized.
This comment has been minimized.
Gappa
commented
Jan 29, 2019
Also, here's the crash log: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-01-29T09:42:41.351552200Z" />
<EventRecordID>4752</EventRecordID>
<Channel>Application</Channel>
<Computer>DESKTOP-Q6QJ7OC</Computer>
<Security />
</System>
<EventData>
<Data>winbox.exe</Data>
<Data>0.0.0.0</Data>
<Data>382f3815</Data>
<Data>roteros.dll</Data>
<Data>0.0.0.0</Data>
<Data>4cee2c15</Data>
<Data>40000015</Data>
<Data>000b674d</Data>
<Data>99624</Data>
<Data>01d4b7b6e96af21f</Data>
<Data>G:\Software\winbox.exe</Data>
<Data>C:\Users\User\AppData\Roaming\Mikrotik\Winbox\5.0rc5-1475189138\roteros.dll</Data>
<Data>fa15f794-40c7-47c3-928f-555fe389bc19</Data>
<Data />
<Data />
</EventData>
</Event> |
This comment has been minimized.
This comment has been minimized.
@Gappa Can you go into MaxTo settings, under Compatibility, and hit Check for updates? Then after restarting MaxTo and WinBox, check to see if the issue is still present? It took me quite a while to figure this out, but apparently some intermediary windows are shown. They have a window class of The JSON for this update looks like this: {
"id": "winbox",
"descriptions": {
"en": {
"title": "Mikrotik WinBox",
"subtitle": "Prevent crash",
"description": "Microtik WinBox presents some intermediary windows that MaxTo should not subclass, to prevent crashes."
}
},
"iconUrl": null,
"url": null,
"canDisable": true,
"defaultEnabled": true,
"ignore": false,
"disableSubclassing": true,
"disableSnapping": false,
"disableTransparency": false,
"useMoveWindow": false,
"emulatesMaximize": false,
"windowClasses": [
"routeros_null"
],
"processes": []
} |
This comment has been minimized.
This comment has been minimized.
Gappa
commented
Feb 4, 2019
Version 2.0.0-beta9, updated compatibility list, restarted MaxTo. Sadly, it still crashes, outputting the same log as above. How can I determine the window class? Because after successful log-in the whole window/GUI changes so drastically that it might be completely something new. |
This comment has been minimized.
This comment has been minimized.
@Gappa Did Mikrotik WinBox show up on the compatibility list? Your assumption is correct; WinBox opens and closes a bunch of windows when you connect, and it is one of the intermediary ones that caused issues on my machine at least. The other main candidate was |
This comment has been minimized.
This comment has been minimized.
ShutterQuick
commented
Feb 4, 2019
@vegardlarsen Thanks for looking into this. I put in place my backup-copy of I'm running MaxTo 2.0.0-beta9. |
This comment has been minimized.
This comment has been minimized.
Gappa
commented
Feb 4, 2019
Yup, WinBox is present in the compatibility list. One thing to add - I have to use an older version to connect to the device, newer versions aren't compatible, that might mean something as well. Tried all of these, no change: "windowClasses": [
"routeros_connect",
"routeros_mbox",
"routeros_null",
"routeros_main"
], The |
This comment has been minimized.
This comment has been minimized.
After a reboot here, the problem started re-appearing. I am looking into it. |
This comment has been minimized.
This comment has been minimized.
I have found that checking WinBox' "Open in new window" stops the crash from happening. Still investigating. |
This comment has been minimized.
This comment has been minimized.
I found the reason this wouldn't work; and it is a bug in MaxTo itself. For 32-bit programs, MaxTo won't be able to read the list of compatibility shims from the hook DLL, due to a misunderstanding about how types change sizes in C/C++ when compiling for different architectures. This means that until I get a new version released (hopefully tomorrow), you won't be able to get this to work. |
vegardlarsen
modified the milestones:
2.0.0,
2.0.0-beta.10
Feb 5, 2019
vegardlarsen
closed this
Feb 5, 2019
This comment has been minimized.
This comment has been minimized.
ShutterQuick
commented
Feb 6, 2019
Still not working on 2.0.0-beta10 for me. Shim enabled, but winbox still crashes. Can confirm the open in new window workaround works, though, so it's not all bad |
This comment has been minimized.
This comment has been minimized.
Gappa
commented
Feb 6, 2019
•
Confirmed still crashing. However, there is a typo in the shim: "windowClasses": [
"routeros_null",
"routeros_connet"
], ...which is the reason why it doesn't work :) After correcting it to Edit: my own typos, some claficiations. |
This comment has been minimized.
This comment has been minimized.
@Gappa Thanks. I have corrected this typo this server-side, so the next time you update your shims the correct one will be pulled down. cc: @ShutterQuick |
This comment has been minimized.
This comment has been minimized.
ShutterQuick
commented
Feb 6, 2019
•
Thanks for fixing this issue, it's working correctly now! Just one pedantic little thing; you have a spelling error in the description: |
This comment has been minimized.
This comment has been minimized.
Gappa
commented
Feb 6, 2019
Well... |
drizo72 commentedOct 27, 2018
When I start Mikrotik's Winbox application to control my router, the application crashes. It seems unable to maximize.
I have closed MaxTO 2 beta and it works fine. I have reinstalled MaxTo 1 and winbox works without any issues.