Recent

Author Topic: Lazarus with strange behavior  (Read 6619 times)

Marcelo Santos

  • New Member
  • *
  • Posts: 32
Lazarus with strange behavior
« on: December 15, 2015, 12:47:43 am »
I've already sent that message but Lazarus's condition worsened.   :'(


In all applications, new, old, I run, when moving the mouse over it gives the following error: SIGSEGV, always at the same address. The error occurs when I interact with the Form. If you do not focus nothing happens.

And now also the Lazarus is disappearing slowly .. I sent the pictures

attempts:
Reinstall Lazarus;
Windows formatting;
Uninstall program running in the background: Google Chrome, Avast Antivirus, Drive ...
True in DisableLoadSymbolsForLibraries option
Added in Debugger_Starup_Options option: --eval-command = "auto set-off solib-add" (I do not know what that is, to be honest)
I created another user on Windows.

System:
Lazarus 1.4.0, 1.4.2 and 1.4.4 (tried all)
Windows 7 64
Marcelo A.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9900
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus with strange behavior
« Reply #1 on: December 15, 2015, 01:12:14 am »
if you can repompile the ide (menu tools: config build laz) with the option -gw  (add opt in that dialog).

then close ide, and modify the desktop shortcut, so the IDE is called as follows (with whatever path you currently have of course)

C:\lazarus\lazarus.exe --debug-log=C:\log.txt

then reproduce the error, close the IDE (if possible), then attach the log file.

Marcelo Santos

  • New Member
  • *
  • Posts: 32
Re: Lazarus with strange behavior
« Reply #2 on: December 15, 2015, 01:25:31 am »
Log.txt:

TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="C:\Users\Développement\AppData\Local\lazarus"
  SecondaryConfigPath="D:\lazarus"
TBuildManager.SetBuildTarget Old=i386-win32-win32 New=i386-win32-win32 FPC=True LCL=False
TLazSourceFileManager.LoadLFM

I am running for now, it seems back to normal. On some trials, it returns to normal and the weather starts to present the same mistake, disappear ...
« Last Edit: December 15, 2015, 01:28:02 am by Marcelo Santos »
Marcelo A.

Marcelo Santos

  • New Member
  • *
  • Posts: 32
Re: Lazarus with strange behavior
« Reply #3 on: December 15, 2015, 01:56:56 am »
Lazarus is not disappearing but the error by moving the mouse over the application continues
Marcelo A.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9900
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus with strange behavior
« Reply #4 on: December 15, 2015, 02:17:02 am »
Well keep running with the logfile. Occasionally after closing the IDE delete the log, to reduce its size.

If and when the error happens, attach the log.

The important part is that your IDE must be build with -gw

EDIT: maybe even -gl -gw

otherwise the log will not contain useful error info.

Marcelo Santos

  • New Member
  • *
  • Posts: 32
Re: Lazarus with strange behavior
« Reply #5 on: December 15, 2015, 02:35:14 am »
The error returned ....

I sent the file. The first is up to the error. The second is after the error.


Thanks a lot for the help
« Last Edit: December 15, 2015, 02:41:36 am by Marcelo Santos »
Marcelo A.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9900
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus with strange behavior
« Reply #6 on: December 15, 2015, 04:04:24 am »
strange it did not log a trace.

How to reproduce?

Quote
In all applications, new, old, I run, when moving the mouse over it gives the following error: SIGSEGV, always at the same address. The error occurs when I interact with the Form. If you do not focus nothing happens.
That is when you debug? the SIGSEGV is in your app?

But then the IDE freezes too?
Or is the IDE just overlapped by the frozen (not redrawn / disappearing) window of your app?

Marcelo Santos

  • New Member
  • *
  • Posts: 32
Re: Lazarus with strange behavior
« Reply #7 on: December 15, 2015, 02:45:40 pm »
Marti_fr,

There are two problems, I think related.

1. SIGSEGV error:

https://www.youtube.com/watch?v=Jtoy-62QaxM

2. Lazarus disappearing:

https://youtu.be/EsqGENaArOE

The two problems are appearing gradually. When rebuild Lazarus they stop but after a while returned, first SIGSEGV error. It happened on two different machines.

It could be some visual component? I use http://wiki.freepascal.org/BGRAControls
Marcelo A.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9900
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus with strange behavior
« Reply #8 on: December 15, 2015, 07:19:48 pm »
Quote
System:
Lazarus 1.4.0, 1.4.2 and 1.4.4 (tried all)
Windows 7 64

What about 1.6RC1 ? Though I expect that too.

I can see your project1 is 32 bit (correct, well with 1.6 you can go 64 bit too)

I can not reproduce it. From the video. I looks like

- New app
- standard TEdit
- you enter some text

- Do you hit return? (tab, or any key that performs an action, instead of typing)?
- Do you click somewhere with the mouse? (e.g. focus change)

- The error "project1 raised an exception" is means your app crashed.
Not sure yet why that affects the painting of the IDE, but that is for later.

When the error happens please open the menu: Viev > Debug Windows > Stack

It may or may not be helpful, it has a "copy" button. Copy, and paste here.


I also see from the assembler, that the error happens either in the kernel or a dll. (This can still be a problem in Lazarus, if it made a call with incorrect parameters).

1) Compile, then Run the project.exe outside the IDE (You can run in the IDE, if you disable the debugger in Tools/options first). Does the error happen?

2) If you can temporary disable your AntiVirus (which one do you use), and try again (in the IDE, with debugger)? Does the error happen?

3) Try this gdb http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Alternative%20GDB/GDB%207.7.1/
Does the error happen?
This is included in 1.6RC1, so if you test 1.6RC1 then you do not need to change it.

--------------
When the IDE goes bad, try "reset debugger" from the "run" menu.

Marcelo Santos

  • New Member
  • *
  • Posts: 32
Re: Lazarus with strange behavior
« Reply #9 on: December 16, 2015, 02:20:10 am »
Quote
- Do you hit return? (tab, or any key that performs an action, instead of typing)?
I can press any key, all function. The error only occurs when I move the mouse.

Quote
- Do you click somewhere with the mouse? (e.g. focus change)
No, there's no time, when moving the mouse already gives error

Quote
Viev > Debug Windows > Stack
#0 ?? at :0
#1 ?? at :0
#2 ?? at :0
#3 ?? at :0
#4 ?? at :0
#5 ?? at :0
#6 KERNEL32!BaseCleanupAppcompatCacheSupport at :0
#7 ?? at :0
#8 ntdll!RtlpMuiRegFreeRegistryInfo at :0
#9 ?? at :0
#10 ntdll!RtlpMuiRegFreeRegistryInfo at :0
#11 ?? at :0
#12 ?? at :0

1) Compile, then Run the project.exe outside the IDE (You can run in the IDE, if you disable the debugger in Tools/options first). Does the error happen?
Watch the video, it appears that the error happens. It happens to the program outside the IDE:
https://youtu.be/NTlGPJADdhM

2) If you can temporary disable your AntiVirus (which one do you use), and try again (in the IDE, with debugger)? Does the error happen?
I uninstalled the antivirus, the error continues

3) Try this gdb http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Alternative%20GDB/GDB%207.7.1/
Does the error happen?
Already I tested with this GDB. The error continues
Marcelo A.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9900
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus with strange behavior
« Reply #10 on: December 16, 2015, 03:03:00 am »
ok, out of ideas now.

The IDE disappearing, does that only happen after you run and debug an app...
... with sigsegv
... without sigsegv
or also on a freshly started IDE?

Couple of really far fetched guesses....

Any compiler settings?

If you installed any packages, or otherwise rebuild the IDE, then check in "tools"/"configure build lazarus" for compiler options
(also fpc.cfg, if you did edit it, ol lcl,fcl,.. if you did edit any of them (unlikely))
- Do NOT use -CR when rebuilding the IDE.
- Any optimization level specified?  try  -O1

It might be worth trying the 1.6RC after all, as it comes with fpc3.0.0, if by any chance it is an fpc issue, then it may be solved. Though I would not be too hopeful.


I re-watched the video, I noticed the app crashed when the mouse was moved over it. (Is that correctly observed?)
very far fetched: Do you have any special mouse (gamer, extra buttons, ...) that comes with a special driver?

--
Some questions are quite far fetched, but I cant currently think of an explanation. A form + edit. works for so many other people, and yet... So maybe something triggers this error, something that other people dont have....

special graphic driver, DPI settings?

Marcelo Santos

  • New Member
  • *
  • Posts: 32
Re: Lazarus with strange behavior
« Reply #11 on: December 16, 2015, 12:23:27 pm »
Quote
The IDE disappearing, does that only happen after you run and debug an app...

Withoyt sigsegv, at any time, and every time I run takes less time to start getting well. When you reinstall, rebuild, and back to normal after a while begin the process again.

Quote
Any compiler settings?
I made no alteration of the original settings. From what I saw everything is normal

Quote
I re-watched the video, I noticed the app crashed when the mouse was moved over it. (Is that correctly observed?)
very far fetched: Do you have any special mouse (gamer, extra buttons, ...) that comes with a special driver?

Yes, correct. The mouse is plug & play. And on the other machine I tested, and it was the same mistake, it's a notebook.

Quote
special graphic driver, DPI settings?

As in another machine also did not find, yet, what the two have in common. And the youtube video someone commented that his Lazarus also disappears.

I am not an expert user, but it seems that some package or computer configuration will "spoiling" the Lazarus. When do I delete user data or reinstall it back to normal, can sometimes run smoothly.

Also "spoil" the Lazarus the exe even run on other machines is "spoiled" because it also shows what you saw in the last video.

I can only download the 1.6RC by SVN?
« Last Edit: December 16, 2015, 12:26:26 pm by Marcelo Santos »
Marcelo A.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9900
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus with strange behavior
« Reply #12 on: December 16, 2015, 04:35:51 pm »
1.6 rc is on our sourceforge site. with full installer and all.

You can even install in parallel (there is a  checkbox "secondary install", it will ask for a folder to store user settings)

Within the IDE an installed package could maybe have this effect. But in your project1.exe this should not be the case. (unless its an LCL substitute). What packages to you install?

You can always backup and restore (or remove and the IDE recreates) your user settings: C:\Users\YOURUSERNAME\AppData\Local\lazarus
(might be slightly different on your windows).

Also if you install packages, keep a backup of the original lazarus.exe. Then you can always go back, and test if it happens with this.


 

TinyPortal © 2005-2018