Go to Post The sign of a mature community is not that everyone is nice and happy but that differring opinions can be expressed. -Joe Johnson - archiver [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-05-2009, 01:44
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
unexplained repeatable Labview crashes

Something really weird is happening:
Labview is crashing on the second iteration of this FOR loop, right after the breakpoint (I assume it's in the "match pattern"). It happens without the breakpoint too, but the breakpoint makes it easier to investigate.

When you continue execution on the second iteration, Labview quits abruptly (as soon as the data gets to that Match Pattern function). The weirdest part is that it doesn't detect the internal error. When you start it back up, it doesn't generate an internal error report, and it hasn't even created a crash log.
However, checking my system console, I find that there has been an error log created by the OS. (It's 600kb, so I uploaded it as a zip rather than a txt)

Reference info:
OS: 10.4.11 (Labview says it's 10.4.9)
Processor: 1.33 GHz PowerPC G4 (512MB)
Labview: 8.5 Student Edition (it was in the 2008 KOP)

NOTE:
The error is occurring in the "store VI info" subvi
The breakpoint should open it up for you.
In order for the FOR loop to actually execute for 2 or more iterations, you must select a directory that contains 2 or more VIs or CTLs. I would recommend selecting a directory with less than 50, so you don't have to wait too long (for the first subVI to list the directory contents and then use references and property nodes to extract useful info) before you can examine the execution of the second subVI.
Attached Files
File Type: zip unexplained crash.zip (135.7 KB, 112 views)
File Type: zip LabVIEW.crash.log.zip (26.2 KB, 123 views)
__________________
-- Marshal Horn
Reply With Quote
  #2   Spotlight this post!  
Unread 03-05-2009, 09:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: unexplained repeatable Labview crashes

It looks like a compiler bug that has since been fixed. I tried it on LV8.5.1 Mac version, and it runs fine when run on the directory of source you sent. I went past the breakpoint about eight times.

The crash log shows that an internal callback, part of the string processing library accessed bad memory when copying from one buffer to another. This almost certainly means that it was passed a bad parameter by the code LV generated.

So I can explain it, but I can't tell you a workaround -- because I can't reproduce it. My guess would be that you can jocky the string or cluster code around a bit, use shift registers instead of feedbacks, or something similar and you may be able to find a way of coding it that doesn't hit this error. Or better yet, see if you can find a newer version.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 03-05-2009, 10:51
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: unexplained repeatable Labview crashes

Are you having trouble downloading new code to the cRio? If so, PM me and I can try to explain an issue we identified and eventually showed to the NI team at championships.

Don
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #4   Spotlight this post!  
Unread 03-05-2009, 12:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: unexplained repeatable Labview crashes

This issue is with LV running on a Mac, so no RT download, no cRIO.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 03-05-2009, 12:14
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: unexplained repeatable Labview crashes

Thank you!
The shift registers successfully avoided the error.
__________________
-- Marshal Horn
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Segway Crashes... Clinton Bolinger Chit-Chat 3 19-07-2008 18:25
RIS programming screen crashes WalterTheProf Lego Mindstorm Discussion 2 03-07-2005 17:11
server crashes? Denman CD Forum Support 7 19-05-2005 01:13
Genesis Capsule Crashes Marc P. NASA Discussion 28 04-12-2004 13:54
A Tale of Ten Thousand Crashes Nero 3D Animation and Competition 19 16-03-2003 22:21


All times are GMT -5. The time now is 08:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi