Sponsored Content
Top Forums Shell Programming and Scripting Perl/TK script crashes in MainLoop Post 302908278 by bob.pepple on Saturday 5th of July 2014 06:55:37 PM
Old 07-05-2014
Perl/TK script crashes in MainLoop

I am running a perl/tk function that suddenly crashes in MainLoop. The gui just disappears and an X error is
thrown when the code tries to update the non-existent GUI. Any suggestions to debug the root cause which
destroys the mw gui?

Code:
 
-D- <block name> : <block_name> - 1
-D- row_column_id is defined
-D- block_row for <block_name> - 1
-D- Changing color of 1,1 for <block_name>
-D- leaving update_status_hash loop for <block_name>
-D- next block name : <block_name>
-I- Forked process for <block_name>. Child pid is 44761, parent 63414
-D- deleting entry for <block_name>in noble_jobs_running
-D- deleting entry for <block_name> in wards_running
-D- check status returned from checking job for <block_name> : 0
-D- Ran get_noble_status and update new_status_hash
-D- check status returned from checking job for <block_name> : 1
-D- Ran get_noble_status and update new_status_hash
-D- check status returned from checking job for <block_name> : 1
-D- Ran get_noble_status and update new_status_hash
-D- check status returned from checking job for <block_name> : 1
-D- Ran get_noble_status and update new_status_hash
-D- check status returned from checking job for <block_name> : 1
-D- Ran get_noble_status and update new_status_hash
-D- check status returned from checking job for <block_name> : 1
-D- Ran get_noble_status and update new_status_hash                <-- GUI disappears at this point
-D- check status returned from checking job for <block_name> : 1
-D- Ran get_noble_status and update new_status_hash
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server "plxc9816.pdx.intel.com:11.0" <-- I believe this error is due to the $mw->update
      after 8635 requests (8634 known processed) with 0 events remaining.


Last edited by bob.pepple; 07-06-2014 at 05:10 PM.. Reason: Got to a position of more consistent failure.
 

10 More Discussions You Might Find Interesting

1. Linux

gethostnameby_r crashes

Hello all, I'm trying to use gethostbyname_r function with 6 arguments in one of my functions. But the call to this crashes the program. Kindly help me in resolving this... Compiler Info: Linux target: i686-hardhat-linux version: 3.3.1 The following is the piece of code I'm trying to... (1 Reply)
Discussion started by: rajans
1 Replies

2. Programming

C++ program crashes

Hi, Could anyone tell me the reason why the following program crashes? class A { int x; public: A() { cout << "from A()" << endl; } ~A() { cout << "from ~A()" << endl; } }; class B : public A { public: B() { cout << "from B()"... (2 Replies)
Discussion started by: royalibrahim
2 Replies

3. Programming

Tomcat crashes after Xvfb shutdown

Hello, I'm running tomcat on linux and using Xvfb as a X server for creating the pdf's (gui components). I'm running the Xvfb in a different proccess than the tomcat. If the Xvfb is shutdown and no pdf was yet created then everything is ok. but if i create a pdf and then shutdown the Xvfb... (0 Replies)
Discussion started by: omerc85
0 Replies

4. SuSE

Chromium flashes and crashes

I am running openSUSE 11.2 with KDE4.5 on my eMachines e525. I just did a "zypper up" on my system and it reported that Chromium was going to be updated. I agreed and the when the update was finished I shut down Chromium and started it again. It flickered on the screen for a moment and crashed.... (6 Replies)
Discussion started by: Druonysus
6 Replies

5. Solaris

Server crashes when not in use.

Production server crashes when there is no traffic on it. Can only recover by going to ALOM and reboot the server. This seems to happen about the same time every month. The only good thing is the server is not in production at the time of the crash. I have been unable to locate any information in... (5 Replies)
Discussion started by: Joeentech
5 Replies

6. Red Hat

7z crashes system

Can someone tell my why every time I try to use 7z it freezes my system? I can't move my mouse, I can't type, I can't kill my xsession. I then restart my system and everything returns to normal. When I try to use 7z my system again freezes. (11 Replies)
Discussion started by: cokedude
11 Replies

7. Programming

C++ program crashes

Hi, Can anyone tell me why the below program is crashing? and where exactly it is crashing. What is the corrective measure to be taken to make it work fine? #include <iostream> #include <cstring> using namespace std; class CString { char* m_data; public: CString() :... (6 Replies)
Discussion started by: royalibrahim
6 Replies

8. UNIX and Linux Applications

Apcupsd crashes

I am trying to run apcupsd, but it will not retain contact the UPS root@meow:/home/ethan/UPS/gapcmon-0.8.9# /etc/init.d/apcupsd start Starting UPS power management: A copy of the daemon is still running. If you just stopped it, please wait about 5 seconds for it to shut down.... (0 Replies)
Discussion started by: Meow613
0 Replies

9. Web Development

Apache2 Crashes

The Apache server suddenly stops. I am running Debian Jessie Here are some diagnostics: root@meow:/var/www# apachectl configtest AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress... (4 Replies)
Discussion started by: Meow613
4 Replies

10. Programming

PERL: In a perl-scripttTrying to execute another perl-script that SETS SOME VARIABLES !

I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open()) I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
Wx(3pm) 						User Contributed Perl Documentation						   Wx(3pm)

NAME
Wx - interface to the wxWidgets cross-platform GUI toolkit SYNOPSIS
use Wx; my $app = Wx::SimpleApp->new; my $frame = Wx::Frame->new( undef, -1, 'Hello, world!' ); $frame->Show; $app->MainLoop; DESCRIPTION
The Wx module is a wrapper for the wxWidgets (formerly known as wxWindows) GUI toolkit. This module comes with extensive documentation in HTML format; you can download it from http://wxperl.sourceforge.net/ INSTALLATION
Please see docs/INSTALL.pod in source package. Windows XP look For standalone (packed using PAR, Perl2Exe, Perl2App, ...) applications to get Windows XP look, a file named "App.exe.manifest" (assuming the program is named "App.exe") and containing the text below must be placed in the same directory as the executable file. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="Controls" /> <description>Super wxPerl Application</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="x86" /> </dependentAssembly> </dependency> </assembly> Running on Mac OSX From version 0.98 wxPerl no longer needs to use the special startup executable 'wxperl' to run scripts on the Mac. The ordinary perl interpreter now works without problems. This is because wxPerl now contains code that brings the running application to the front and gives it the focus. In a syntax checking editor you may prevent Wx code from being given focus as the front process by setting an environment variable export WXPERL_OPTIONS=NO_MAC_SETFRONTPROCESS or $ENV{WXPERL_OPTIONS} = 'NO_MAC_SETFRONTPROCESS'; The code that makes the SetFrontProcess call is in Wx::Mini as Wx::MacSetFrontProcess(); so it is also straightforward to override this method if you wish. Finally, any code can force the running application to become the front process regardless of environment settings by calling the xs method directly. (Note the underscore in the method name). Wx::_MacSetFrontProcess(); AUTHOR
Mattia Barbon <mbarbon@cpan.org> LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-05-22 Wx(3pm)
All times are GMT -4. The time now is 07:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy