Welcome, Guest. Please login or register.

Author Topic: Icon causes system to hang.  (Read 1211 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline EDanaIITopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Icon causes system to hang.
« on: August 22, 2007, 05:00:11 PM »
Running on WinUAE, using either an AmiKit config or just a plain OS3.9 configuration, I cannot run a custom program using an icon.

The program runs fine, without an icon, but when I associate it with an icon, it hangs the entire system. When I rename the program to match an pre-existing icon, I get the same results. IconEdit on AmiKit doesn't work, but works on OS3.9 and gives me the same results: system locks.

No clue why this is happening. I may be doing something fatally stupid. Any and all clues appreciated.

Ed.
Ed.
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4051
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: Icon causes system to hang.
« Reply #1 on: August 22, 2007, 05:17:24 PM »
Stack ?
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline EDanaIITopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Re: Icon causes system to hang.
« Reply #2 on: August 22, 2007, 05:51:24 PM »
No. At least I don't think so. The CLI stack is set to 8k. One of the icons I'm trying is also set to 8k. Running from the CLI works, but the icon (still) doesn't.
Ed.
 

Offline amipal

  • Jr. Member
  • **
  • Join Date: Oct 2003
  • Posts: 71
  • Country: gb
    • Show only replies by amipal
    • Flickr
Re: Icon causes system to hang.
« Reply #3 on: August 22, 2007, 06:22:14 PM »
Are the any tooltypes associated with the icon that don't get set when run from CLI?
After a decade away from the scene, I am back!
 

Offline Matt_H

Re: Icon causes system to hang.
« Reply #4 on: August 22, 2007, 07:20:07 PM »
What program is it? Some badly-ported shell tools will crash the machine if run from Workbench. Change the 'Start From:' cycle gadget to Shell and add the tootype DONOTPROMPT if you don't want the 'Execute Command...' dialog to come up.
 

Offline EDanaIITopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Re: Icon causes system to hang.
« Reply #5 on: August 22, 2007, 08:28:43 PM »
It's an old workbench based game that I decided to give a face-lift too, so that shouldn't be the issue.


@ amipal

I'm not specifying any tooltypes.

Ed.
Ed.
 

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show only replies by AmigaMance
Re: Icon causes system to hang.
« Reply #6 on: August 22, 2007, 09:05:40 PM »
Edit: deleted
 I just noticed Matt_H's post. His advice is good. It should work.
A1200 PPC user.
 

Offline EDanaIITopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Re: Icon causes system to hang.
« Reply #7 on: August 22, 2007, 10:22:45 PM »
Sorry, but I'm not being clear.

It is a Workbench based program, not CLI, that I can launch from the CLI or the Workbench using a default icon, but I cannot launch it using a ".info" icon. When I launch it from the CLI, I have 8k of stack, so I do not think that is the issue.

The original program, before I upgraded launches from an icon fine. My new version, launches fine, except when I use the original ".info" icon or when I use my own custom ".info" icon. But for that small difference, everything works, without issues.

I, BTW, cannot change the stack in either the original or newer icon. I change the value, then save, quit and then reload the icon and it still contians the original values.

Ed.
Ed.
 

Offline Matt_H

Re: Icon causes system to hang.
« Reply #8 on: August 23, 2007, 02:17:32 AM »
If you've been rewriting code, then it seems pretty likely there's a bug hiding somewhere. Try a debugger, or possibly SnoopDos (enable all functions) to see where things are going wrong.

If it is a stack issue, be sure to press Enter after increasing the stack value - sometimes the string gadgets get dumb and only actually change if you do that.
 

Offline Merc

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 312
    • Show only replies by Merc
    • http://chebucto.ns.ca/~ah210/Profile.html
Re: Icon causes system to hang.
« Reply #9 on: August 23, 2007, 02:37:12 AM »
What if you move your custom icon aside, show the game using show all files, and then drag the default icon into the Information window for the game, and then hit save?

That should give it a real icon with the default icon image -- I wonder if it would launch properly then.

If so maybe you could then load that icon into your icon editor and paste in your custom icon.

That's all pure speculation but it might just work... :-)
 

Offline EDanaIITopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Re: Icon causes system to hang.
« Reply #10 on: August 23, 2007, 06:38:21 AM »
No, it's definitely a bug, Merc, just as Matt suggests. I've tried a number of different ways to create an icon and only my program dies when I create one for it.


@ Matt_H

The problem is, I'm using a cross compiler to do the work, so debuging isn't possible. Are there any stand alone debuggers out there?

Ed.
Ed.
 

Offline Matt_H

Re: Icon causes system to hang.
« Reply #11 on: August 23, 2007, 10:21:55 PM »
@ EDanall

I'm not sure about what debuggers are available. vbcc and DICE are the only free Amiga C compilers I can think of, but I don't know if they include debuggers.

Maybe start a new thread in the Development forum?
 

Offline EDanaIITopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Re: Icon causes system to hang.
« Reply #12 on: August 25, 2007, 02:47:13 AM »
All right, I figured it out. Even though the original program did not use the Icon library, I needed to. Not sure why this is, but everything works as it should. :-)

Ed.
Ed.
 

Offline Matt_H

Re: Icon causes system to hang.
« Reply #13 on: August 25, 2007, 04:51:20 AM »
Interesting. Congratulations on getting it working.