dbTalk Databases Forums  

Crash

comp.databases.filemaker comp.databases.filemaker


Discuss Crash in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default Crash - 05-11-2011 , 02:53 PM






For the first time I have created something that crashes filemaker.

Basically a textfield, a web view object (with the objectname "web")and one
script

1st I put some html text inside the textfield

"data:text/html,<img src=\"" &
Middle ( Get ( FilePath ) ; 7 ; ( Length( Get ( FilePath ) ) -7 ) - ( Length
( Get ( FileName ) )+4 ) )
&
"/foto/" & PADnum ( GetAsNumber ( Persoon::Persoonsblad ) ) & " geb.jpg\"
\">"

2nd then the script: Set Web Viewer [Object Name; "Web";
URL:Evaluate(textfield)

This worked perfectly. Untill I started tweaking with the text. Applied the
script to try. The application crashed. completely. Filemaker could not even
be stopped, nothing reacted. I had to force filemaker to shutdown. Ofcourse
I tried to reopen the file, it recovered, which was to be expected. But the
opening proces didn't finish as expected. Filemaker went blank, file didn't
open. No warning, nothing.
rebuild the file (luckily it was a testfile) introduced the typo. Bingo.
Perfectly reproducible. Astounded.

Hou je goed / keep well,

Ursus

Reply With Quote
  #2  
Old   
cortical
 
Posts: n/a

Default Re: Crash - 05-11-2011 , 07:30 PM






On 12/05/11 5:23 AM, Ursus wrote:
Quote:
For the first time I have created something that crashes filemaker.

Basically a textfield, a web view object (with the objectname "web")and
one script

1st I put some html text inside the textfield

"data:text/html,<img src=\"" &
Middle ( Get ( FilePath ) ; 7 ; ( Length( Get ( FilePath ) ) -7 ) - (
Length ( Get ( FileName ) )+4 ) )
&
"/foto/" & PADnum ( GetAsNumber ( Persoon::Persoonsblad ) ) & "
geb.jpg\" \">"

2nd then the script: Set Web Viewer [Object Name; "Web";
URL:Evaluate(textfield)

This worked perfectly. Untill I started tweaking with the text. Applied
the script to try. The application crashed. completely. Filemaker could
not even be stopped, nothing reacted. I had to force filemaker to
shutdown. Ofcourse I tried to reopen the file, it recovered, which was
to be expected. But the opening proces didn't finish as expected.
Filemaker went blank, file didn't open. No warning, nothing.
rebuild the file (luckily it was a testfile) introduced the typo. Bingo.
Perfectly reproducible. Astounded.

Hou je goed / keep well,

Ursus



just a guess; I would suspect the script evaluation has failed because
the path (in text field) is invalid. I would look at testing that the
path exists before having the script evaluate teh text field.


I had a series of FM apparent hangs a couple of months ago, where I was
using shell command steps to parse specific directory contents , on a
Mac (bash) form FM, and sometimes in the workup get something wrong that
sent the script parsing the entire volume contents, or a higher level
directory content, or invalid path... FM would appear to hang (beach
ball, 'not responding' under force quit) and activity monitor showing an
escaped process using over 100% of the CPU. Waiting often resulted in an
eventual unfreeze.

I would try a simple test, run it with a working path, then change the
target file name, or a directory name in the tree path, and see if the
invalid path produces the symptom.

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.