@440bx: Thanks for your answer but I cannot boot this work computer form usb. But I don’t think it is a hardware problem. I “never” have crashes in any software and it’s running rock solid; never had blue screens or something like that. I don’t think it’s a lack of admin rights either because the previous Lazarus version just ran fine until I installed version 2.2.0.
@Martin_fr: I cannot rebuild the IDE with special options because when I go to Tools > Configure build Lazarus, the IDE crashes/quits. About your other options:
1) Run lazarus.exe --debug-log=c:\lazlog.txt, this is the log:
===
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="C:\Users\name\AppData\Local\lazarus"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="C:\Users\ name\local\Software\Lazarus"
TMainIDE.DoOpenProjectFile A "C:\Users\name\Data\Lazarus\TestDpiPerMonitor\TestDpiPerMonitor.lpi"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-win64-win32 New=x86_64-win64-win32 Changed: OS/CPU=True LCL=False
TCustomFormEditor.JITListFindAncestors Class=TGroupBox
TCustomFormEditor.JITListFindAncestors Class=TRadioButton
TCustomFormEditor.JITListFindAncestors Class=TRadioButton
TCustomFormEditor.JITListFindAncestors Class=TButton
TCustomFormEditor.JITListFindAncestors Class=TSpeedButton
TCustomFormEditor.JITListFindAncestors Class=TSpeedButton
TCustomFormEditor.JITListFindAncestors Class=TStatusBar
TCustomFormEditor.JITListFindAncestors Class=TButton
TCustomFormEditor.JITListFindAncestors Class=TCheckBox
TCustomFormEditor.JITListFindAncestors Class=TCheckBox
TCustomFormEditor.JITListFindAncestors Class=TButton
TCustomFormEditor.JITListFindAncestors Class=TPanel
TCustomFormEditor.JITListFindAncestors Class=TToolBar
TCustomFormEditor.JITListFindAncestors Class=TToolButton
TCustomFormEditor.JITListFindAncestors Class=TToolButton
TCustomFormEditor.JITListFindAncestors Class=TToolButton
TCustomFormEditor.JITListFindAncestors Class=TStatusBar
TCustomFormEditor.JITListFindAncestors Class=TCheckBox
TCustomFormEditor.JITListFindAncestors Class=
===
So the log is not complete when the IDE crashes. I’ve tried different times and waited long, but it quits here.
2) Stacktrace:
===
Microsoft Windows [Version 10.0.19043.1415]
GNU gdb unicode (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lazarus.exe...
(gdb) r
Starting program: c:\temp\lazarus.exe
[New Thread 11168.0x1a54]
[New Thread 11168.0x2d8c]
[New Thread 11168.0x3408]
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00000001001b4eaf in ADDHANDLER (this=0x8767e170, HANDLERTYPE=CHTONBEFOREDESTRUCTION, AMETHOD=..., ASFIRST=false)
at include/control.inc:2004
2004 include/control.inc: No such file or directory.
(gdb) bt
#0 0x00000001001b4eaf in ADDHANDLER (this=0x8767e170, HANDLERTYPE=CHTONBEFOREDESTRUCTION, AMETHOD=..., ASFIRST=false)
at include/control.inc:2004
#1 0x00000001001bc6ad in ADDHANDLERONBEFOREDESTRUCTION (this=0x8767e170, ONBEFOREDESTRUCTIONEVENT=..., ASFIRST=false)
at include/control.inc:5019
#2 0x0000000100183a28 in SETLWINCONTROL (this=..., AVALUE=0x8767e170) at win32callback.inc:539
#3 0x0000000100186caa in DOMSGMEASUREITEM (this=...) at win32callback.inc:1855
#4 0x0000000100188779 in DOWINDOWPROC (this=...) at win32callback.inc:2455
#5 0x00000001001895c8 in WINDOWPROC (WINDOW=3542748, MSG=44, WPARAM=2271732080, LPARAM=989507603368)
at win32callback.inc:2771
#6 0x00000001002f58a8 in CUSTOMFORMWNDPROC (WINDOW=3542748, MSG=44, WPARAM=2271732080, LPARAM=989507603368)
at win32wsforms.pp:397
#7 0x00007ff8f736e7e8 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll
#8 0x00007ff8f736ddab in USER32!SendMessageW () from C:\WINDOWS\System32\user32.dll
#9 0x00007ff8f736d61a in USER32!SendMessageW () from C:\WINDOWS\System32\user32.dll
#10 0x00007ff8df57d469 in TaskDialogIndirect ()
from C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll
#11 0x00007ff8df57dc72 in TaskDialogIndirect ()
from C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll
#12 0x00007ff8f736e7e8 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll
#13 0x00007ff8f736e47e in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll
#14 0x0000000100182d0a in CALLDEFAULTWINDOWPROC (WINDOW=6030624, MSG=1, WPARAM=0, LPARAM=989507606368)
at win32callback.inc:124
#15 0x00000001001889ff in DOWINDOWPROC (this=...) at win32callback.inc:2514
#16 0x00000001001895c8 in WINDOWPROC (WINDOW=6030624, MSG=1, WPARAM=0, LPARAM=989507606368) at win32callback.inc:2771
#17 0x000000010028cba8 in LISTBOXWINDOWPROC (WINDOW=6030624, MSG=1, WPARAM=0, LPARAM=989507606368)
at win32wsstdctrls.pp:771
#18 0x00000001002eb868 in CHECKLISTBOXWNDPROC (WINDOW=6030624, MSG=1, WPARAM=0, LPARAM=989507606368)
--Type <RET> for more, q to quit, c to continue without paging--c
at win32wschecklst.pp:138
#19 0x00007ff8f736e7e8 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll
#20 0x00007ff8f736e36c in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll
#21 0x00007ff8f7382fc7 in USER32!InitDManipHook () from C:\WINDOWS\System32\user32.dll
#22 0x00007ff8f8bb0ba4 in ntdll!KiUserCallbackDispatcher () from C:\WINDOWS\SYSTEM32\ntdll.dll
#23 0x00007ff8f6361ec4 in win32u!NtUserCreateWindowEx () from C:\WINDOWS\System32\win32u.dll
#24 0x00007ff8f7367d1b in USER32!CreateWindowExW () from C:\WINDOWS\System32\user32.dll
#25 0x00007ff8f73678e8 in USER32!CreateWindowExW () from C:\WINDOWS\System32\user32.dll
#26 0x00007ff8f7367732 in USER32!CreateWindowExW () from C:\WINDOWS\System32\user32.dll
#27 0x0000000100282f51 in FINISHCREATEWINDOW (AWINCONTROL=0x25b8767e170, PARAMS=..., ALTERNATECREATEWINDOW=false, SUBCLASS=true) at win32wscontrols.pp:212
#28 0x00000001002ebb33 in CREATEHANDLE (self=0x25b8766db70, AWINCONTROL=0x25b8767e170, APARAMS=...) at win32wschecklst.pp:164
#29 0x00000001001ad755 in CREATEWND (this=0x25b8767e170) at include/wincontrol.inc:7545
#30 0x00000001001ace40 in CREATEHANDLE (this=0x25b8767e170) at include/wincontrol.inc:7455
#31 0x00000001001ae50d in HANDLENEEDED (this=0x25b8767e170) at include/wincontrol.inc:7908
#32 0x00000001001ad9bf in CREATEWND (this=0x25b876576b0) at include/wincontrol.inc:7590
#33 0x000000010003b5d3 in CREATEWND (this=0x25b876576b0) at include/scrollingwincontrol.inc:31
#34 0x00000001000445dd in CREATEWND (this=0x25b876576b0) at include/customform.inc:2693
#35 0x0000000100045935 in CREATEWND (this=0x25b876576b0) at include/customform.inc:3157
#36 0x00000001001ace40 in CREATEHANDLE (this=0x25b876576b0) at include/wincontrol.inc:7455
#37 0x00000001001ae50d in HANDLENEEDED (this=0x25b876576b0) at include/wincontrol.inc:7908
#38 0x00000001001ae4e9 in HANDLENEEDED (this=0x25b8767e170) at include/wincontrol.inc:7902
#39 0x000000010019bc8b in CREATEHANDLE (this=0x25b864b6350) at include/controlcanvas.inc:96
#40 0x000000010012e2de in REQUIREDSTATE (this=0x25b864b6350, REQSTATE=...) at include/canvas.inc:1706
#41 0x000000010012e5ca in TEXTEXTENT (this=0x25b864b6350, TEXT=0x101195d98 'Match action pos of mouse down') at include/canvas.inc:1792
#42 0x000000010012e71a in TEXTWIDTH (this=0x25b864b6350, TEXT=0x101195d98 'Match action pos of mouse down') at include/canvas.inc:1816
#43 0x0000000100ad8d0a in FILLLISTBOX (this=0x25b876576b0) at mouseactiondialog.pas:131
#44 0x0000000100ad8e97 in FORMCREATE (this=0x25b876576b0, SENDER=0x25b876576b0) at mouseactiondialog.pas:157
#45 0x000000010003f9e3 in DOCREATE (this=0x25b876576b0) at include/customform.inc:921
#46 0x000000010003d79e in AFTERCONSTRUCTION (this=0x25b876576b0) at include/customform.inc:77
#47 0x0000000100045a1f in CREATE (this=0x25b876576b0, vmt=0x1, THEOWNER=0x25b87655f70) at include/customform.inc:3170
#48 0x000000010060bb5c in CREATE (this=0x25b87655f70, vmt=0x1, AOWNER=0x25b88767650) at frames/editor_mouseaction_options_advanced.pas:601
#49 0x000000010065fa42 in CREATEEDITORS (this=0x25b88767650) at ideoptionsdlg.pas:509
#50 0x000000010065f191 in TRAVERSESETTINGS (this=0x25b88767650, AOPTIONS=0x25b8272ac20, ANACTION=IODAREAD) at ideoptionsdlg.pas:332
#51 0x000000010065f45b in READALL (this=0x25b88767650) at ideoptionsdlg.pas:369
#52 0x000000010006cd8b in DOOPENIDEOPTIONS (this=0x25b8272a960, AEDITOR=0x0, ACAPTION=0x0, AOPTIONSFILTER=..., highAOPTIONSFILTER=-1, ASETTINGS=...) at main.pp:4991
#53 0x0000000100424850 in DOOPENIDEOPTIONS (this=0x25b8272a960, AEDITOR=0x0, ACAPTION=0x0) at lazideintf.pas:796
#54 0x000000010006c89b in MNUENVGENERALOPTIONSCLICKED (this=0x25b8272a960, SENDER=0x25b8577aa10) at main.pp:4916
#55 0x000000010041fcef in MENUITEMCLICK (this=0x25b8577aa10, SENDER=0x25b857323d0) at menuintf.pas:547
#56 0x00000001004231e0 in MENUITEMCLICK (this=0x25b8577aa10, SENDER=0x25b857323d0) at menuintf.pas:1699
#57 0x00000001001ea085 in CLICK (this=0x25b857323d0) at include/menuitem.inc:83
#58 0x00000001001ea99a in DOCLICKED (this=0x25b857323d0, MSG=) at include/menuitem.inc:296
#59 0x00000001000112f1 in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal ()
#60 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
===
For both logs, the result after starting the IDE and then going to Tools > Options. Nothing more.
Thanks again.