tranht17 / WinTune

Tweak & optimize your Windows system
GNU General Public License v3.0
115 stars 5 forks source link

WinTune does no longer start: Can't create control. #20

Closed megabugman closed 3 weeks ago

megabugman commented 4 weeks ago

I messed with the hosts file while WinTune was running, now the app does no longer start: bug

[ config.ini ] [General] LastTab=8

[ log.txt ] ================= WinTune v2.5.3 ================= OSVersion :10.0.22631 Is64bitOS :1 InstallationType :Client EditionID :Professional

Time :20240818165204 Message :Can't create control. Extra : Stack :#1 (4161) : [Gui.Prototype.AddEdit] HostsEdit := g.AddEdit("h" PanelH-12 " w" PanelW-320-24 " -wrap x" sXCBT+6 " y" sYCBT+6 " vHostsEdit",Hosts) #1 (4161) : [BtnHostsEdit_Click] HostsEdit := g.AddEdit("h" PanelH-12 " w" PanelW-320-24 " -wrap x" sXCBT+6 " y" sYCBT+6 " vHostsEdit",Hosts) #1 (3385) : [NavItem_Click] CurrentTabCtrls := %Layout[g.NavSelected].Fn%(g, g.NavSelected) #1 (3356) : [CreateGui] NavItem_Click(g, IniRead("config.ini", "General", "LastTab", 1)) *#1 (5231) : [] CreateGui()

Auto-execute

after deleting the config.ini file WinTune starts again, but Hosts Edit Window is now empty. After closing WinTune above log.txt and config.ini is created and WinTune does not start again.

BTW, I opened the hosts file in Notepad4 and used Merge duplicate lines, maybe you want to implement this as well? In case you need the hosts file to reproduce the issue, let me know how I can send it to you privately.

did more tests, it seems to be caused by the hosts file: image

OK, here the steps to reproduce the issue: bug

megabugman commented 3 weeks ago

Not Fixed. Process hangs when importing all block lists image

bug