Advancewd Debugging tactics needed!

Hi,
I was wondering if any of you more experienced prgrammers can help me with a big problem I'm trying to solve.
I'm working on a large multi-threaded server based app running on Suse Linux and jdk 1.4.1_01.
The code has a lot of database access, and calls a lot of native code for complex calculations and a commercial messaging infrastructure.
The problem is that at a certain point on startup, the application has recently started crashing and I'm having trouble finding out the cause. Its a strange crash because no exceptions are produced, the JVM just dies with no HotSpot reports or anything similar (i.e. the linux process dies). I dont even get a core dump (moving tha app to Solaris saw the same error occurring, this time with a core produced which seemed to say nothing of any significance).
I currently suspect its a bug in the HotSpot compiler, as the program works fine when I used the -Xint VM option (although obviously much slower). The problem is tracking down why this occurs and precisly where in the code.
This leads to my next problem...I have found that by adding logging statements at various points, alters the place that the app crashes (again this points to a hotspot bug as log statements will alter the order that commands are executed by the JVM).
So now I'm stuck....I've got a Schrodingers (sp.) Cat situation where adding logging changes the effect of the bug.
Anyone have any ideas how I should proceed from here?
cheers.

Well there's certainly no throwables/Exceptions occuring in the code. I kinda suspected this would be the case due to the JVM just falling over like it does, but worth a try anyway.
I've got a small sample of code here which seems to be at the root of the problem, maybe someone might spot something. Unfortunately I can't provide a succinct example that can be run on its own, as it seems the problem is caused by the highly concurrent nature of the app. (By the way its running on a dual cpu machine with hyperthreading switched on).
System.out.println("this always gets printed");
synchronized(anObject){
    System.out.println("this sometimes gets printed");
    while(someTest){
        System.out.println("this always gets printed if the one above does");
         callSomeMethod();
         System.out.println("this never gets printed");
}When I say "sometimes gets printed" I mean that either it appears in stdout, or the JVM dies. So in summary, with little or no logging, the JVM dies fairly consistently around the synchronized statement. If I add extra logging, esp. in the callSomeMethod(), then the JVM still dies, but later in the code.
All very strange

Similar Messages

  • What is "Start" and "Start Debugging" are needed in SSDT project?

    Hi,
    I can not get why do I SSDT has Start With/without Debugging button. I can understand why is it needed when I am debugging stored procedure or T-SQL code. However I can click on that for the project. It builds it, implements changes to the database, doing
    something else ... What is the difference with publishing?

    Hi Sidukas,
    Mostly it is used for smoke testing
    Starting With Debugging
    When you press F5 (Start Debugging) in Visual Studio it launches your application, attaches the Debugger, and let's you do all the "normal" things you would expect: 
    The Visual Studio debugger is a powerful tool that allows you to observe the run-time behavior of your program and locate logic errors. The debugger works with all Visual Studio programming languages and their associated libraries. With the debugger, you can
    break, or suspend, execution of your program to examine your code, evaluate and edit variables in your program, view registers, see the instructions created from your source code, and view the memory space used by your application. With Edit and Continue,
    you can make changes to your code while debugging, and then continue execution.
    The Visual Studio debugger provides a Debug menu for access to debugger tools. Debugger windows and dialog boxes display information about your program and enable you to enter additional information. You can obtain Help on any window or dialog box by pressing
    F1.
    Start Without Debugging
    This is exactly what it sounds like.  It starts the application WITHOUT THE DEBUGGER ATTACHED.  That's it!  Nothing else.  It just doesn't attach the Debugger.  Otherwise everything else is the same.  So, the practical implications
    of this are obvious:  Without the Debugger attached when the application runs it will not hit Breakpoints, emit Debug messages, etc.  So now let's deal with the biggest myth about Start Without Debugging.
     Myth:  Start Without Debugging Creates a Release Build
    Nope.  It uses the build you are currently on.  So if you are using a Debug build and you press CTRL + F5 then it will run that Debug build.  The easiest way to test this is to use conditional compilation to see if you are using a Debug build:
    Finally
    Okay, so the obvious question is "Why?".  I mean, why would they give us this option?  Well the most obvious answer is so we can run the application without having to hassle with disabling breakpoints, etc. to do a quick "Smoke Test"
    and see if it runs.  There may be other reasons you have for wanting to run without the Debugger attached as well.  So now you have a better idea of the difference between Start With and Start Without Debugging.  Go forth and debug away!
     

  • Debugging material needed

    HI
    I am working as a SD/CRM functional consultant, since many times i used to get bog down in some of the program while debugging. I am able to analyse the code with F5 and F6 for any Zreports where as for Stnd SAP reports it's becomign a night mare, hence taking help with my abaper for each issue.
    Can some one pl drop links or send me  good and easy document to get expertise to debug any stnd sap codes?
    My email id [email protected]
    Cio
    shankar1242

    hi,
    hi,
    go to se38->give ur program name-.execute->give /h at command prompt->execute->now debugging will start->
    f5-used for line by line debugging
    f6-used for directly executing function modules or performs i.e. control won't go into that block.
    f7-run to cursor
    f8-direct executing.
    fileds: here we can check fild values.
    click fileds option and double click on the filed or type the filen name beside filed
    tables : here we can check the data in the internal table.
    click tables option and double click on the internal table.
    Break points:
    if you want to debug a particulr part you can use this.
    place the cursor at any perform click breakpoint or double click on that line.it will be set.
    if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.
    Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto->breakpoints->create watch points->give filed itab-lifnr->=->100.
    debugging procedure:
    Use '/H' in the command line and execute the report/program, so that it goes to debugging mode
    2. keep a hard coded break point in the code like BREAK-POINT and it stops there.
    3.From the program Menu, Keep the Soft Break-points and do the debugging.
    see the links
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Debugging
    Check these documents.
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    ABAP Debugging
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    Look at the SAP help link below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    if helpful reward points

  • Debugging Tips needed

    Hello,
    I am new to Flex and trying to get a sample application I
    downloaded from the internet working on my local machine.
    When I run the application in my web browser I get the login
    form made in flex then when I try to log in I get a pop message
    with this error inside.
    quote:
    Data Communication Error
    HTTP Request error
    The application I downloaded is using SOAP to communicate
    with my webserver. How do I debug the flex application in order to
    figure out why I am getting this "HTTP Request error"?
    Thanks.

    Look in the code of the application you downloaded to see
    where this error prompt is generated from. The location of that in
    the code should give you an idea about what's going wrong.
    Given the nature of the message the fault could fall into any
    number of categories. You'll need to post a link to the app code if
    you want further help.
    You can use
    Ethereal to tap the wire if you
    want to see what the Flash player is doing at a lower level.

  • Opendirectoryd debug help needed

    Hello.
    I started to observe my kernel log / system konsole for what's going on and I saw opendirectoryd - has made 9 logs of starting something and here's log outputs (first & last) these logs are under "fax" and that's why I get interested, becouse I do not have any attempts & software what would need this options:
    2013-03-28 16:11:44.418 EET - opendirectoryd (build 172.17) launched...
    2013-03-28 16:11:44.419 EET - Logging level limit changed to 'error'
    2013-03-28 16:11:52.873 EET - Initialize trigger support
    2013-03-28 16:11:52.874 EET - Registered node with name '/Active Directory' as hidden
    2013-03-28 16:11:52.874 EET - Registered node with name '/Configure' as hidden
    2013-03-28 16:11:52.875 EET - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'
    2013-03-28 16:11:52.875 EET - Registered node with name '/Contacts'
    2013-03-28 16:11:52.875 EET - Registered node with name '/LDAPv3' as hidden
    2013-03-28 16:11:52.877 EET - Registered node with name '/Local' as hidden
    2013-03-28 16:11:52.878 EET - Registered node with name '/NIS' as hidden
    2013-03-28 16:11:52.879 EET - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'
    2013-03-28 16:11:52.879 EET - Registered node with name '/Search'
    2013-03-28 16:11:52.880 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'
    2013-03-28 16:11:52.882 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'
    2013-03-28 16:11:53.884 EET - '/Search' has registered, loading additional services
    2013-03-28 16:11:53.884 EET - Initialize augmentation support
    2013-03-28 16:11:53.887 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'
    2013-03-28 16:11:53.891 EET - Successfully registered for Kernel identity service requests
    2013-03-28 16:11:53.896 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'
    2013-03-28 16:11:53.897 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'
    2013-03-28 16:11:53.910 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'
    2013-03-28 16:11:53.910 EET - Registered subnode with name '/Local/Default'
    2013-03-28 16:12:10.289 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'
    2013-03-05 18:22:48.204 EET - opendirectoryd (build 172.17) launched...
    2013-03-05 18:22:48.204 EET - Logging level limit changed to 'error'
    2013-03-05 18:22:48.229 EET - Initialize trigger support
    2013-03-05 18:22:48.230 EET - Registered node with name '/Active Directory' as hidden
    2013-03-05 18:22:48.231 EET - Registered node with name '/Configure' as hidden
    2013-03-05 18:22:48.232 EET - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'
    2013-03-05 18:22:48.232 EET - Registered node with name '/Contacts'
    2013-03-05 18:22:48.232 EET - Registered node with name '/LDAPv3' as hidden
    2013-03-05 18:22:48.235 EET - Registered node with name '/Local' as hidden
    2013-03-05 18:22:48.237 EET - Registered node with name '/NIS' as hidden
    2013-03-05 18:22:48.238 EET - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'
    2013-03-05 18:22:48.238 EET - Registered node with name '/Search'
    2013-03-05 18:22:48.240 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'
    2013-03-05 18:22:48.242 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'
    2013-03-05 18:22:49.244 EET - '/Search' has registered, loading additional services
    2013-03-05 18:22:49.244 EET - Initialize augmentation support
    2013-03-05 18:22:49.248 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'
    2013-03-05 18:22:49.252 EET - Successfully registered for Kernel identity service requests
    2013-03-05 18:22:49.259 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'
    2013-03-05 18:22:49.260 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'
    2013-03-05 18:22:49.272 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'
    2013-03-05 18:22:49.273 EET - Registered subnode with name '/Local/Default'
    2013-03-05 18:23:23.981 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'
    2013-03-05 18:37:30.017 EET - Starting shutdown process...
    2013-03-05 18:37:30.017 EET - Deregistered with Kernel for identity service requests
    I'm trying to debug why this process has started, no problems with softwares / installs. Everything works fine.
    But I think my computer got hacked some time ago. After that I installed e.g. Little Snitch Network monitor (still using demo version) and Avira virus scanner.
    No log / other unusual behavior after that.
    Any suggestions where to look / where to dig?

    Any suggestions where to look / where to dig?
    Yes. Get rid of the worthless "Avira" product and the dubious "Little Snitch" product. Stop worrying about the log. Log messages are only meaningful in relation to a problem, which you say you don't have.

  • Starting Server in Debug Mode - Need Some Advice Plz.

    Hi Guys,
    I have an EP SP 12 Server Running and I am trying to Start the Server in Debug mode from the Netweaver Developer Studio but when I right click the Server and try to choose Debug, the option is greyed out and even while viewing the Debug option from the SAPMMC I see that under the column Debug, it say 'Disabled' for the Server and Dispatcher.
    Can anyone suggest how this can be done, I would appreciate any help as I have been working on this for some time.
    Best Wishes,
    John.
    Message was edited by: John Bray
    Message was edited by: John Bray

    Hi John,
    If the you cannot start the server in the debugging mode through the NWDS then you can try the other way round.
    <b>Through Config Tool:</b>
    You can enable the debuggine mode from the Config Tool as well. Just visit the following path :
    <b>C:\usr\sap\<SID>\JC<SYS_NO>\j2ee\configtool\configtool.bat</b>
    Click on the your instance. Then under the tab VM Environment, Set the <b>DebugMode = true</b>.
    Restart the engine now. This will open the J2EE server again in the Debug Mode.
    I hope this helps you!!
    Regards
    Pravesh
    PS: Please conside rewarding points if helpful and solved.

  • Need help asap. Can't open project in PP CS6 Debug Event, Need help asap. Can't open project in PP CS6 Debug Event

    I sat up all night, last night, editing a movie for a school project which is due Friday. I am extremely busy, and as i opened the file this morning to show the progress to a partner, Premiere, told me "Premiere pro has encountered an error" - "[c:\Mightykilt64\shared\adobe\mediacore\mediafoundation\api\inc\keyfra" - I click continue, and it says "The project could not be loaded, it may be damaged or contain outdated elements"
    I am so frustrated as i'm super busy, and on top of that i'm no computer genious, i really really hope someone can help, i need it asap! I use windows 8 btw..

    Gaps can be very small, and almost impossible to actually see.
    First, I zoom in on the Timeline, to the Frame-level, and step through the Timeline, or play it, looking for a flash of black.
    Next, I will hit Home, to get to the beginning of the Timeline, and then use the PageUP/PageDN keys to step through, Clip by Clip. I watch the CTI (Current Time Indicator w/ the red Edit Line) carefully. It should smoothly jump from Clip to Clip. With a tiny gap, say 1 Frame, the CTI will "hiccup," or "bounce." That is where the Gap is. How one fixes it will depend on where the gap is, and what one wants. Say that it's between two stills, I would then drag the Head of one, or the Tail of the other, to fill that gap. If it's between Video Clips, other choices might work best.
    PrE has a "Close Gaps" function, but if one has Audio that covers that gap, it will not work.
    One trick, that can get you to Transcoding is to add Transparent Video. Drag that to Video Track above all of your existing Video Clips, and extend it to "cover" the entire Timeline. The limitation of this method is that if there is a gap, there will be a black flash in the Video. If only 1 Frame, that might go undetected.
    Usually, when one gets the ":Failure to Return Frame," there is a % of the Timeline, also listed. One can do the math to locate that on the Timeline. As PrE does a two-pass Transcode, then 100% of the Transcode is through two passes. The full Duration of the Timeline is at 50%, as that is the end of the first pass. That can be a bit confusing, as a glitch at 75% would mean that half-way through the second pass, there was an issue detected. Usually, if there is a glitch, it will be discovered in the first pass.
    Good luck,
    Hunt

  • I2c debugging help needed with an oscillascope

    Hello,
    I am trying to debug my i2c slave device and was hoping that someone could explain how to use an oscillascope to debug it and how to set up the vi to use the oscillacope to test my scl and sda values.
    Thanks,
    rbme

    Hi rbme,
    Depending on the oscilloscope you are using to debug your i2c device, there might be an instrument driver located at ni.com/idnet. The instrument driver will allow you to control the oscilloscope with a set of software routines reducing software development time.
    Regards,
    Andy L.
    Applications Engineer
    National Instruments

  • Switching server to debug mode - need to do it twice

    We have just completed a switch from BEA Workshop for Weblogic 10.0 to Eclipse 3.3 + Weblogic Server Tools 1.0.1.
    There are couple issues that I'm not sure if they work as intended or they are bugs. This is the first one:
    1. when server is started in a non-debug mode with an application deployed and then it is switched to the debug mode (by right clicking on the server and choosing debug) the debug mode doesnt seem to be properly activated. The application doesnt stop at the breakpoints.
    2. after right clicking and choosing debug again the server gets fully restarted into the debug mode (in step 1 there is no full restart - similarly as it works in the Workshop). Now after the fiull restart the breakpoints work properly.
    Is this by design? Is this 'quick debug mode switch' supposed to be working only in the Workshop? If yes can the first time click on debug actually initiate the whole server restart into the debug mode?
    thank you
    s.

    It sounds like you hit the following bug, which has been fixed in the code line currently under development (v1.1) and which is currently scheduled for release on October 2nd.
    http://bugzilla.bea.com/show_bug.cgi?id=41
    Thanks,
    Konstantin
    WLS Tools Team

  • A debug trouble, need you help!~~

    Hi,
    I want to debug TTY. And I try to using commonds as following:
    C:\jdb -classpath F:\com\sun\tools\example\debug\tty TTY
    C:\jdb -classpath F:\com\sun\tools\example\debug\ttycom.sun.tools.example.debug.TTY But I got the erro:"Exception in thread "main" java.lang.NoClassDefFoundError: F:\com\sun\tools\example\debug\tty"
    I must make some mistakes. And how do I should imput my commond?
    Thank you!
    Duanyh
    SJTU

    Hi,
    I want to debug TTY.OK... you want to debug the com.sun.tools.example.debug.tty.TTY class.
    Please excuse me if this is going over work you have already
    done... I decided to start from the beginning for the benefit
    of anyone else reading this thread.
    NOTE: If you are following these example command lines, remember that
    the separator char for directories on CLASSPATH is : on Unix
    systems and ; on win32 systems:
    1) Unpack the JPDA examples:
    cd $JAVA_HOME/demo/jpda
    jar -xvf examples.jar2) Compile the example code for debugging:
    javac -g -classpath "$JAVA_HOME/lib/tools.jar:." com/sun/tools/example/debug/tty/TTY.java3) Create a HelloWorld.java class to be a victim for this debug session:
    cat > HelloWorld.java
    public class HelloWorld {
        public static void main(String args[]) {
            System.out.println("Hello, world!");
    }Compile the HelloWorld class:
    javac -g HelloWorld.java4) Start up com.sun.tools.example.debug.tty.TTY and have it debug
    the HelloWorld class, using commands like this:
    java -Xdebug -Xrunjdwp:transport=dt_socket,address=8211,server=y,suspend=n -classpath "$JAVA_HOME/lib/tools.jar:." com.sun.tools.example.debug.tty.TTY HelloWorld
    Initializing jdb ...
    stop in HelloWorld.mainDeferring breakpoint HelloWorld.main.
    It will be set after the class is loaded.
    runrun HelloWorld
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started: Set deferred breakpoint HelloWorld.main
    Breakpoint hit: "thread=main", HelloWorld.main(), line=3 bci=0
    3            System.out.println("Hello, world!");
    main[1] 5) At this point, the TTY class is busy debugging the HelloWorld
    class. Since the TTY class was started with the appropriate
    -Xdebug -Xrunjdwp:... flags, you can now attach to that process
    on the pre-arranged port (8211 in this example) and examine it.
    I suggest you do this from a separate command window:
    jdb -connect com.sun.jdi.SocketAttach:port=8211
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    Initializing jdb ...
    threadsGroup system:
      (java.lang.ref.Reference$ReferenceHandler)0x295       Reference Handler          cond. waiting
      (java.lang.ref.Finalizer$FinalizerThread)0x296        Finalizer                  cond. waiting
      (java.lang.Thread)0x297                               Signal Dispatcher          running
    Group main:
      (java.lang.Thread)0x1                                 main                       running
      (java.lang.UNIXProcess$3)0x299                        process reaper             running
      (com.sun.tools.example.debug.tty.VMConnection$1)0x29a output reader              running
      (com.sun.tools.example.debug.tty.VMConnection$1)0x29b output reader              running
      (java.lang.Thread)0x29c                               event-handler              cond. waiting
    Group JDI [27940859]:
      (java.lang.Thread)0x29f                               JDI Target VM Interface    running
      (java.lang.Thread)0x2a0                               JDI Internal Event Handler cond. waiting
    suspendAll threads suspended.
    thread 0x1main[1] where
      [1] java.io.FileInputStream.readBytes (native method)
      [2] java.io.FileInputStream.read (FileInputStream.java:194)
      [3] java.io.BufferedInputStream.read1 (BufferedInputStream.java:220)
      [4] java.io.BufferedInputStream.read (BufferedInputStream.java:277)
      [5] sun.nio.cs.StreamDecoder$CharsetSD.readBytes (StreamDecoder.java:408)
      [6] sun.nio.cs.StreamDecoder$CharsetSD.implRead (StreamDecoder.java:450)
      [7] sun.nio.cs.StreamDecoder.read (StreamDecoder.java:182)
      [8] java.io.InputStreamReader.read (InputStreamReader.java:167)
      [9] java.io.BufferedReader.fill (BufferedReader.java:136)
      [10] java.io.BufferedReader.readLine (BufferedReader.java:299)
      [11] java.io.BufferedReader.readLine (BufferedReader.java:362)
      [12] com.sun.tools.example.debug.tty.TTY.<init> (TTY.java:525)
      [13] com.sun.tools.example.debug.tty.TTY.main (TTY.java:850)At this point, your are debugging the JVM running com.sun.tools.example.debug.tty.TTY.main. You can
    set breakpoints, resume the debug session, and so forth.

  • IE debug code needed....

    Hey, I figured out how to create a nice menu using spry assets...real basic. Looks fantastic in Google Chrome. Looked at it in Internet Explorer and...ick! The background is supposed to be transparent, not white and the font should be more refined.
    I'm sure there is some IE debugging code, but I haven't a clue where to begin to look. Any Ideas?
    Here's the link to the site:
    http://chameleoninteractive.net/
    Thank you!!
    Samantha

    Which version of IE did you use?
    You would surely want to fix these before serious debugging....
    http://validator.w3.org/unicorn/check?ucn_uri=http://chameleoninteractive.net/&ucn_task=co nformance

  • Debugging Help Needed

    I have several sub vis that make up a vi. I only want to execute the
    last three sub vis.
    Does anyone know how to only execute these vis and ignore the earlier
    ones?
    Thanks,
    MM
    [See first answer for additional information]

    If you never want to execute the other sub-VIs, just delete all but the ones
    you want. If there are cases when you want to execute all, separate the VIs
    into a state machine or just encapsulate some of the VIs by a case statement.
    Magela Moore wrote:
    >This is a multi-part message in MIME format.>--------------326C2F2AE075AD91FF77B201>Content-Type:
    text/plain; charset=us-ascii>Content-Transfer-Encoding: 7bit>>I have several
    sub vis that make up a vi. I only want to execute the>last three sub vis.>Does
    anyone know how to only execute these vis and ignore the earlier>ones?>>Thanks,>>MM>>--------------326C2F2AE075AD91FF77B201>Content-Type:
    text/x-vcard; charset=us-ascii;> name="Magela.vcf">Content-Transfer-Encoding:
    7bit>Content-Description: Car
    d for Magela Moore>Content-Disposition: attachment;>
    filename="Magela.vcf">>begin:vcard >n:Moore;Magela Moore>tel;work:321.728.7975
    ext.111>x-mozilla-html:FALSE>url:http://www.ace-comp.com>org:ACE Computer
    Engineering>adr:;;1918 Dairy Road;West Melbourne;Florida;32935;>version:2.1>email;internet:[email protected]>title:Junior
    Software Engineer- RIU Verification Team>fn:Magela Moore>end:vcard>>--------------326C2F2AE075AD91FF77B201-->

  • Drag & Drop Video Flip Appelscript--Debug Help Needed!

    property type_list : {"Movie", "MOV"} -- eg: {"PICT", "JPEG", "TIFF", "GIFf"}
    property extension_list : {"MOV", "MP4"} -- eg: {"txt", "text", "jpg", "jpeg"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
    property typeIDs_list : {"public.mov", "public.mp4"} -- eg: {"public.jpeg", "public.tiff", "public.png"}
    -- This droplet processes files dropped onto the applet
    on open these_items
              repeat with i from 1 to the count of these_items
                        set this_item to item i of these_items
                        set the item_info to info for this_item
                        if folder of the item_info is true then
      process_folder(this_item)
                        else
                                  try
                                            set this_extension to the name extension of item_info
                                  on error
                                            set this_extension to ""
                                  end try
                                  try
                                            set this_filetype to the file type of item_info
                                  on error
                                            set this_filetype to ""
                                  end try
                                  try
                                            set this_typeID to the type identifier of item_info
                                  on error
                                            set this_typeID to ""
                                  end try
                                  if (folder of the item_info is false) and (alias of the item_info is false) and ¬
                                            ((this_filetype is in the type_list) or (this_extension is in the extension_list) or ¬
                                                      (this_typeID is in typeIDs_list)) then
      process_item(this_item)
                                  end if
                        end if
              end repeat
    end open
    -- this sub-routine processes folders
    on process_folder(this_folder)
              set these_items to list folder this_folder without invisibles
              repeat with i from 1 to the count of these_items
                        set this_item to alias ((this_folder as Unicode text) & (item i of these_items))
                        set the item_info to info for this_item
                        if folder of the item_info is true then
      process_folder(this_item)
                        else
                                  try
                                            set this_extension to the name extension of item_info
                                  on error
                                            set this_extension to ""
                                  end try
                                  try
                                            set this_filetype to the file type of item_info
                                  on error
                                            set this_filetype to ""
                                  end try
                                  try
                                            set this_typeID to the type identifier of item_info
                                  on error
                                            set this_typeID to ""
                                  end try
                                  if (alias of the item_info is false) and ((this_filetype is in the type_list) or ¬
                                            (this_extension is in the extension_list) or (this_typeID is in typeIDs_list)) then
      process_item(this_item)
                                  end if
                        end if
              end repeat
    end process_folder
    -- this sub-routine processes files
    on process_item(this_item)
      -- NOTE that the variable this_item is a file reference in alias format
      -- FILE PROCESSING STATEMENTS GOES HERE
              tell application "QuickTime Player 7"
      activate
      open this_item
                        tell document 1
                                  flip vertical (the first track whose kind is "video")
      save self contained this_item
      close this_item
                        end tell
              end tell
    end process_item
    --can't make alias into type document, error.
    The script shown above is generating an error..... can't make alias into type document.  Can you help me fix this?  You will have to paste the code above into your AS editor and then make an app out of it then drag a QT movie (.mov or .mp4) over that app and see how it goes.
    Thanks.
    Robert

    Okay, I will look into that....  for the moment, I wanted to report that I have something working....
    on open theItems
              repeat with anItem in theItems
                        set sourceMovie to anItem as string
                        set {oldTID, my text item delimiters} to {my text item delimiters, "."}
                        set destinationMovie to (text item 1 of sourceMovie & "_flipped") & "." & text item 2 of sourceMovie
                        set my text item delimiters to oldTID
                        tell application "QuickTime Player 7"
      open anItem
                                  tell document 1
                                            flip horizontal (the first track whose kind is "video")
                                            flip vertical (the first track whose kind is "video")
      save self contained in destinationMovie
      close
                                  end tell
                        end tell
              end repeat
    end open
    Thanks!!!!!!!!!!!!!

  • Pacman -U reports package needing a crazy number of blocks

    I'm testing a package provided by a reliable 3rd party and it fails to install on one system, but succeeds on another (both 32-bit systems). On the failing installation, pacman reports that the package requires a crazily huge number of blocks:
    # pacman -U <package>
    loading packages...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): <package>
    Total Installed Size: 6.54 MiB
    Net Upgrade Size: 0.02 MiB
    Proceed with installation? [Y/n]
    (1/1) checking package integrity [####################################] 100%
    (1/1) loading package files [####################################] 100%
    (1/1) checking for file conflicts [####################################] 100%
    (1/1) checking available disk space [####################################] 100%
    error: Partition / too full: 2552376766501889 blocks needed, 2089921 blocks free
    error: not enough free disk space
    error: failed to commit transaction (not enough free disk space)
    Errors occurred, no packages were upgraded.
    Running pacman -U --debug shows (snipped):
    debug: partition /, needed 2552325226889216, cushion 5121, free 2090145
    error: Partition / too full: 2552325226894337 blocks needed, 2090145 blocks free
    debug: returning error 7 from _alpm_check_diskspace : not enough free disk space
    I can install other packages with pacman fine and have never encountered this problem before. My root filesystem is not full:
    # df
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 25761332 17398388 7052040 72% /
    dev 509384 0 509384 0% /dev
    run 511272 572 510700 1% /run
    /dev/sda2 25761332 17398388 7052040 72% /
    tmpfs 511272 132 511140 1% /dev/shm
    tmpfs 511272 0 511272 0% /sys/fs/cgroup
    tmpfs 511272 44 511228 1% /tmp
    namcap showed nothing unusual about the package (which is not open source), and checks on my hard drive show nothing amiss.
    Would be grateful for any pointers to solve this unusual problem!

    Leonid.I wrote:Can you actually extract the package and measure the occupied disk space? Also what does pacman -Qpi <package> say?
    Yes - extracted it to a temporary directory and it occupied 6.2M of disk space, according to the du -h command. Directories and files looked fine.
    pacman -Qpi =>
    Compressed Size: 2485.82 KiB
    Installed Size : 6692.00 KiB
    All seems reasonable, but .... !
    (Also re-archived all the extracted stuff into a .pkg.tar.xz archive and got the same problem.)
    Edit: But both the .tar.gz and .tar.xz packages install without error on a second system, upgraded with pacman -Syu today to exactly the same level as the first system!
    Last edited by ninian (2012-08-06 18:34:05)

  • How to manage a debug deployment in a production environment

    One of the advantages of the Base Deployment is that the test station is locked down, for example operators cannot open and edit LabVIEW VIs. AFAIK a debug test station is wide open like a development machine, except for TestStand User Manager restrictions.
    How can I have a test station that is locked down, and then open it up for debug as needed? Dual booting the computer seems like a solution. Or maybe just have an open debug station and trust the trained operators to not mess with it. Can anyone share their solutions? Thanks.
    cc

    Hi,
    You make a good point about TestStand editing. That really leaves only the issue of LabVIEW development environment allowing uncontrolled editing of VIs.
    Personally I'm good debugging with base deployment, however I have worked with many companies who want full debug capability.
    Here’s my refined questions,
    1. Can I create one deployment image that works both with TestStand Base Deployment license and Debug license? Do I have to add anything special other than the Sequence Editor to get TestStand to run as debug?
    2. If I install LabVIEW development environment onto the same machine as the deployment image in 1, will I be able to step into and edit LabVIEW VIs? (As long as I set the LabVIEW adapter to development.)
    Then the debug station would be locked down with TestStand User Manager and LabVIEW adapter set to runtime. And it would have the same TestStand and LabVIEW and support files as all the base deployment machines. Does that sound logical to you? Thanks
    cc

Maybe you are looking for