问题描述
我得到以下内容:
hvr @ LINUXBOXMicrocorp:〜/ Controller / libpython display.py
不应该为类型字体调用UpdateStringProc
Aborted
我回到了bash提示符 - 这是最令人沮丧的,因为有没有
友好的追溯,以帮助我猜测它来自哪里。
更糟糕的是,脚本运行的时间不同,只需退出
喜欢这个。
我可以做些什么来深入挖掘以寻找线索? - 我甚至不知道它是否是b
Python,Tkinter或Linux ...
一些背景:
该应用程序是注塑成型控制器的原型gui。
机器。
顶部有两排五个按钮,一个包含各种各样的画布
对象在屏幕的其余部分。
广泛使用configure来更改按钮的文本,以及
他们的命令绑定,
保持系统状态当前 - 这是一次非常黑客攻击,因为我仍然在尝试让界面变得直观。
在画布上,有多个Meter类实例显示诸如
温度和压力之类的东西,
以及用多边形创建的机器的示意图
和线条。 />
原理图和Meters粗略地通过删除和
重复绘制对象,使用稍微不同的参数重新绘制对象
响应按钮按下。这是通过启动不同的线程来实现的,即
实现各种动作,在主应用程序中重复调用kill和draw方法,之后它们(线程)提交seppoku返回。
一切似乎都运转良好。 - 有一个线程可以连续移动仪表
值,这已经稳定了一段时间了,而且我可以得到各种机器 ;通过按下
按钮在屏幕上移动的部件。
当我把机器按下时会出现问题。进入自动模式,模拟一个循环中的各种动作,它可以运行几十到几个几百个周期的任何东西,然后再交上它的晚餐桶。这个。
关于如何找到罪魁祸首的任何想法?
- 亨德里克
重现此错误的最小源代码将极大地帮助。
其
各种
以及
因为我
如
多边形
in
米
I
重现此错误的最小源代码将极大地帮助。
我希望得到一些建议,如何从
大约1400行代码中选择破碎的东西 - 我该怎么做留下来,我该忘记什么 -
如果我知道这个东西在哪个区域破裂,或者我是否可以形成一个理论
为什么它会破坏,我可以选择更好,也许可以重现它 - 因为它是,
来生成我提交的strace,大部分时间都在上午,而且我是
坦率地说没有进一步沿路...
- 亨德里克
他们俩都不是:这是一个问题。您收到的消息是在tcl源目录中的文件
generic / tclObj.c.
我知道有时在我的某个Tkinter上会出现问题应用程序,
但我从未成功系统地复制它。我已经浏览了
tcl错误,但没有找到任何东西。也许你会比我幸运...如果你是b $ b,我对你能找到的任何暗示感兴趣。
-
python -c" print''''。join([chr(154 - ord(c))for c in
''U(17zX(%,5.zmz5( 17l8(%,5.Z *(93-965
Hi,
I get the following:
hvr@LINUXBOXMicrocorp:~/Controller/libpython display.py
UpdateStringProc should not be invoked for type font
Aborted
and I am back at the bash prompt - this is most frustrating, as there is no
friendly traceback to help me guess where its coming from.
And what is worse, the script runs for a varying time before it simply exits
like this.
What can I do to dig deeper to try to find a clue? - I don''t even know if its
Python, Tkinter or Linux...
Some background:
The application is a prototype gui for a controller of an injection moulding
machine.
It has two rows of five buttons across the top, and a canvas containing various
objects over the rest of the screen.
Extensive use is made of configure to change the text of the buttons, as well as
their command bindings,
to keep "the state of the system" current - its quite a hack at this time, as I
am still experimenting with getting the interface intuitive.
On the canvas, there are multiple instances of a Meter class to show things like
temperatures and pressures,
as well as a schematic representation of the machine, created out of polygons
and lines.
The schematic, as well as the Meters, are crudely animated by deleting and
redrawing the objects repetitively with slightly different parameters in
response to button presses. This is done by starting different threads to
implement the various motions, which repetitively call kill and draw methods in
the main app, after which they (the threads) commit seppoku by returning.
Everything seems to work fine. - there is a thread that runs to move the meter
values around continuously, and this has been stable for some time now, and I
can get the various "machine" parts to move around the screen by pushing the
buttons.
The trouble occurs when I put the "machine" into Auto mode, simulating the
various motions in a loop, - it runs for anything from a few tens to a few
hundreds of cycles before handing in its dinner pail like this.
Any Ideas on what to do next to find the culprit?
- Hendrik
Minimal source code to reproduce this error would help tremendously.
its
various
well as
as I
like
polygons
in
meter
I
Minimal source code to reproduce this error would help tremendously.
I was hoping for some advice as to how to choose the broken stuff out of the
approximately 1400 lines of code - what do I keep in, and what do I leave out -
If I knew in which area the thing was cracking up, or if I could form a theory
of why it is breaking, I could choose better, and maybe reproduce it - as it is,
to produce the strace that I submitted took most of the morning, and I am
frankly no further along the road...
- Hendrik
Neither of them: it''s a tcl problem. The message you get is in the file
generic/tclObj.c in the tcl source directory.
I know the problem happens sometimes on one of my Tkinter applications,
but I never succeeded in reproducing it systematically. I''ve browsed the
tcl bugs, but didn''t find anything. Maybe you''ll be luckier than I... If
you are, I''m interested in any hint you can find.
--
python -c "print ''''.join([chr(154 - ord(c)) for c in
''U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965
这篇关于Python / Tkinter崩溃。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!