Recent

Author Topic: Object Inspector Goofiness... [resolved]  (Read 8040 times)

ozznixon

  • Full Member
  • ***
  • Posts: 119
    • http://www.modernpascal.com/
Object Inspector Goofiness... [resolved]
« on: October 16, 2018, 01:39:14 am »
For some reason it is not showing a list of components, and when I scrolled, I get this (screenshot attached) ... not locked up though, can still code.

Any ideas why?

Ozz
« Last Edit: October 17, 2018, 09:58:33 pm by ozznixon »
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Object Inspector Goofiness...
« Reply #1 on: October 16, 2018, 09:38:07 am »
In the IDE Options dialog, Object Inspector page, is "Show component tree" checked?
Does changing the value of "Item height (0 = auto)" make any difference?

ozznixon

  • Full Member
  • ***
  • Posts: 119
    • http://www.modernpascal.com/
Re: Object Inspector Goofiness...
« Reply #2 on: October 16, 2018, 09:05:33 pm »
Actually have tracked it down to a specific project.

Added:
      ButtonPanel1: TButtonPanel;
      DataSource1: TDataSource;
      DataSource2: TDataSource;
      DBEdit1: TDBEdit;
      DBEdit2: TDBEdit;
      DBGrid1: TDBGrid;
      DBNavigator1: TDBNavigator;
      Label1: TLabel;
      Label2: TLabel;
      MainPanel: TPanel;
      MemDataset1: TMemDataset;
      Panel1: TPanel;
      SQLite3Connection1: TSQLite3Connection;
      SQLQuery1: TSQLQuery;
      SQLTransaction1: TSQLTransaction;

Linked those up to a SQLite3 DB (I have 3 forms that are COPY-N-PASTE clones of the above)... when I run the App, click on the DB Navigator, or a different row on the grid - things appeared frozen, then I get a Stack Overflow error... run in DEBUG mode (windows64) I get Project raised exception class 'External: SIGSEGV'. At address 100223C16.
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Object Inspector Goofiness...
« Reply #3 on: October 16, 2018, 11:02:02 pm »
I get Project raised exception class 'External: SIGSEGV'. At address 100223C16.
The address is not very useful. Please provide a proper debugger backtrace.
If you can make a minimal demo project to reproduce the error, it would be helpful, too. Can you reproduce it without the external DB?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

ozznixon

  • Full Member
  • ***
  • Posts: 119
    • http://www.modernpascal.com/
Re: Object Inspector Goofiness...
« Reply #4 on: October 17, 2018, 12:06:25 am »
Everytime I build a SQLite DB (DBEdit, DBNav, DBGrid) - open, see everything in grid and try to go to the next row in DBNav or the GRID - I get the same error, see attachment for DEBUG CPU dump...
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Object Inspector Goofiness...
« Reply #5 on: October 17, 2018, 12:27:57 am »
... see attachment for DEBUG CPU dump...
No, that is an assembler window. It is quite useless now.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

ozznixon

  • Full Member
  • ***
  • Posts: 119
    • http://www.modernpascal.com/
Re: Object Inspector Goofiness...
« Reply #6 on: October 17, 2018, 09:43:48 pm »
Useless now how? I have the VM suspended incase someone says look for, or show me...

I can reproduce over and over without problem - except, I am using a lot of different 3rd party components. I am going to try today making a 100% lazarus project to see if it still has a problem with how the dataevents work/fire.
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

ozznixon

  • Full Member
  • ***
  • Posts: 119
    • http://www.modernpascal.com/
Re: Object Inspector Goofiness...
« Reply #7 on: October 17, 2018, 09:58:15 pm »
FINALLY FOUND...

TSQLQuery has a DataSource and a Database property - I was setting both. Component should have a OR - so it does not send the DataEvent in a loop.
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Object Inspector Goofiness...
« Reply #8 on: October 17, 2018, 09:58:35 pm »
Ozz can you throw us a list of the third party thingies that you are using? I have time on hand...and quite curious. Or more code?
[edit] posts crossed..

[edit 2]
Same goes for Delphi: you can get cross references endlessly...
« Last Edit: October 17, 2018, 10:00:06 pm by Thaddy »
Specialize a type, not a var.

ozznixon

  • Full Member
  • ***
  • Posts: 119
    • http://www.modernpascal.com/
Re: Object Inspector Goofiness...
« Reply #9 on: October 17, 2018, 10:00:36 pm »
Ozz can you throw us a list of the third party thingies that you are using? I have time on hand...and quite curious. Or more code?
[edit] posts crossed..

As always thanks Thaddy! It was me no knowing how many properties to link to the other DB VCL components ... do you know if there is a better DBNav (more buttons, like SEARCH, EXECUTE, etc as buttons)? I used to use one that had a QBE Button, when clicked changed to FIND... in Delphi.
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Object Inspector Goofiness...
« Reply #10 on: October 17, 2018, 11:10:47 pm »
Useless now how? I have the VM suspended incase someone says look for, or show me...
It tells very little about the original Pascal source. How is anyone supposed to find a problem in huge Pascal code based on CPU's assembly instructions?
The usefull window is Call Stack. You get the same info from standalone GDB by typing "bt" after a breakpoint or exception.

I am curious, did you really use the Assembler window for your own debugging?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

ozznixon

  • Full Member
  • ***
  • Posts: 119
    • http://www.modernpascal.com/
Re: Object Inspector Goofiness... [resolved]
« Reply #11 on: October 18, 2018, 12:39:00 am »
I am curious, did you really use the Assembler window for your own debugging?

Yes. But you have to understand, (the Modern Pascal compiler I promote in my tag line below is 100% assembly)... One reason my Apache Script engine out performs PHP 7. ;-) ... coming back to an IDE is a challenge, I am used to tracing ASM all day.
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Object Inspector Goofiness... [resolved]
« Reply #12 on: October 18, 2018, 10:36:59 am »
Yes. But you have to understand, (the Modern Pascal compiler I promote in my tag line below is 100% assembly)... One reason my Apache Script engine out performs PHP 7. ;-) ... coming back to an IDE is a challenge, I am used to tracing ASM all day.
Wow, quite extreme nowadays to use pure assembly. Cool!
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Object Inspector Goofiness...
« Reply #13 on: October 18, 2018, 02:18:20 pm »
TSQLQuery has a DataSource and a Database property - I was setting both. Component should have a OR - so it does not send the DataEvent in a loop.
I think TSQLQuery should be improved to prevent setting them both. I am not planning to do it myself as
I don't work with DB components but a patch would be applied.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018