Today I experienced a supprising crash of my Tcl app, on customers PC.
When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
Alexandru <alexandr...@meshparts.de> wrote:Hi Andreas,
Today I experienced a supprising crash of my Tcl app, on customers PC.Three monitors - maybe each 1920pixels wide (or wider?)...
When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
I don't have the hardware to reproduce this...
But "just in case": things you might check for:
- do you have any tcl code running upon moving toplevels?
(e.g. bindings to Configure event)
- can you ask the customer
+ if this happens repeatably (same move crashes always?)
+ only with a specific monitor as target-position
+ only when moving far-right, or from far-right?
(not necessarily on monitor boundaries)
+ Do the monitors have different sizes/magnification?
Maybe the answer could help pin down the problem...
On 2/11/2023 8:50 AM, Alexandru wrote:
Andreas Leitgeb schrieb am Samstag, 11. Februar 2023 um 16:24:09 UTC+1:
Alexandru <alexandr...@meshparts.de> wrote:Hi Andreas,
Today I experienced a supprising crash of my Tcl app, on customers PC. >>> When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.Three monitors - maybe each 1920pixels wide (or wider?)...
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
I don't have the hardware to reproduce this...
But "just in case": things you might check for:
- do you have any tcl code running upon moving toplevels?
(e.g. bindings to Configure event)
- can you ask the customer
+ if this happens repeatably (same move crashes always?)
+ only with a specific monitor as target-position
+ only when moving far-right, or from far-right?
(not necessarily on monitor boundaries)
+ Do the monitors have different sizes/magnification?
Maybe the answer could help pin down the problem...
For the moment I can say, that:
The crash happens every time, the user moves the toplevel from one to next monitor.
I have no code binding on configure event or similar things.
Not 100% sure but I think with high probability that at least the two screens involved in the crash have same configuration (full HD desktop screens).
The toplevel contains a matrix of labels where each lable contains an image. The matrix is 5x4 large.
RegardsLinux or windows, and what version?
Alexandru
I'd first make certain there are no exit statements that might
be inadvertently left in the program.
If on Linux, with a tcl crash, one usually gets a message such
as segmentation fault. One can then run the program under gdb
which will catch the fault and one can then get a backtrace.
Even better, if one builds from source with debug symbols
enabled, the backtrace provides line numbers as well. That's
often enough to pinpoint both the script code and the tcl code
causing the crash.
Good luck.
Andreas Leitgeb schrieb am Samstag, 11. Februar 2023 um 16:24:09 UTC+1:
Alexandru <alexandr...@meshparts.de> wrote:Hi Andreas,
Today I experienced a supprising crash of my Tcl app, on customers PC.Three monitors - maybe each 1920pixels wide (or wider?)...
When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
I don't have the hardware to reproduce this...
But "just in case": things you might check for:
- do you have any tcl code running upon moving toplevels?
(e.g. bindings to Configure event)
- can you ask the customer
+ if this happens repeatably (same move crashes always?)
+ only with a specific monitor as target-position
+ only when moving far-right, or from far-right?
(not necessarily on monitor boundaries)
+ Do the monitors have different sizes/magnification?
Maybe the answer could help pin down the problem...
For the moment I can say, that:
The crash happens every time, the user moves the toplevel from one to next monitor.
I have no code binding on configure event or similar things.
Not 100% sure but I think with high probability that at least the two screens involved in the crash have same configuration (full HD desktop screens).
The toplevel contains a matrix of labels where each lable contains an image. The matrix is 5x4 large.
Regards
Alexandru
et99 schrieb am Sonntag, 12. Februar 2023 um 19:35:44 UTC+1:
On 2/11/2023 8:50 AM, Alexandru wrote:
Andreas Leitgeb schrieb am Samstag, 11. Februar 2023 um 16:24:09 UTC+1: >>>> Alexandru <alexandr...@meshparts.de> wrote:Linux or windows, and what version?
Hi Andreas,Today I experienced a supprising crash of my Tcl app, on customers PC. >>>>> When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.Three monitors - maybe each 1920pixels wide (or wider?)...
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
I don't have the hardware to reproduce this...
But "just in case": things you might check for:
- do you have any tcl code running upon moving toplevels?
(e.g. bindings to Configure event)
- can you ask the customer
+ if this happens repeatably (same move crashes always?)
+ only with a specific monitor as target-position
+ only when moving far-right, or from far-right?
(not necessarily on monitor boundaries)
+ Do the monitors have different sizes/magnification?
Maybe the answer could help pin down the problem...
For the moment I can say, that:
The crash happens every time, the user moves the toplevel from one to next monitor.
I have no code binding on configure event or similar things.
Not 100% sure but I think with high probability that at least the two screens involved in the crash have same configuration (full HD desktop screens).
The toplevel contains a matrix of labels where each lable contains an image. The matrix is 5x4 large.
Regards
Alexandru
I'd first make certain there are no exit statements that might
be inadvertently left in the program.
If on Linux, with a tcl crash, one usually gets a message such
as segmentation fault. One can then run the program under gdb
which will catch the fault and one can then get a backtrace.
Even better, if one builds from source with debug symbols
enabled, the backtrace provides line numbers as well. That's
often enough to pinpoint both the script code and the tcl code
causing the crash.
Good luck.
It's Windows 10 or 11.
On 2/12/2023 10:49 AM, Alexandru wrote:
et99 schrieb am Sonntag, 12. Februar 2023 um 19:35:44 UTC+1:
On 2/11/2023 8:50 AM, Alexandru wrote:
Andreas Leitgeb schrieb am Samstag, 11. Februar 2023 um 16:24:09 UTC+1: >>>> Alexandru <alexandr...@meshparts.de> wrote:Linux or windows, and what version?
Hi Andreas,Today I experienced a supprising crash of my Tcl app, on customers PC. >>>>> When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.Three monitors - maybe each 1920pixels wide (or wider?)...
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
I don't have the hardware to reproduce this...
But "just in case": things you might check for:
- do you have any tcl code running upon moving toplevels?
(e.g. bindings to Configure event)
- can you ask the customer
+ if this happens repeatably (same move crashes always?)
+ only with a specific monitor as target-position
+ only when moving far-right, or from far-right?
(not necessarily on monitor boundaries)
+ Do the monitors have different sizes/magnification?
Maybe the answer could help pin down the problem...
For the moment I can say, that:
The crash happens every time, the user moves the toplevel from one to next monitor.
I have no code binding on configure event or similar things.
Not 100% sure but I think with high probability that at least the two screens involved in the crash have same configuration (full HD desktop screens).
The toplevel contains a matrix of labels where each lable contains an image. The matrix is 5x4 large.
Regards
Alexandru
I'd first make certain there are no exit statements that might
be inadvertently left in the program.
If on Linux, with a tcl crash, one usually gets a message such
as segmentation fault. One can then run the program under gdb
which will catch the fault and one can then get a backtrace.
Even better, if one builds from source with debug symbols
enabled, the backtrace provides line numbers as well. That's
often enough to pinpoint both the script code and the tcl code
causing the crash.
Good luck.
It's Windows 10 or 11.
Ah, windows. I'm afraid I don't know how to debug tcl on
windows.
I think you'll have to whittle down your code (comment out
parts temporarily) until you find the smallest possible test
case so you can submit a ticket. In doing so, you might also
find a workaround to avoid the crash.
On 2/12/2023 11:14 AM, Alexandru wrote:Well, I'm solely on Windows and also never seen a crash like this.
et99 schrieb am Sonntag, 12. Februar 2023 um 20:10:28 UTC+1:
On 2/12/2023 10:49 AM, Alexandru wrote:
et99 schrieb am Sonntag, 12. Februar 2023 um 19:35:44 UTC+1:Ah, windows. I'm afraid I don't know how to debug tcl on
On 2/11/2023 8:50 AM, Alexandru wrote:
Andreas Leitgeb schrieb am Samstag, 11. Februar 2023 um 16:24:09 UTC+1: >>>>>> Alexandru <alexandr...@meshparts.de> wrote:Linux or windows, and what version?
Hi Andreas,Today I experienced a supprising crash of my Tcl app, on customers PC.Three monitors - maybe each 1920pixels wide (or wider?)...
When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
I don't have the hardware to reproduce this...
But "just in case": things you might check for:
- do you have any tcl code running upon moving toplevels?
(e.g. bindings to Configure event)
- can you ask the customer
+ if this happens repeatably (same move crashes always?)
+ only with a specific monitor as target-position
+ only when moving far-right, or from far-right?
(not necessarily on monitor boundaries)
+ Do the monitors have different sizes/magnification?
Maybe the answer could help pin down the problem...
For the moment I can say, that:
The crash happens every time, the user moves the toplevel from one to next monitor.
I have no code binding on configure event or similar things.
Not 100% sure but I think with high probability that at least the two screens involved in the crash have same configuration (full HD desktop screens).
The toplevel contains a matrix of labels where each lable contains an image. The matrix is 5x4 large.
Regards
Alexandru
I'd first make certain there are no exit statements that might
be inadvertently left in the program.
If on Linux, with a tcl crash, one usually gets a message such
as segmentation fault. One can then run the program under gdb
which will catch the fault and one can then get a backtrace.
Even better, if one builds from source with debug symbols
enabled, the backtrace provides line numbers as well. That's
often enough to pinpoint both the script code and the tcl code
causing the crash.
Good luck.
It's Windows 10 or 11.
windows.
I think you'll have to whittle down your code (comment out
parts temporarily) until you find the smallest possible test
case so you can submit a ticket. In doing so, you might also
find a workaround to avoid the crash.
Thanks, I just wanted to know, if this bug is known somehow. Unfortuanatelly, the vast majority of Tcl developers program and test code not on Windows OS.FWIW, I have 2 windows systems, one with 3 1080p monitors, and
I'll try to run some tests, though difficult on costomers computers.
the main one on the left side, the other with 2 1080p and the
main one on the right side (so there's negative coords on
monitor 2). I have many tcl/tk programs (but smallish) where I
move toplevel windows between the monitors all the time with
never a crash.
et99 schrieb am Sonntag, 12. Februar 2023 um 20:10:28 UTC+1:
On 2/12/2023 10:49 AM, Alexandru wrote:
et99 schrieb am Sonntag, 12. Februar 2023 um 19:35:44 UTC+1:Ah, windows. I'm afraid I don't know how to debug tcl on
On 2/11/2023 8:50 AM, Alexandru wrote:
Andreas Leitgeb schrieb am Samstag, 11. Februar 2023 um 16:24:09 UTC+1: >>>>>> Alexandru <alexandr...@meshparts.de> wrote:Linux or windows, and what version?
Hi Andreas,Today I experienced a supprising crash of my Tcl app, on customers PC. >>>>>>> When moving a toplevel window from one screen to next one. The user has actually three monitors attached to the computer.Three monitors - maybe each 1920pixels wide (or wider?)...
When trying to move the toplevel from one screen to the next screen, the whole app crahes and closes imediately.
On my laptop, this doesn't happen. Does anywone experienced something similar? What could be the reason?
I don't have the hardware to reproduce this...
But "just in case": things you might check for:
- do you have any tcl code running upon moving toplevels?
(e.g. bindings to Configure event)
- can you ask the customer
+ if this happens repeatably (same move crashes always?)
+ only with a specific monitor as target-position
+ only when moving far-right, or from far-right?
(not necessarily on monitor boundaries)
+ Do the monitors have different sizes/magnification?
Maybe the answer could help pin down the problem...
For the moment I can say, that:
The crash happens every time, the user moves the toplevel from one to next monitor.
I have no code binding on configure event or similar things.
Not 100% sure but I think with high probability that at least the two screens involved in the crash have same configuration (full HD desktop screens).
The toplevel contains a matrix of labels where each lable contains an image. The matrix is 5x4 large.
Regards
Alexandru
I'd first make certain there are no exit statements that might
be inadvertently left in the program.
If on Linux, with a tcl crash, one usually gets a message such
as segmentation fault. One can then run the program under gdb
which will catch the fault and one can then get a backtrace.
Even better, if one builds from source with debug symbols
enabled, the backtrace provides line numbers as well. That's
often enough to pinpoint both the script code and the tcl code
causing the crash.
Good luck.
It's Windows 10 or 11.
windows.
I think you'll have to whittle down your code (comment out
parts temporarily) until you find the smallest possible test
case so you can submit a ticket. In doing so, you might also
find a workaround to avoid the crash.
Thanks, I just wanted to know, if this bug is known somehow.
Unfortuanatelly, the vast majority of Tcl developers program and test code not on Windows OS.
I'll try to run some tests, though difficult on costomers computers.
Ah, windows. I'm afraid I don't know how to debug tcl onIf on Linux, with a tcl crash, one usually gets a message such
as segmentation fault. One can then run the program under gdb
which will catch the fault and one can then get a backtrace.
Even better, if one builds from source with debug symbols
enabled, the backtrace provides line numbers as well. That's
often enough to pinpoint both the script code and the tcl code
causing the crash.
Good luck.
It's Windows 10 or 11.
windows.
Well, I'm solely on Windows and also never seen a crash like this.
I think it has something to do with Windows 11, which I never tested.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 495 |
Nodes: | 16 (2 / 14) |
Uptime: | 50:46:00 |
Calls: | 9,749 |
Calls today: | 9 |
Files: | 13,742 |
Messages: | 6,184,703 |