Recent

Author Topic: TEdit with Password property enabled causes program to hang  (Read 2370 times)

bigDan

  • New member
  • *
  • Posts: 32
TEdit with Password property enabled causes program to hang
« on: December 28, 2018, 12:55:00 am »
I am testing new Laz 2.0.0RCL3. Compiles to Darwin-X64-Cocoa.

If I attempt to tab out of a field that has password property set to '*' the program hangs.

If I attempt to make the TEdit field active by mouse clicking on it, that also will cause the program to hang.

See enclosed simple app that duplicates the error.

Does anyone else see this problem?

bigDan

VTwin

  • Hero Member
  • *****
  • Posts: 687
  • Former Turbo Pascal 3 user
Re: TEdit with Password property enabled causes program to hang
« Reply #1 on: December 28, 2018, 05:02:42 am »
I can confirm the behavior. Please post a bug report.
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.1.0 svn 61523M (64 bit Cocoa trunk)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

bigDan

  • New member
  • *
  • Posts: 32
Re: TEdit with Password property enabled causes program to hang
« Reply #2 on: December 28, 2018, 05:03:04 pm »
Bug Report # 0034773

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
    • havefunsoft.com
Re: TEdit with Password property enabled causes program to hang
« Reply #3 on: December 28, 2018, 06:14:39 pm »
trunk, anyone?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

bigDan

  • New member
  • *
  • Posts: 32
Re: TEdit with Password property enabled causes program to hang
« Reply #4 on: December 28, 2018, 06:33:17 pm »
If you can point to instructions on how to get and compile trunk for Mac OSX, I'll give it a shot.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
    • havefunsoft.com
Re: TEdit with Password property enabled causes program to hang
« Reply #5 on: December 28, 2018, 07:49:50 pm »
If you can point to instructions on how to get and compile trunk for Mac OSX, I'll give it a shot.
0. you need to have svn installed. If you don't, Xcode tools should automatically install it, if you attempt to run svn on command-line. (The next step)
1. get the trunk
Code: [Select]
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus2. compile it:
Code: [Select]
cd lazarus
make clean all
3. run
Code: [Select]
open lazarus.app
instructions are taken from here
« Last Edit: December 28, 2018, 10:59:16 pm by skalogryz »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

bigDan

  • New member
  • *
  • Posts: 32
Re: TEdit with Password property enabled causes program to hang
« Reply #6 on: December 28, 2018, 11:58:31 pm »
It appears to be OK in trunk though a new issue pops up there - I can no longer tab into the EXIT key or back to the first field.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
    • havefunsoft.com
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

bigDan

  • New member
  • *
  • Posts: 32
Re: TEdit with Password property enabled causes program to hang
« Reply #8 on: December 29, 2018, 02:07:17 am »
Great idea w/ the video! I started to make my own only to discover the problem with 2.1 was because I was running 32bit/carbon.

Changed settings to 64bit/Cocoa and the problem does not exist in Trunk nor the other issues.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
    • havefunsoft.com
Re: TEdit with Password property enabled causes program to hang
« Reply #9 on: December 29, 2018, 02:13:10 am »
please close the bug report then
(the fix might not be merged into the final release)
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

VTwin

  • Hero Member
  • *****
  • Posts: 687
  • Former Turbo Pascal 3 user
Re: TEdit with Password property enabled causes program to hang
« Reply #10 on: December 29, 2018, 04:42:40 am »
trunk, anyone?

Sorry, I tested on 2.0 fixes, should have used trunk. Just tested on trunk, and the bug is fixed. Thanks!
« Last Edit: December 29, 2018, 04:46:26 am by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.1.0 svn 61523M (64 bit Cocoa trunk)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)