Dateranoth Posted January 5, 2019 Share Posted January 5, 2019 I have the same problem as listed in a different post. I wanted to expand on the problem, as I found it to be version specific. System Information: expandcollapse popupTime of this report: 1/5/2019, 14:21:08 Operating System: Windows 10 Home 64-bit (10.0, Build 17134) (17134.rs4_release.180410-1804) Language: English (Regional Setting: English) System Manufacturer: LENOVO System Model: 80X7 BIOS: 4MCN33WW(V2.05) (type: UEFI) Processor: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 CPUs), ~2.8GHz Memory: 16384MB RAM Available OS Memory: 16208MB RAM Page File: 7255MB used, 11383MB available Windows Dir: C:\WINDOWS DirectX Version: DirectX 12 DX Setup Parameters: Not found User DPI Setting: 192 DPI (200 percent) System DPI Setting: 240 DPI (250 percent) DWM DPI Scaling: Enabled Miracast: Available, with HDCP Microsoft Graphics Hybrid: Supported DxDiag Version: 10.00.17134.0001 64bit Unicode Card name: Intel(R) HD Graphics 630 Manufacturer: Intel Corporation Chip type: Intel(R) HD Graphics Family DAC type: Internal Device Type: Full Device (POST) Device Key: Enum\PCI\VEN_8086&DEV_591B&SUBSYS_39CB17AA&REV_04 Device Status: 0180200A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER] Device Problem Code: No Problem Driver Problem Code: Unknown Display Memory: 8231 MB Dedicated Memory: 128 MB Shared Memory: 8103 MB Current Mode: 3840 x 2160 (32 bit) (60Hz) HDR Support: Not Supported Display Topology: Internal Display Color Space: DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Color Primaries: Red(0.643078,0.342297), Green(0.313000,0.627453), Blue(0.146008,0.080578), White Point(0.313000,0.328625) Display Luminance: Min Luminance = 0.500000, Max Luminance = 270.000000, MaxFullFrameLuminance = 270.000000 Monitor Name: Generic PnP Monitor Monitor Model: unknown Monitor Id: BOE06F4 Native Mode: 3840 x 2160(p) (59.997Hz) The problem I have is an error when trying to scroll through my code. First, before the crash I get the message: >Lua: Scintilla failure 1 for message 2152. Then shortly after this message appears, if I try to do much of anything else, including attempting to open a menu I get: --------------------------- Failure in Scintilla --------------------------- Scintilla failed with status 1. SciTE will now close. --------------------------- OK --------------------------- Information: The code I am trying to scroll through can be find here: https://github.com/Dateranoth/ConanExilesServerUtility/tree/master/src/ConanServerUtility SciTE.exe & SciLexer.dll Version 3.7.3.0 DOES NOT CRASH Any Full version after that crashes with the above errors. This includes the portable version I have been testing with 4.1.2.0 The official version of SciTE does not crash either: https://www.scintilla.org/SciTEDownload.html The Lite version that ships with the latest release of AutoIT does not crash. Version 4.1.2.0 does not crash if you just copy and paste the code in. It crashes after you save it to a file, close, and reopen. Version 4.1.2.0 will not crash with the below code. expandcollapse popup#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=..\..\resources\favicon.ico #AutoIt3Wrapper_Outfile=..\..\build\ConanServerUtility_x86_v3.3.0-beta.3.exe #AutoIt3Wrapper_Outfile_x64=..\..\build\ConanServerUtility_x64_v3.3.0-beta.3.exe #AutoIt3Wrapper_Compile_Both=y #AutoIt3Wrapper_UseX64=y #AutoIt3Wrapper_Res_Comment=By Dateranoth - June 18, 2018 #AutoIt3Wrapper_Res_Description=Utility for Running Conan Server #AutoIt3Wrapper_Res_Fileversion=3.3.0-beta.3 #AutoIt3Wrapper_Res_LegalCopyright=Dateranoth @ https://gamercide.com #AutoIt3Wrapper_Res_Language=1033 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;Originally written by Dateranoth for use ;by https://gamercide.com on their server ;Distributed Under GNU GENERAL PUBLIC LICENSE ;RCON notifications will download external application mcrcon if enabled. ;Tiiffi/mcrcon is licensed under the zlib License ;https://github.com/Tiiffi/mcrcon/blob/master/LICENSE ;https://github.com/Tiiffi/mcrcon #include <Date.au3> #include "required\RemoteRestart.au3" #include "required\UnZip.au3" #include "required\UserSettingsIni.au3" #Region ;**** Global Variables **** Global $g_sTimeCheck0 = _NowCalc() Global $g_sTimeCheck1 = _NowCalc() Global $g_sTimeCheck2 = _NowCalc() Global $g_sTimeCheck3 = _NowCalc() Global $g_sTimeCheck4 = _NowCalc() Global Const $g_c_sServerEXE = "ConanSandboxServer-Win64-Test.exe" Global Const $g_c_sPIDFile = @ScriptDir & "\ConanServerUtility_lastpid_tmp" Global Const $g_c_sHwndFile = @ScriptDir & "\ConanServerUtility_lasthwnd_tmp" Global Const $g_c_sMODIDFile = @ScriptDir & "\ConanServerUtility_modid2modname.ini" Global Const $g_c_sLogFile = @ScriptDir & "\ConanServerUtility.log" Global Const $g_c_sIniFile = @ScriptDir & "\ConanServerUtility.ini" Global $g_iBeginDelayedShutdown = 0 Global $g_sServerSettingIniLoc = "\ConanSandbox\saved\Config\WindowsServer\ServerSettings.ini" If FileExists($g_c_sPIDFile) Then Global $g_sConanPID = FileRead($g_c_sPIDFile) Else Global $g_sConanPID = "0" EndIf If FileExists($g_c_sHwndFile) Then Global $g_hConanhWnd = HWnd(FileRead($g_c_sHwndFile)) Else Global $g_hConanhWnd = "0" EndIf #EndRegion ;**** Global Variables **** Func Gamercide() If @exitMethod <> 1 Then $Shutdown = MsgBox(4100, "Shut Down?", "Do you wish to shutdown Server " & $ServerName & "? (PID: " & $g_sConanPID & ")", 60) If $Shutdown = 6 Then FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] Server Shutdown - Intiated by User when closing ConanServerUtility Script") CloseServer() EndIf MsgBox(4096, "Thanks for using our Application", "Please visit us at https://gamercide.com", 2) FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Stopped by User") Else FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Stopped") EndIf If $UseRemoteRestart = "yes" Then TCPShutdown() EndIf Exit EndFunc ;==>Gamercide Func CloseServer() If WinExists($g_hConanhWnd) Then ControlSend($g_hConanhWnd, "", "", "^X" & @CR) ControlSend($g_hConanhWnd, "", "", "^X" & @CR) ControlSend($g_hConanhWnd, "", "", "^C") FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] Server Window Found - Sending Ctrl+C for Clean Shutdown") WinWaitClose($g_hConanhWnd, "", 60) EndIf If ProcessExists($g_sConanPID) Then FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] Server Did not Shut Down Properly. Killing Process") ProcessClose($g_sConanPID) EndIf If FileExists($g_c_sPIDFile) Then FileDelete($g_c_sPIDFile) EndIf If FileExists($g_c_sHwndFile) Then FileDelete($g_c_sHwndFile) EndIf EndFunc ;==>CloseServer Func LogWrite($sString) FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] " & $sString) EndFunc ;==>LogWrite Version 4.1.2.0 crashes when a few more functions are added. expandcollapse popup#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=..\..\resources\favicon.ico #AutoIt3Wrapper_Outfile=..\..\build\ConanServerUtility_x86_v3.3.0-beta.3.exe #AutoIt3Wrapper_Outfile_x64=..\..\build\ConanServerUtility_x64_v3.3.0-beta.3.exe #AutoIt3Wrapper_Compile_Both=y #AutoIt3Wrapper_UseX64=y #AutoIt3Wrapper_Res_Comment=By Dateranoth - June 18, 2018 #AutoIt3Wrapper_Res_Description=Utility for Running Conan Server #AutoIt3Wrapper_Res_Fileversion=3.3.0-beta.3 #AutoIt3Wrapper_Res_LegalCopyright=Dateranoth @ https://gamercide.com #AutoIt3Wrapper_Res_Language=1033 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;Originally written by Dateranoth for use ;by https://gamercide.com on their server ;Distributed Under GNU GENERAL PUBLIC LICENSE ;RCON notifications will download external application mcrcon if enabled. ;Tiiffi/mcrcon is licensed under the zlib License ;https://github.com/Tiiffi/mcrcon/blob/master/LICENSE ;https://github.com/Tiiffi/mcrcon #include <Date.au3> #include "required\RemoteRestart.au3" #include "required\UnZip.au3" #include "required\UserSettingsIni.au3" #Region ;**** Global Variables **** Global $g_sTimeCheck0 = _NowCalc() Global $g_sTimeCheck1 = _NowCalc() Global $g_sTimeCheck2 = _NowCalc() Global $g_sTimeCheck3 = _NowCalc() Global $g_sTimeCheck4 = _NowCalc() Global Const $g_c_sServerEXE = "ConanSandboxServer-Win64-Test.exe" Global Const $g_c_sPIDFile = @ScriptDir & "\ConanServerUtility_lastpid_tmp" Global Const $g_c_sHwndFile = @ScriptDir & "\ConanServerUtility_lasthwnd_tmp" Global Const $g_c_sMODIDFile = @ScriptDir & "\ConanServerUtility_modid2modname.ini" Global Const $g_c_sLogFile = @ScriptDir & "\ConanServerUtility.log" Global Const $g_c_sIniFile = @ScriptDir & "\ConanServerUtility.ini" Global $g_iBeginDelayedShutdown = 0 Global $g_sServerSettingIniLoc = "\ConanSandbox\saved\Config\WindowsServer\ServerSettings.ini" If FileExists($g_c_sPIDFile) Then Global $g_sConanPID = FileRead($g_c_sPIDFile) Else Global $g_sConanPID = "0" EndIf If FileExists($g_c_sHwndFile) Then Global $g_hConanhWnd = HWnd(FileRead($g_c_sHwndFile)) Else Global $g_hConanhWnd = "0" EndIf #EndRegion ;**** Global Variables **** Func Gamercide() If @exitMethod <> 1 Then $Shutdown = MsgBox(4100, "Shut Down?", "Do you wish to shutdown Server " & $ServerName & "? (PID: " & $g_sConanPID & ")", 60) If $Shutdown = 6 Then FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] Server Shutdown - Intiated by User when closing ConanServerUtility Script") CloseServer() EndIf MsgBox(4096, "Thanks for using our Application", "Please visit us at https://gamercide.com", 2) FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Stopped by User") Else FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Stopped") EndIf If $UseRemoteRestart = "yes" Then TCPShutdown() EndIf Exit EndFunc ;==>Gamercide Func CloseServer() If WinExists($g_hConanhWnd) Then ControlSend($g_hConanhWnd, "", "", "^X" & @CR) ControlSend($g_hConanhWnd, "", "", "^X" & @CR) ControlSend($g_hConanhWnd, "", "", "^C") FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] Server Window Found - Sending Ctrl+C for Clean Shutdown") WinWaitClose($g_hConanhWnd, "", 60) EndIf If ProcessExists($g_sConanPID) Then FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] Server Did not Shut Down Properly. Killing Process") ProcessClose($g_sConanPID) EndIf If FileExists($g_c_sPIDFile) Then FileDelete($g_c_sPIDFile) EndIf If FileExists($g_c_sHwndFile) Then FileDelete($g_c_sHwndFile) EndIf EndFunc ;==>CloseServer Func LogWrite($sString) FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] " & $sString) EndFunc ;==>LogWrite Func TempFunc() ;Nothing EndFunc ;==>CloseServer Func TempFunc2($sString) ;Nothing EndFunc ;==>LogWrite Link to comment Share on other sites More sharing options...
Developers Jos Posted January 5, 2019 Developers Share Posted January 5, 2019 (edited) 2 hours ago, Dateranoth said: Version 4.1.2.0 does not crash if you just copy and paste the code in. It crashes after you save it to a file, close, and reopen. Same as the other thread: It doesn't crash for me. ... so can't debug until I know what to change to make it crash. The other report seemed to have something related to regional settings, but that wasn't really clear for me either. So what are your regional settings shown by the windows systeminfo command? these are my current settings: System Locale: nl;Nederlands (Nederland) Input Locale: en-us;Engels (Verenigde Staten) Jos Edited January 5, 2019 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Dateranoth Posted January 6, 2019 Author Share Posted January 6, 2019 Here are my settings. I don't have Nederlands as an option, so I can't change it to try. I did try enabling Beta: Use Unicode UTF-8, but the same error occurred. System Locale: en-us;English (United States) Input Locale: en-us;English (United States) I just tried the latest version on a Windows 7 machine, and I could not replicate the crash. However, I tried a different Windows 10 machine and it crashed as well. Link to comment Share on other sites More sharing options...
Dateranoth Posted January 6, 2019 Author Share Posted January 6, 2019 I did some further testing, and I was able to successfully prevent the crash and reproduce it. When I comment out or change utf8.auto.check=4 to 1 or 2 in SciTEGlobal.properties the program no longer crashes. If I change it to 3 or 4 it will crash. #~ Enhance function of auto checking utf8: providing two methods # detect utf8 and add BOM automatically Credits to SciTE-RU #~ utf8.auto.check=1 # detect utf8 and do not add BOM #~ utf8.auto.check=2 # detect ascii high characters and if none found set default encoding to UTF8 and add BOM #~ utf8.auto.check=3 # detect ascii high characters and if none found set default encoding to UTF8 and do not add BOM utf8.auto.check=4 Link to comment Share on other sites More sharing options...
Developers Jos Posted January 6, 2019 Developers Share Posted January 6, 2019 I have tried that as well and the default is 4 so that doesn't crash for me. I was just checking for that LUA error you get and think that comes from this piece of code in AutoHScroll.lua: function AutoHScroll:OnUpdateUI() self:SetWidth(editor) self:SetWidth(output) end -- OnUpdateUI() Could you try changing that in your setup to: function AutoHScroll:OnUpdateUI() --self:SetWidth(editor) --self:SetWidth(output) end -- OnUpdateUI() .. and test again? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Dateranoth Posted January 6, 2019 Author Share Posted January 6, 2019 That did change the error. I set utf8.auto.check back to the default of 4 and modified the code you asked. The error is now >Lua: Scintilla failure 1 for message 4002. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 6, 2019 Developers Share Posted January 6, 2019 Ok, so that isn't the root cause as the 4002 message is the SCI_GETLEXER call which is pretty generic. I wish I had a way to replicate the issue.... What do you have for these settings in either SciTEUser or SciTEGlobal that are active?: code.page=?? character.set=?? Default is: code.page=0 #character.set=204 -- so not active!) Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Dateranoth Posted January 6, 2019 Author Share Posted January 6, 2019 Looks like they are set to default. code.page=0 #character.set=204 Link to comment Share on other sites More sharing options...
Developers Jos Posted January 6, 2019 Developers Share Posted January 6, 2019 ....then I am currently out of ideas how to replicate your crash and be able to debug it.....sorry Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Dateranoth Posted January 6, 2019 Author Share Posted January 6, 2019 I managed to change my system locale to nl, but it still crashed. For now I will just set utf8.auto.check=2 to in SciTEGlobal.properties . This is currently preventing it from crashing. Thanks for your help anyway. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now