[MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

PatG

Hello All,

I have an application last compiled a couple of years ago.  It worked fine.

Recompiled it recently.  It gets a segmentation fault error now.

I have traced the problem to the kernel/msegui.pas:constructor twidget.createandinit procedure.

The segmentation fault occurs when the component is to be displayed.  if the created component has the .value  property set it does NOT segment fault.  If the component .value property is NOT set (is null) it DOES segment fault.

I have a test project that shows this behavior.  The stack trace shows multiple calls to paint, then dopaint, then dopaintforegroud  All these calls show a value for the this= parameter.

the dopaintforeground calls getglyphheight with a this= parameter value of 0x0.  Obviously not correct.

At some point Martin must have changed the way the msegui unit works.  I don't have the skill level to solve this problem.  Can someone help?

Thank you

Patrick




_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

fredvs
Hello Patrick.

Could you give the test project that shows this behavior?

Did you explore git-commits to find after what commit it appended?

I will try to help with pleasure.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

PatG
On 12/31/18 6:18 AM, fredvs wrote:
> Did you explore git-commits to find after what commit it appended?
>
I will try to work thru the commit history to find when the problem
started.


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

Graeme Geldenhuys
On 31/12/2018 14:35, Patrick Goupell wrote:
> I will try to work thru the commit history to find when the problem
> started.

Use the 'git bisect' command - it greatly speeds up the process in
finding a commit that changed behaviour.

Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

fredvs
In reply to this post by PatG
Hello Pat.

Did you get it ?

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

PatG

On 1/25/19 4:45 PM, fredvs wrote:
> Hello Pat.
>
> Did you get it ?
>
> Fre;D
>
>

No, I havn't found the problem yet.

The problem only happens with component objects created in code. If the
.value property is no set the error occurs.

The created objects are string displays so I set the .value property to
a blank space and that fixed the problem.

Will try to find it as time goes on.



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

fredvs
Hello Pat.

Huh, I am (terribly) curious, is it possible to give code of the problem?

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] regression bug identified, how do we get it fixed.

PatG

On 1/27/19 7:00 AM, fredvs wrote:
> Hello Pat.
>
> Huh, I am (terribly) curious, is it possible to give code of the problem?
>

My test project works.  The main project does not work.

It has multiple forms and datamodules and is rather large.

I will continue to try it out from time to time.  But for now it works.



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk