ddd+ubuntu+gnuplot 错误

ddd+ubuntu+gnuplot 错误

刚开始在 ubuntu 上使用 ddd。我可以毫无问题地进行基本操作(步骤和观察)。

但是,当我尝试查看图表时,它卡在“启动 gnuplot”屏幕上。

当我取消对话框时,ddd 退出并显示以下错误消息:

Warning: XmStringGetNextComponent: unknown type 154941792

(Annoyed?  Try 'Edit->Preferences->General->Suppress X Warnings'!)
Warning: XmStringGetNextComponent: unknown type 153210976

Warning: XmStringGetNextComponent: unknown type 154944592

Warning: XmStringGetNextComponent: unknown type 154943384

Warning: XmStringGetNextComponent: unknown type 154999536

Warning: XmStringGetNextComponent: unknown type 154998648

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  16950
  Current serial number in output stream:  16953
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  16952
  Current serial number in output stream:  17116

X error (invalid Window parameter).

Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <[email protected]>, giving a subject like

    DDD 3.3.11 (i486-pc-linux-gnu) gets `BadWindow' error

To enable us to fix the bug, you should include the following information:
* What you were doing to get this message.  Report all the facts.
* The contents of the `~/.ddd/log' file as generated by this session.
Please read also the section "Reporting Bugs" in the DDD manual.

We thank you for your support.

我用来测试的代码是

#include<iostream>
using namespace std;
int main()
{
 int a[10];
 for(int z=0;z<=10;z++)
 {
  a[z]=z;
  cout<<z;
 }
 return 0;
}

使用 ubuntu 10.04 安装了 gnuplot

sudo apt-get install gnuplot

答案1

  • 关闭 X-Windows 警告
  • 将此错误报告给[电子邮件保护]. 为他们提供复制所需的一切。

相关内容