Denvi / Candle

GRBL controller application with G-Code visualizer written in Qt.
GNU General Public License v3.0
1.37k stars 547 forks source link

[1.2b] settings.ini issues, WINDOWS settings not saved at all #582

Open iz3man opened 1 year ago

iz3man commented 1 year ago

Versions

PC info

Describe the bug

Had version 1.1.7 running fine, but wanted to use new features of 1.2 so I tried to update. Took git version and did modifications to compile for x64 (https://adrian.siemieniak.net/portal/candle-1-2b-for-linux/)

Problem is: First start works fine (as long as there's no settings.ini). But when you start to set port, baudrate etc ... and exit (or even just exit and restart), the next start shows only the gcode window, and all other windows are lost. I can select them of course, they show up, but the next time I exit and restart those are gone.

All other settings (like colors or fonts etc) seem to be saved perfectly fine, and stay changed after a restart.

To Reproduce

Install, start, exit. Restart. All windows gone.

Expected behavior

Selected windows shall stay selected.

Screenshots

Working fine the first start:

Screenshot at 17-23-29

doing some settings changes:

Screenshot at 17-23-56

All windows gone:

Screenshot at 17-24-26

settings.ini:

[General] Tool=#000000 ToolpathDrawn=#000000 ToolpathEnd=#000000 ToolpathHighlight=#000000 ToolpathNormal=#000000 ToolpathStart=#000000 ToolpathZMovement=#000000 VisualizerBackground=#000000 VisualizerText=#000000 acceleration=10 antialiasing=true arcDegree=0 arcDegreeMode=true arcLength=0 autoCompletion=true autoLine=true autoScroll=false baud=0 drawModeVectors=true feedOverride=false feedOverrideValue=100 feedPanel=true fontSize=8 formGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0>\0\0\0\x1b\0\0\a\x7f\0\0\x4\x37\0\0\0>\0\0\0@\0\0\a\x7f\0\0\x4\x36\0\0\0\0\x2\0\0\0\a\x80\0\0\0>\0\0\0@\0\0\a\x7f\0\0\x4\x37) formMainState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x4\0\0\0\0\0\0\0\xfa\0\0\x3\xd4\xfc\x2\0\0\0\x1\xfb\0\0\0\x14\0\x64\0o\0\x63\0k\0\x44\0\x65\0v\0i\0\x63\0\x65\0\0\0\0$\0\0\x3\xd4\0\0\x1R\0\xff\xff\xff\0\0\0\x1\0\0\0\xfa\0\0\x3\xd4\xfc\x2\0\0\0\x1\xfb\0\0\0 \0\x64\0o\0\x63\0k\0M\0o\0\x64\0i\0\x66\0i\0\x63\0\x61\0t\0i\0o\0n\0\0\0\0$\0\0\x3\xd4\0\0\x1R\0\xff\xff\xff\0\0\0\x2\0\0\x5 \0\0\x1\xcc\xfc\x1\0\0\0\x1\xfb\0\0\0\x1c\0\x64\0o\0\x63\0k\0V\0i\0s\0u\0\x61\0l\0i\0z\0\x65\0r\0\0\0\x1\x11\0\0\x5 \0\0\x1^\0\0\x1^\0\0\0\x3\0\0\x5 \0\0\x1\b\xfc\x1\0\0\0\x1\xfb\0\0\0\x16\0\x64\0o\0\x63\0k\0\x43\0o\0n\0s\0o\0l\0\x65\0\0\0\x1\x11\0\0\x5 \0\0\x1^\0\xff\xff\xff\0\0\x5 \0\0\0\xf4\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x2\xfc\0\0\0\x3\0\0\0\0\0\0\0\x1\0\0\0\x16\0\0s\0p\0\x61\0\x63\0\x65\0r\0L\0\x65\0\x66\0t\x2\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\x18\0\0s\0p\0\x61\0\x63\0\x65\0r\0R\0i\0g\0h\0t\x2\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x2\0\0\0\x1\0\0\0\x14\0_\0s\0p\0\x61\0\x63\0\x65\0r\0T\0o\0p\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) formSettingsSize=@Size(885 846) fps=60 grayscaleSCode=true grayscaleSegments=false header=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x6\x30\0\0\0\x2\0\0\0\x4\0\0\0\x64\0\0\0\x5\0\0\0\x64\0\0\x5\x1e\0\0\0\x6\0\x1\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\x64\0\0\0\x32\0\0\0\x84\0\0\0\0\0\0\0\x6\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\x3\xf2\0\0\0\x1\0\0\0\x1\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\0\0\0\0) heightmapBorderHeight=1 heightmapBorderShow=false heightmapBorderWidth=1 heightmapBorderX=0 heightmapBorderY=0 heightmapGridShow=false heightmapGridX=2 heightmapGridY=2 heightmapGridZBottom=-1 heightmapGridZTop=1 heightmapInterpolationShow=false heightmapInterpolationStepX=2 heightmapInterpolationStepY=2 heightmapInterpolationType=0 heightmapPanel=true heightmapProbingFeed=0 ignoreErrors=false jogFeed= jogFeeds=10, 50, 100, 500, 1000, 2000 jogPanel=true jogStep= jogSteps=Continuously, 0.01, 0.1, 1, 5, 10, 100 keyboardControl=false laserPowerMax=100 laserPowerMin=0 lastFolder=/home/izeman lineWidth=1 moveOnRestore=false msaa=true panelHeightmapVisible=true panelJogVisible=true panelOverridingVisible=true panelSpindleVisible=true panelUserCommandsVisible=true port= queryStateTime=250 rapidOverride=false rapidOverrideValue=100 rapidSpeed=0 recentCommands=@Invalid() recentFiles=@Invalid() recentHeightmaps=@Invalid() restoreMode=0 safePositionCommand= settingsSplitMain=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\xff\xff\xff\xff\xff\xff\xff\xff\x1\0\0\0\x1e\x1\0\0\0\x1\0) showProgramCommands=false showUICommands=false simplify=false simplifyPrecision=0 spindleOverride=false spindleOverrideValue=100 spindlePanel=true spindleSpeed=100 spindleSpeedMax=100 spindleSpeedMin=0 storedX=0 storedY=0 storedZ=0 toolAngle=0 toolDiameter=3 toolLength=15 toolType=0 touchCommand= units=0 userCommands0= userCommands1= userCommands2= userCommands3= userCommandsPanel=true vsync=false zBuffer=false