out of memory

M

marathon

Folks:

I'm attempting to run a script that converts dmg2iso. Each attempt to
run, it terminates with an out of memory error.

Is this a fault of the script or something else?

FWIW, I get the same result, when I run the application as a script on Debian,
or as an executable binary on Windoze.
 
G

Gunnar Hjalmarsson

marathon said:
I'm attempting to run a script that converts dmg2iso. Each attempt
to run, it terminates with an out of memory error.

Is this a fault of the script or something else?

It's the script. The problem is caused by the bug on line 679.
 
P

Paul Lalli

Folks:

I'm attempting to run a script that converts dmg2iso. Each attempt to
run, it terminates with an out of memory error.

Is this a fault of the script or something else?

FWIW, I get the same result, when I run the application as a script on Debian,
or as an executable binary on Windoze.

Exactly how do you expect anyone to answer this question? You want us to
tell you if there's a problem with a script we can't see?

Paul Lalli
 
T

Tintin

marathon said:
Folks:

I'm attempting to run a script that converts dmg2iso. Each attempt to
run, it terminates with an out of memory error.

Is this a fault of the script or something else?

FWIW, I get the same result, when I run the application as a script on Debian,
or as an executable binary on Windoze.

Your while loop is incorrect. You shouldn't be recursively opening the
files.
 
C

Clyde Ingram

Paul,

Paul Lalli said:
Exactly how do you expect anyone to answer this question? You want us to
tell you if there's a problem with a script we can't see?

Whoa, there!
It's not Marathon Man's fault, you know.

Google's first result on "dmg2iso" throws up:
http://www.emaculation.com/modules.php?name=News&file=article&sid=213
This is a News forum discussing conversion of DMG images to ISO format.
But look at that beautifully crafted banner proclaiming "Emasculation.com".

That's it -- the sample code snippets part of his posting got
auto-emasculated.
Check your Recycle Bin -- it'll all be there...

Regards,
Clyde
 
C

Clyde Ingram

Purl Gurl said:
You need to declare local dynamic package global variables.

Ah! The brilliance of it.
And I was convinced he should have been declaring global static module local
constants.
Dang! (Where did I put that "Learning Perl"?)

Regards,
Clyde
 
M

marathon

Exactly how do you expect anyone to answer this question? You want us to
tell you if there's a problem with a script we can't see?

Sorry, I'm not a Perl programmer and I was asking in the generic sense.
I wished to know where to look, system or script. Now that I know it's
the script, I'll ask the other helpful gentleman, who mentioned the
line. Appears he knows the script.

Thanks for the help, astonishing how the rest of the thread as
detoriated. Is this indicative of the level of maturity found here? I
hope not, reading some of the threads, this group sounds like an 'alt'
group...

--
S.Allen
-----------------------------------------------
barnyard Thursday Jul 08 2004 10:55:01 AM EDT
-----------------------------------------------
HERE LIES LESTER MOORE
SHOT 4 TIMES WITH A .44
NO LES
NO MOORE
-- tombstone, in Tombstone, AZ
 
G

Gunnar Hjalmarsson

marathon said:
Sorry, I'm not a Perl programmer and I was asking in the generic
sense.

BS! You were referring to errors resulting from your attempts to run a
script. Now I realize that it was probably just a veiled homework
question. :(
Now that I know it's the script, I'll ask the other helpful
gentleman, who mentioned the line. Appears he knows the script.

I thought it was the kind of answer your question deserved. Your
'clarification' did not make me change my mind.
Thanks for the help, astonishing how the rest of the thread as
detoriated.

http://www.catb.org/~esr/faqs/smart-questions.html
 
M

marathon

BS! You were referring to errors resulting from your attempts to run a
script. Now I realize that it was probably just a veiled homework
question. :(

Now you're attempting to be a clarivoyant, a very poor one I might add.
I'm not taking any perl courses my friend. So please take your
susupicious nature somewhere else.

I'm a layperson, asking a lay question. Is that too hard for you to
grasp?
I thought it was the kind of answer your question deserved. Your
'clarification' did not make me change my mind.

Just to clarify, I suspected it was the script, but I needed
clarification before posting the script in question. In hindsight, that
perhaps wasn't the thing to do, but unlike you I'm not perfect.

Have a good day chump! The world needs more helpful people like you.
 
M

marathon

marathon wrote:


That is a very poorly written script exhibiting lots
of logic errors, and non-fatal syntax errors. It is
a script written by an amateur.

Well, I'm not surprised. But is there anything specific that's throwing
the error, that can be corrected easily? I hear reports that some are
having no problem with it... said:
To correct that script would require a complete rewrite,
otherwords, a new script.
OK.

Consider using a better written script.

That's not an option, as the individual whom posted it, isn't
responding, unfortunately. It was a nice deed he did though. Most of us
using it, will be a "one of" kinda thing.

Thanks for the reponse.
 
G

Glenn Jackman

marathon said:
[...]

I've put the script online, it's viewable here;

<http://sweetpig.dyndns.org:1000/~steve123/dmg2iso.txt>

What's output when run, is the following;

reading property list...found 1 partitions
decompressing:
partition 0
Out of memory!

Have you tried debugging your script? For example, how big is $in_size
when you try to read? What is the $block_type just before you run out
of memory? How big is $output when you inflate your $tmp string?
 
M

marathon

Being "clairvoyant" is precisely what is needed
to provide a decent answer to your original article.
Your original article is of poor quality which warrants
poor quality responses. You wrote a lazy article and
received lazy responses.
My suggestion is you exercise your mind before writing
articles rather than using the least amount of effort
possible to write an article.
You will be considered a troll if you do not invest
expected effort into your articles.

Oh please, your eliteist attitude is quite evident Purl Gurl.
Answer this question for me,
My upload script does not work. What is wrong?

I think I'll leave you to argue in your cesspool.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top