New OS4.1 Kernel and Hollywood DSI

Report any Hollywood bugs here
User avatar
fingus
Posts: 269
Joined: Fri Sep 16, 2011 9:53 am

New OS4.1 Kernel and Hollywood DSI

Post by fingus »

It seems that the new kernel-update of OS4.1 bring some Grims (DSI) specially when using downloadfile.

I try to hunt down the error and attach a crashlog here.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

I hope its related to the problem I reported yesterday which I am still unable to pinpoint.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

Still crashing erratically here when starting Jack. One of the many activities or functions used each start-up is indeed the use of the DownloadFile() command - specifically when downloading an xml file for the purpose of retrieving the user's local weather forecast.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

Andreas can you please confirm? Hollywood and consequently its apps have become unstable overnight with the release of the new kernel update.

Crashlog, if it helps any:

Code: Select all

Crash log for task "Jack"
Generated by GrimReaper 53.16
Crash occured in module Jack at address 0x7D69EE0C
Type of crash: DSI (Data Storage Interrupt) exception

Register dump:
GPR (General Purpose Registers):
   0: 7D552654 539C9330 00000000 00000000 4FC9CE9C 00000000 00000000 00000025 
   8: 00000000 4FBD0000 00000000 4FBD1388 20424022 00000000 4D4E5000 00000000 
  16: 00000000 00000000 539C949C 539C989C 510A0DD0 505C5FB0 00000068 516A55C0 
  24: 00000000 4F837BD8 539C999C 00000036 00000000 00000036 20000000 00000000 


FPR (Floating Point Registers, NaN = Not a Number):
   0:              nan      1.38227e+09      4.40873e-15               24 
   4:              0.5      3.55271e-15                1                0 
   8:       4.5036e+15                0          37683.2               40 
  12:       4.5036e+15                0      2.66506e-15     1.49909e+146 
  16:    -9.26586e+294     1.54591e+264     4.41968e+191    -8.60284e+264 
  20:     1.98731e+187      2.0587e+291      4.22042e+33    -1.92238e+221 
  24:    -1.24268e+260     1.04121e+303    -2.15745e+214                1 
  28:       4.5036e+15       4.5036e+15      2.14748e+09                0 

FPSCR (Floating Point Status and Control Register): 0x82022000


SPRs (Special Purpose Registers):
           Machine State (msr) : 0x0002F030
                Condition (cr) : 0x00000001
      Instruction Pointer (ip) : 0x7D69EE0C
       Xtended Exception (xer) : 0xFFFFFFFF
                   Count (ctr) : 0x80080008
                     Link (lr) : 0x502EF240
            DSI Status (dsisr) : 0x80080009
            Data Address (dar) : 0x502EF2AC



680x0 emulated registers:
DATA: 60E25CAE 00000003 00000000 00000000 00000000 00000000 00000000 00000000 
ADDR: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 539CA3C0 
FPU0:                0                0                0                0 
FPU4:                0                0                0                0 



Symbol info:
Instruction pointer 0x7D69EE0C belongs to module "Jack" (HUNK/Kickstart)

Stack trace:
    module Jack at 0x7D69EE0C (section 5 @ 0x1DCDE8)
    module Jack at 0x7D552548 (section 5 @ 0x90524)
    module Jack at 0x7D586C48 (section 5 @ 0xC4C24)
    module Jack at 0x7D591B70 (section 5 @ 0xCFB4C)
    module Jack at 0x7D5874A0 (section 5 @ 0xC547C)
    module Jack at 0x7D582A78 (section 5 @ 0xC0A54)
    module Jack at 0x7D586278 (section 5 @ 0xC4254)
    module Jack at 0x7D58639C (section 5 @ 0xC4378)
    module Jack at 0x7D583154 (section 5 @ 0xC1130)
    module Jack at 0x7D5F3084 (section 5 @ 0x131060)
    module Jack at 0x7D4C7654 (section 5 @ 0x5630)
    module Jack at 0x7D5EF638 (section 5 @ 0x12D614)
    module Jack at 0x7D69BDF4 (section 5 @ 0x1D9DD0)
    module Jack at 0x7D69E124 (section 5 @ 0x1DC100)

PPC disassembly:
 7d69ee04: 2f870000   cmpwi             cr7,r7,0
 7d69ee08: 4dbe0020   beqlr+            cr7
*7d69ee0c: 880a0000   lbz               r0,0(r10)
 7d69ee10: 2f800000   cmpwi             cr7,r0,0
 7d69ee14: 419e0044   beq-              cr7,0x7D69EE58

System information:

CPU 
 Model: AMCC PPC460EX V1.2 
 CPU speed: 1150 MHz 
 FSB speed: 287 MHz 
 Extensions:  

Machine 
 Machine name: Sam460ex 
 Memory: 2097152 KB 
 Extensions: bus.pci bus.pcie 

Expansion buses 
 PCI/AGP 
  00:04.0 Vendor 0x1095 Device 0x3114 
   Range 0: 00001000 - 00001008 (IO) 
   Range 1: 00001008 - 00001010 (IO) 
   Range 2: 00001010 - 00001018 (IO) 
   Range 3: 00001018 - 00001020 (IO) 
   Range 4: 00001020 - 00001030 (IO) 
  00:06.0 Vendor 0x126F Device 0x0501 
   Range 0: 84000000 - 88000000 (MEM) 
   Range 1: 88000000 - 88200000 (MEM) 
  05:00.0 Vendor 0xACBE Device 0x0001 
  06:00.0 Vendor 0x1002 Device 0x9498 
   Range 0: A0000000 - B0000000 (PREF.MEM) 
   Range 2: B0000000 - B0010000 (MEM) 
   Range 4: 00002000 - 00002100 (IO) 
  06:00.1 Vendor 0x1002 Device 0xAA38 
   Range 0: 00000000 - 00004000 (MEM) 

Libraries 
 0x614117d8: ISO-8859-15.charset V52.1 
 0x614116d8: english_ISO-8859-15.language V52.1 
 0x0227dfc6: exec.library V53.58 
 0x6ffa8174: vilintuisup.library V0.9 
 0x6ffa8048: cgxvideo.library V42.1 
 0x6ffdf0e0: cybergraphics.library V43.0 
 0x56fbccd0: ascii.datatype V53.3 
 0x56fbce10: text.datatype V53.5 
 0x57d8e7c8: Hollywood4.CCPlugin V6.8 
 0x57ceb338: speedbar.gadget V53.12 
 0x58026058: codebench.library V53.32 
 0x563821b8: richeditor.gadget V53.22 
 0x56c82b48: amissl_v097g.library V3.7 
 0x511dc0d8: xml.library V53.10 
 0x50d5f0f0: texteditor.gadget V53.20 
 0x5130fa40: palette.gadget V53.6 
 0x5130fae0: getscreenmode.gadget V53.8 
 0x57dab4b0: getcolor.gadget V53.9 
 0x60777588: radiobutton.gadget V53.9 
 0x57a79690: fuelgauge.gadget V53.8 
 0x5130f4a0: TextEditor.mcc V15.41 
 0x5130f400: Scale.mui V20.223 
 0x5130f2c0: Colorfield.mui V20.225 
 0x5130f180: Boopsi.mui V20.520 
 0x5130f040: gradientslider.gadget V53.6 
 0x56f57f34: colorwheel.gadget V53.6 
 0x56f57e90: Coloradjust.mui V20.222 
 0x57daac3c: muilocale.library V20.363 
 0x56f57b70: Dirlist.mui V20.424 
 0x56f57a30: Floattext.mui V20.225 
 0x56f578f0: TheButton.mcc V26.12 
 0x56f57850: TheBar.mcc V26.12 
 0x56f57490: gif.datatype V53.1 
 0x56f57348: xenbar.image V20.213 
 0x56f572b0: Lamp.mcc V20.40 
 0x56f57170: Gauge.mui V20.255 
 0x56f57030: Dtpic.mui V20.220 
 0x58270de0: Popasl.mui V20.229 
 0x58270ca0: BetterString.mcc V11.25 
 0x58270c00: Listtree.mcc V20.124 
 0x58f2dbfc: codesets.library V6.15 
 0x56c1260c: muimaster.library V20.2351 
 0x57a6f164: asyncio.library V50.3 
 0x583f77a8: SubDock.docky V53.1 
 0x57a795f0: slider.gadget V53.13 
 0x57a79730: getfont.gadget V53.9 
 0x57a79230: arexx.class V53.3 
 0x57a79370: getfile.gadget V53.11 
 0x57ac85f0: requester.class V53.18 
 0x58ee0ea0: space.gadget V53.6 
 0x57a79190: bitmap.image V53.9 
 0x57a790f0: integer.gadget V53.10 
 0x58f1ce98: screenblanker.library V53.3 
 0x57acc038: clicktab.gadget V53.39 
 0x58f2b594: device.audio V6.2 
 0x57b6d3a8: chooser.gadget V53.18 
 0x58ee0a40: penmap.image V53.5 
 0x58ee09a0: checkbox.gadget V53.9 
 0x60695dd4: filesave.audio V6.3 
 0x58f1a554: asl.library V53.49 
 0x607779e8: sysvipc.library V51.4 
 0x6fefca78: listbrowser.gadget V53.61 
 0x5a2d4500: string.gadget V53.16 
 0x60dcdc10: scroller.gadget V53.13 
 0x60dcdad0: jpeg.datatype V53.5 
 0x60dcd848: sm502.audio V6.3 
 0x60b7dc78: emulation.library V53.1 
 0x6077e104: usergroup.library V4.30 
 0x607908f0: bsdsocket.library V4.307 
 0x60e39d48: pthreads.library V53.9 
 0x60e3da20: mathieeedoubbas.library V52.1 
 0x60e3985c: textclip.library V52.2 
 0x613763fc: xadmaster.library V13.1 
 0x61413c74: xpkmaster.library V5.2 
 0x60fa1d38: usbhidgate.library V52.2 
 0x6124557c: hid.usbfd V53.8 
 0x612c15f0: button.gadget V53.15 
 0x612c1690: glyph.image V53.3 
 0x612460b0: window.class V53.50 
 0x6126d518: popupmenu.class V53.2 
 0x61418308: popupmenu.library V53.8 
 0x612c14b0: label.image V53.12 
 0x6ffa87c8: layout.gadget V53.19 
 0x6126d420: bevel.image V53.6 
 0x612c1410: drawlist.image V53.3 
 0x613e5ea0: png.datatype V53.6 
 0x611a76a4: picture.datatype V53.6 
 0x61480c48: timezone.library V53.8 
 0x6146be38: application.library V53.12 
 0x6141286c: ft2.library V53.1 
 0x6ff81c4c: workbench.library V53.51 
 0x6ff5d6cc: commodities.library V53.1 
 0x6145f140: datatypes.library V53.4 
 0x6141d5f0: Picasso96API.library V53.4 
 0x6141c9f0: gadtools.library V53.6 
 0x62f277d0: SiliconMotion502.chip V53.10 
 0x62f2f0cc: icon.library V53.13 
 0x6fefd198: version.library V53.11 
 0x614a9a40: iffparse.library V53.1 
 0x6ff17ccc: locale.library V53.6 
 0x6ffda7ac: diskfont.library V53.4 
 0x6ff61b68: petunia.library V53.4 
 0x6ff619e8: diskcache.library V3.30 
 0x6fcf6690: dos.library V53.145 
 0x6ffa8ad4: usbprivate.library V53.12 
 0x6ff5f6bc: massstorage.usbfd V53.13 
 0x6ff5f628: bootkeyboard.usbfd V52.3 
 0x6ff5f5a8: bootmouse.usbfd V53.1 
 0x6ffa898c: hub.usbfd V53.8 
 0x6ffa88dc: usbresource.library V53.12 
 0x6ffd9658: hunk.library V53.4 
 0x6fefac54: elf.library V53.19 
 0x6feec4d0: intuition.library V53.43 
 0x6ffbc150: rtg.library V53.30 
 0x6fefd9a0: RadeonHD.chip V0.55 
 0x6fefd924: PCIGraphics.card V53.5 
 0x6feff7a0: keymap.library V53.3 
 0x6ff01c30: layers.library V53.7 
 0x6ff16420: graphics.library V53.6 
 0x6ffd9184: nonvolatile.library V53.5 
 0x6ff002b8: newlib.library V53.28 
 0x6fefb1ac: utility.library V53.5 
 0x6feff0a8: expansion.library V53.1 
 0x60e25cae: rexxsyslib.library V53.4 (Legacy) 

Devices 
 0x56382584: clipboard.device V53.2 
 0x580368f4: ppp-ethernet.device V52.2 
 0x607bc574: ahi.device V6.6 
 0x607749b8: ppc460ex_eth.device V53.3 
 0x60fa1aa4: diskimage.device V52.78 
 0x6fd9b6b8: usbdisk.device V53.13 
 0x6fefbd10: usbsys.device V53.12 
 0x6ffd9cd0: ehci.usbhcd V53.17 
 0x6ffd9c30: ohci.usbhcd V53.19 
 0x6ffd9b90: uhci.usbhcd V53.12 
 0x6ffd9a24: sii3114ide.device V53.15 
 0x6ff5d338: console.device V53.1 
 0x6fefc3f0: ramdrive.device V52.6 
 0x6feff9ec: input.device V53.4 
 0x6ffda3b4: keyboard.device V53.10 
 0x6fefc2d0: timer.device V53.1 

Tasks 
 Hollywood sound server (Waiting) 
  Stack: 0x54303004 - 0x54312ffc, pointer @ 0x54312f20 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Process (Waiting) 
 Hollywood streaming task (Waiting) 
  Stack: 0x53d02004 - 0x53d11ffc, pointer @ 0x53d11e10 (Cookie OK) 
  Signals: SigRec 0xe0000000, SigWait 0x00000000 
  State: Process (Waiting) 
 ClickToFront (Waiting) 
  Stack: 0x57a3f004 - 0x57a4effc, pointer @ 0x57a4e9f0 (Cookie OK) 
  Signals: SigRec 0xc000d000, SigWait 0x00000100 
  State: Process (Waiting) 
 input.device (Waiting) 
  Stack: 0x6ffc4000 - 0x6ffd4000, pointer @ 0x6ffd3f00 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Task (Waiting) 
 CodeBench Iconbar Process (Waiting) 
  Stack: 0x51241004 - 0x51250ffc, pointer @ 0x51250e50 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 SFS DosList handler (Waiting) 
  Stack: 0x6fc85004 - 0x6fc87ffc, pointer @ 0x6fc87f20 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Process (Waiting) 
 USB stack (Waiting) 
  Stack: 0x6ff70000 - 0x6ff74000, pointer @ 0x6ff73f20 (Cookie OK) 
  Signals: SigRec 0xf8007000, SigWait 0x00000000 
  State: Task (Waiting) 
 EHCI Controller Task Unit 0 (Waiting) 
  Stack: 0x6fdd2000 - 0x6fdda000, pointer @ 0x6fdd9f20 (Cookie OK) 
  Signals: SigRec 0xbe009000, SigWait 0x00000000 
  State: Task (Waiting) 
 OHCI Controller Task Unit 0 (Waiting) 
  Stack: 0x6fdfe000 - 0x6fe06000, pointer @ 0x6fe05f20 (Cookie OK) 
  Signals: SigRec 0xbe009000, SigWait 0x00000000 
  State: Task (Waiting) 
 sii3114ide.device - chip 0 port 0 (Waiting) 
  Stack: 0x6fe5a000 - 0x6fe62000, pointer @ 0x6fe61f30 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x20000000 
  State: Task (Waiting) 
 page_sweep (Waiting) 
  Stack: 0x6fe0a004 - 0x6fe11ffc, pointer @ 0x6fe11e80 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Task (Waiting) 
 sii3114ide.device - chip 0 port 1 (Waiting) 
  Stack: 0x6fe32000 - 0x6fe3a000, pointer @ 0x6fe39f30 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00008000 
  State: Task (Waiting) 
 ppc460ex_eth Unit 0 (Waiting) 
  Stack: 0x607a4004 - 0x607b3ffc, pointer @ 0x607b3e20 (Cookie OK) 
  Signals: SigRec 0xf6003000, SigWait 0x00000000 
  State: Process (Waiting) 
 hid.usbfd (Waiting) 
  Stack: 0x60ee2004 - 0x60ee9ffc, pointer @ 0x60ee9e90 (Cookie OK) 
  Signals: SigRec 0xe0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 HID Mouse (Waiting) 
  Stack: 0x60e66004 - 0x60e75ffc, pointer @ 0x60e75f20 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000000 
  State: Process (Waiting) 
 reaper.task (Waiting) 
  Stack: 0x6157d004 - 0x61584ffc, pointer @ 0x61584760 (Cookie OK) 
  Signals: SigRec 0x00007000, SigWait 0x00000000 
  State: Process (Waiting) 
 JXF:DH1/JXFileSystem 4.34  (Waiting) 
  Stack: 0x6fc93004 - 0x6fc95ffc, pointer @ 0x6fc95de0 (Cookie OK) 
  Signals: SigRec 0xc0000100, SigWait 0x20000000 
  State: Process (Waiting) 
 DH0/SmartFilesystem 1.290  (Waiting) 
  Stack: 0x6fc7e004 - 0x6fc80ffc, pointer @ 0x6fc80eb0 (Cookie OK) 
  Signals: SigRec 0xe0000100, SigWait 0x10000000 
  State: Process (Waiting) 
 RAM/ram-handler 53.3  (Waiting) 
  Stack: 0x62ee6004 - 0x62eedffc, pointer @ 0x62eedc90 (Cookie OK) 
  Signals: SigRec 0xc0000100, SigWait 0x00000000 
  State: Process (Waiting) 
 dos_filedir_notify (Waiting) 
  Stack: 0x6fcc2004 - 0x6fcc5ffc, pointer @ 0x6fcc5ad0 (Cookie OK) 
  Signals: SigRec 0x40001000, SigWait 0x80000000 
  State: Process (Waiting) 
 ICD0/CDFileSystem 53.2  (Waiting) 
  Stack: 0x60be1004 - 0x60bf0ffc, pointer @ 0x60bf0f20 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 ICD1/CDFileSystem 53.2  (Waiting) 
  Stack: 0x60c5c004 - 0x60c6bffc, pointer @ 0x60c6bf20 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CD0/CDFileSystem 53.2  (Waiting) 
  Stack: 0x6fc8c004 - 0x6fc8effc, pointer @ 0x6fc8ef20 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 hid.usbfd (Waiting) 
  Stack: 0x60ed6004 - 0x60eddffc, pointer @ 0x60edde90 (Cookie OK) 
  Signals: SigRec 0xe0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 HID Keyboard (Waiting) 
  Stack: 0x60e4a004 - 0x60e59ffc, pointer @ 0x60e59f00 (Cookie OK) 
  Signals: SigRec 0x90001000, SigWait 0x00000000 
  State: Process (Waiting) 
 MainIPC0/CrossDOSFileSystem 53.7  (Waiting) 
  Stack: 0x60e9e004 - 0x60eadffc, pointer @ 0x60eadeb0 (Cookie OK) 
  Signals: SigRec 0x40000100, SigWait 0x00000000 
  State: Process (Waiting) 
 HID Joystick (Waiting) 
  Stack: 0x60e82004 - 0x60e91ffc, pointer @ 0x60e91f20 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000000 
  State: Process (Waiting) 
 hid.usbfd (Waiting) 
  Stack: 0x60eee004 - 0x60ef5ffc, pointer @ 0x60ef5e90 (Cookie OK) 
  Signals: SigRec 0xe0000000, SigWait 0x00000000 
  State: Process (Waiting) 
 pager (Waiting) 
  Stack: 0x61559004 - 0x61578ffc, pointer @ 0x61578f00 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000000 
  State: Process (Waiting) 
 ENV/env-handler 53.2  (Waiting) 
  Stack: 0x61540004 - 0x61542ffc, pointer @ 0x61542dd0 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000100 
  State: Process (Waiting) 
 IDF1/FastFileSystem 53.2  (Waiting) 
  Stack: 0x60ce4004 - 0x60cf3ffc, pointer @ 0x60cf3ed0 (Cookie OK) 
  Signals: SigRec 0xa8000100, SigWait 0x00000000 
  State: Process (Waiting) 
 IDF0/FastFileSystem 53.2  (Waiting) 
  Stack: 0x60ca8004 - 0x60cb7ffc, pointer @ 0x60cb7ed0 (Cookie OK) 
  Signals: SigRec 0xa8000100, SigWait 0x00000000 
  State: Process (Waiting) 
 IDF2/FastFileSystem 53.2  (Waiting) 
  Stack: 0x60d41004 - 0x60d50ffc, pointer @ 0x60d50ed0 (Cookie OK) 
  Signals: SigRec 0xa8000100, SigWait 0x00000000 
  State: Process (Waiting) 
 IDF3/FastFileSystem 53.2  (Waiting) 
  Stack: 0x60d7d004 - 0x60d8cffc, pointer @ 0x60d8ced0 (Cookie OK) 
  Signals: SigRec 0xa8000100, SigWait 0x00000000 
  State: Process (Waiting) 
 MassStorage Device Task (Waiting) 
  Stack: 0x6fd06000 - 0x6fd0e000, pointer @ 0x6fd0de70 (Cookie OK) 
  Signals: SigRec 0xf3009000, SigWait 0x00000000 
  State: Task (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x500d6004 - 0x500e5ffc, pointer @ 0x500e5de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 IPC0/CrossDOSFileSystem 53.7  (Waiting) 
  Stack: 0x60eba004 - 0x60ec9ffc, pointer @ 0x60ec9ee0 (Cookie OK) 
  Signals: SigRec 0x00010100, SigWait 0x00000000 
  State: Process (Waiting) 
 URL/launch-handler 53.32  (Waiting) 
  Stack: 0x60af7004 - 0x60b71ffc, pointer @ 0x60b6cac0 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000100 
  State: Process (Waiting) 
 RANDOM/Random-Handler 52.1  (Waiting) 
  Stack: 0x60f13004 - 0x60f22ffc, pointer @ 0x60f22ef0 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x53d3e004 - 0x53d4dffc, pointer @ 0x53d4dde0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x580ba004 - 0x580c9ffc, pointer @ 0x580c9de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x58394004 - 0x583a3ffc, pointer @ 0x583a3de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x5713d004 - 0x5714cffc, pointer @ 0x5714cde0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x57a90004 - 0x57a9fffc, pointer @ 0x57a9fde0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x57b1d004 - 0x57b2cffc, pointer @ 0x57b2cde0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x57b95004 - 0x57ba4ffc, pointer @ 0x57ba4de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x61487004 - 0x61496ffc, pointer @ 0x61496de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 AUDIO/AHI-Handler 6.2  (Waiting) 
  Stack: 0x60aa3004 - 0x60ab2ffc, pointer @ 0x60ab2ec0 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 APPDIR/appdir-handler-dos 53.145  (Waiting) 
  Stack: 0x61539004 - 0x6153bffc, pointer @ 0x6153bda0 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000100 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x62e9a004 - 0x62ea1ffc, pointer @ 0x62ea1de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 RAW/con-handler 53.1  (Waiting) 
  Stack: 0x62ef2004 - 0x62ef9ffc, pointer @ 0x62ef9de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 CON/con-handler 53.1  (Waiting) 
  Stack: 0x62f1e004 - 0x62f25ffc, pointer @ 0x62f25de0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 dos_nbmd_process (Waiting) 
  Stack: 0x6fcd1004 - 0x6fcd3ffc, pointer @ 0x6fcd3f30 (Cookie OK) 
  Signals: SigRec 0x00001100, SigWait 0x00000000 
  State: Process (Waiting) 
 dos_lock_handler (Waiting) 
  Stack: 0x6fcca004 - 0x6fcccffc, pointer @ 0x6fcccef0 (Cookie OK) 
  Signals: SigRec 0x00001100, SigWait 0x00000000 
  State: Process (Waiting) 
 console.device (Waiting) 
  Stack: 0x6fe6a000 - 0x6fe72000, pointer @ 0x6fe71f70 (Cookie OK) 
  Signals: SigRec 0xf0000000, SigWait 0x00000000 
  State: Task (Waiting) 
 RexxMaster (Waiting) 
  Stack: 0x60a0d004 - 0x60a1cffc, pointer @ 0x60a1cf50 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000000 
  State: Process (Waiting) 
 diskimage.device unit 4 (Waiting) 
  Stack: 0x60bb2004 - 0x60bc5ffc, pointer @ 0x60bc5c20 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 diskimage.device unit 5 (Waiting) 
  Stack: 0x60c2d004 - 0x60c40ffc, pointer @ 0x60c40c20 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 diskimage.device unit 0 (Waiting) 
  Stack: 0x60c78004 - 0x60c8bffc, pointer @ 0x60c8bc20 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 diskimage.device unit 1 (Waiting) 
  Stack: 0x60cc4004 - 0x60cd7ffc, pointer @ 0x60cd7c20 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 diskimage.device unit 2 (Waiting) 
  Stack: 0x60d21004 - 0x60d34ffc, pointer @ 0x60d34c20 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 diskimage.device unit 3 (Waiting) 
  Stack: 0x60d5d004 - 0x60d70ffc, pointer @ 0x60d70c20 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 diskimage.device unit 6 (Waiting) 
  Stack: 0x60da1004 - 0x60db4ffc, pointer @ 0x60db4c20 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000100 
  State: Process (Waiting) 
 TEXTCLIP/textclip-handler 52.2  (Waiting) 
  Stack: 0x60ad3004 - 0x60ae2ffc, pointer @ 0x60ae2eb0 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Process (Waiting) 
 compose.task (Waiting) 
  Stack: 0x5a322000 - 0x5a32a000, pointer @ 0x5a329de0 (Cookie OK) 
  Signals: SigRec 0x00000010, SigWait 0x00000000 
  State: Task (Waiting) 
 Workbench (Waiting) 
  Stack: 0x5a3c6004 - 0x5a3d5ffc, pointer @ 0x5a3d5ea0 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Process (Waiting) 
 Workbench DosList Notify (Waiting) 
  Stack: 0x58646004 - 0x58655ffc, pointer @ 0x58655f40 (Cookie OK) 
  Signals: SigRec 0x00003000, SigWait 0x00000100 
  State: Process (Waiting) 
 ramlib (Waiting) 
  Stack: 0x614af004 - 0x614c7ffc, pointer @ 0x614c7f20 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000100 
  State: Process (Waiting) 
 CodeBench NotifyA Process (Waiting) 
  Stack: 0x6040e004 - 0x6044dffc, pointer @ 0x6044d6a0 (Cookie OK) 
  Signals: SigRec 0xa0001000, SigWait 0x00000100 
  State: Process (Waiting) 
 texteditor.gadget Clipboard Server (Waiting) 
  Stack: 0x50b17004 - 0x50b56ffc, pointer @ 0x50b56f00 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000100 
  State: Process (Waiting) 
 TextEditor.mcc clipboard server (Waiting) 
  Stack: 0x570f9004 - 0x570fbffc, pointer @ 0x570fbe90 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000100 
  State: Process (Waiting) 
 BetterString.mcc clipboard server (Waiting) 
  Stack: 0x59005004 - 0x59007ffc, pointer @ 0x59007ee0 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000100 
  State: Process (Waiting) 
 MUI imagespace screen notify (Waiting) 
  Stack: 0x56c3b004 - 0x56c4affc, pointer @ 0x56c4ad70 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000100 
  State: Process (Waiting) 
 ContextMenus Command Dispatcher (Waiting) 
  Stack: 0x570be004 - 0x570cdffc, pointer @ 0x570cdf40 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000000 
  State: Process (Waiting) 
 string.gadget server (Waiting) 
  Stack: 0x58f32004 - 0x58f41ffc, pointer @ 0x58f41db0 (Cookie OK) 
  Signals: SigRec 0x40000000, SigWait 0x00000100 
  State: Process (Waiting) 
 Workbench Clipboard Server (Waiting) 
  Stack: 0x586a3004 - 0x586b2ffc, pointer @ 0x586b2f00 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000100 
  State: Process (Waiting) 
 CodeBench (Ready) 
  Stack: 0x603b2004 - 0x603f1ffc, pointer @ 0x603eef40 (Cookie OK) 
  Signals: SigRec 0x00000010, SigWait 0x00080110 
  State: Process (Ready) 
 AmiDock (Waiting) 
  Stack: 0x57bb1004 - 0x57bc0ffc, pointer @ 0x57bbfeb0 (Cookie OK) 
  Signals: SigRec 0x00000010, SigWait 0x00000000 
  State: Process (Waiting) 
 RinghioServer (Waiting) 
  Stack: 0x583c0004 - 0x583dfffc, pointer @ 0x583df3a0 (Cookie OK) 
  Signals: SigRec 0xd8001000, SigWait 0x00000100 
  State: Process (Waiting) 
 TCP/IP Control (Waiting) 
  Stack: 0x5f57b004 - 0x5f66fffc, pointer @ 0x5f66fdc0 (Cookie OK) 
  Signals: SigRec 0xf8009080, SigWait 0x00000000 
  State: Process (Waiting) 
 hub.usbfd (Waiting) 
  Stack: 0x6fd76004 - 0x6fd7dffc, pointer @ 0x6fd7df00 (Cookie OK) 
  Signals: SigRec 0x30000000, SigWait 0x00000000 
  State: Task (Waiting) 
 ppp-ethernet.device (Waiting) 
  Stack: 0x57e53004 - 0x57f47ffc, pointer @ 0x57f47e90 (Cookie OK) 
  Signals: SigRec 0xdc000000, SigWait 0x00000100 
  State: Process (Waiting) 
 screenblanker.library timing dispatcher (Waiting) 
  Stack: 0x57129004 - 0x57138ffc, pointer @ 0x57138e80 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 Exchange (Waiting) 
  Stack: 0x5824f004 - 0x5825effc, pointer @ 0x5825ed30 (Cookie OK) 
  Signals: SigRec 0xc000d000, SigWait 0x00000100 
  State: Process (Waiting) 
 datatypes.library (Waiting) 
  Stack: 0x61153004 - 0x61162ffc, pointer @ 0x61162f10 (Cookie OK) 
  Signals: SigRec 0x00001100, SigWait 0x00000000 
  State: Process (Waiting) 
 Hollywood requester task (Waiting) 
  Stack: 0x4fc1c004 - 0x4fc2bffc, pointer @ 0x4fc2bf30 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Process (Waiting) 
 Hollywood wait task (Waiting) 
  Stack: 0x500c2004 - 0x500d1ffc, pointer @ 0x500d1f10 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000000 
  State: Process (Waiting) 
 Community HeartBeat Process (Waiting) 
  Stack: 0x5a190004 - 0x5a1cfffc, pointer @ 0x5a1cff20 (Cookie OK) 
  Signals: SigRec 0xa0001000, SigWait 0x00000100 
  State: Process (Waiting) 
 RichEditor Clip Server (Waiting) 
  Stack: 0x52b62004 - 0x52ba1ffc, pointer @ 0x52ba1f10 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 TCP/IP Superserver (Waiting) 
  Stack: 0x5f674004 - 0x5f768ffc, pointer @ 0x5f7689f0 (Cookie OK) 
  Signals: SigRec 0xd0000080, SigWait 0x00000000 
  State: Process (Waiting) 
 ContextMenus (Waiting) 
  Stack: 0x57151004 - 0x57160ffc, pointer @ 0x57160c50 (Cookie OK) 
  Signals: SigRec 0xe0001000, SigWait 0x00000100 
  State: Process (Waiting) 
 CCClient [CCClient] (Waiting) 
  Stack: 0x53bff004 - 0x53c3effc, pointer @ 0x53c3ea00 (Cookie OK) 
  Signals: SigRec 0xd8000000, SigWait 0x00000100 
  State: Process (Waiting) 
 CodeBench File Notify Process (Waiting) 
  Stack: 0x5168c004 - 0x5169bffc, pointer @ 0x5169b6d0 (Cookie OK) 
  Signals: SigRec 0x80000100, SigWait 0x00000000 
  State: Process (Waiting) 
 application.library messageserver (Waiting) 
  Stack: 0x612c0000 - 0x612c0fa0, pointer @ 0x612c0f10 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000000 
  State: Task (Waiting) 
 ScreenBlankerEngine (Waiting) 
  Stack: 0x57aac004 - 0x57abbffc, pointer @ 0x57abbbe0 (Cookie OK) 
  Signals: SigRec 0xd8001000, SigWait 0x00000100 
  State: Process (Waiting) 
 OWB [OWB] (Waiting) 
  Stack: 0x5671e004 - 0x56812ffc, pointer @ 0x56812c80 (Cookie OK) 
  Signals: SigRec 0x0f00d000, SigWait 0x00000180 
  State: Process (Waiting) 
 [OWB] IconDatabase (Waiting) 
  Stack: 0x56a8a004 - 0x56b7effc, pointer @ 0x56b7eeb0 (Cookie OK) 
  Signals: SigRec 0x00000010, SigWait 0x00000100 
  State: Process (Waiting) 
 TCP/IP Configuration (Waiting) 
  Stack: 0x5f76d004 - 0x5f861ffc, pointer @ 0x5f861e10 (Cookie OK) 
  Signals: SigRec 0xf8003000, SigWait 0x00000000 
  State: Process (Waiting) 
 aampexecv_httpd_1_2 [AAMP:Common/bin/httpd] (Waiting) 
  Stack: 0x58435004 - 0x5861dffc, pointer @ 0x5861d7e0 (Cookie OK) 
  Signals: SigRec 0x00001080, SigWait 0x00000100 
  State: Process (Waiting) 
 « IPrefs » (Waiting) 
  Stack: 0x61381004 - 0x61390ffc, pointer @ 0x61390980 (Cookie OK) 
  Signals: SigRec 0x0000f000, SigWait 0x20000000 
  State: Process (Waiting) 
 Mixer (Waiting) 
  Stack: 0x580de004 - 0x580edffc, pointer @ 0x580edc70 (Cookie OK) 
  Signals: SigRec 0x70001000, SigWait 0x00000100 
  State: Process (Waiting) 
 ASYNCWB (Waiting) 
  Stack: 0x57b55004 - 0x57b64ffc, pointer @ 0x57b64e80 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000100 
  State: Process (Waiting) 
 aampexecv_mysqld_1_1 [AAMP:Common/libexec/mysqld] (Waiting) 
  Stack: 0x5f95f004 - 0x5fa53ffc, pointer @ 0x5fa537a0 (Cookie OK) 
  Signals: SigRec 0x00001080, SigWait 0x00000100 
  State: Process (Waiting) 
 FKey (Waiting) 
  Stack: 0x5821f004 - 0x5822effc, pointer @ 0x5822ed20 (Cookie OK) 
  Signals: SigRec 0xc000d000, SigWait 0x00000000 
  State: Process (Waiting) 
 RAWBInfo (Waiting) 
  Stack: 0x57adc004 - 0x57aebffc, pointer @ 0x57aebec0 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000100 
  State: Process (Waiting) 
 DefIcons (Waiting) 
  Stack: 0x57b39004 - 0x57b48ffc, pointer @ 0x57b48dc0 (Cookie OK) 
  Signals: SigRec 0x80009000, SigWait 0x00000100 
  State: Process (Waiting) 
 TCP/IP Log (Waiting) 
  Stack: 0x5f866004 - 0x5f95affc, pointer @ 0x5f95af00 (Cookie OK) 
  Signals: SigRec 0x80003000, SigWait 0x00000000 
  State: Process (Waiting) 
 Background CLI [AAMP:Common/bin/xlaunch] (Waiting) 
  Stack: 0x601b4004 - 0x6039cffc, pointer @ 0x6039bf70 (Cookie OK) 
  Signals: SigRec 0x00000100, SigWait 0x00000000 
  State: Process (Waiting) 
 Background CLI [C:AmigaKeyRemapper] (Waiting) 
  Stack: 0x609a1004 - 0x609b0ffc, pointer @ 0x609b0e60 (Cookie OK) 
  Signals: SigRec 0x00001000, SigWait 0x00000100 
  State: Process (Waiting) 
 ConClip (Waiting) 
  Stack: 0x60a5b004 - 0x60a6affc, pointer @ 0x60a6aeb0 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Process (Waiting) 
 USB stack Process (Waiting) 
  Stack: 0x60f84004 - 0x60f93ffc, pointer @ 0x60f93ee0 (Cookie OK) 
  Signals: SigRec 0x80001000, SigWait 0x00000100 
  State: Process (Waiting) 
 DST watcher (Waiting) 
  Stack: 0x6129b004 - 0x612aaffc, pointer @ 0x612aaf10 (Cookie OK) 
  Signals: SigRec 0xc0000000, SigWait 0x00000000 
  State: Process (Waiting) 
 hub.usbfd (Waiting) 
  Stack: 0x6fd5a004 - 0x6fd61ffc, pointer @ 0x6fd61f00 (Cookie OK) 
  Signals: SigRec 0x30000000, SigWait 0x00000000 
  State: Task (Waiting) 
 hub.usbfd (Waiting) 
  Stack: 0x6fd82004 - 0x6fd89ffc, pointer @ 0x6fd89f00 (Cookie OK) 
  Signals: SigRec 0x30000000, SigWait 0x00000000 
  State: Task (Waiting) 
 Jack (Crashed) 
  Stack: 0x5398b000 - 0x539cb020, pointer @ 0x539c9330 (Cookie OK) 
  Signals: SigRec 0x00000010, SigWait 0x00000180 
  State: Process (Crashed) 
 ramlib.support (Waiting) 
  Stack: 0x614cc004 - 0x614e4ffc, pointer @ 0x614e4f00 (Cookie OK) 
  Signals: SigRec 0x80005000, SigWait 0x00000100 
  State: Process (Waiting) 
 dos_signal_server (Waiting) 
  Stack: 0x6fcd8004 - 0x6fcdaffc, pointer @ 0x6fcdaf10 (Cookie OK) 
  Signals: SigRec 0x0000f000, SigWait 0x00000000 
  State: Process (Waiting) 
 Picasso96 (Waiting) 
  Stack: 0x613b9004 - 0x613c8ffc, pointer @ 0x613c8d70 (Cookie OK) 
  Signals: SigRec 0x80000000, SigWait 0x00000000 
  State: Process (Waiting) 
 dos_appdir_server (Waiting) 
  Stack: 0x6fcdf004 - 0x6fce1ffc, pointer @ 0x6fce1d40 (Cookie OK) 
  Signals: SigRec 0x80005000, SigWait 0x00000000 
  State: Process (Waiting) 
 idle.task (Ready) 
  Stack: 0x6ffd8000 - 0x6ffd9000, pointer @ 0x6ffd8fd0 (Cookie OK) 
  Signals: SigRec 0x00000000, SigWait 0x00000000 
  State: Task (Ready) 
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: New OS4.1 Kernel and Hollywood DSI

Post by airsoftsoftwair »

Sorry, I was on holiday for the past two weeks. Can you please provide a very small example script? Then I'll try to reproduce the issue here.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

I hope you a great holiday :-)

Yeah its been a nightmare recently, nearly every time I run Jack like after a rebuild it will DSI. Often its a MUI error that can be 'ignored'. Whatever the other DSI error is cannot be ignored, the app just remains in memory eating resources.

I'll try and narrow with small scripts - this and the Mui issue on the other thread. Obviously this kernel related one is quite major. Maybe worth asking Ssolie Andreas what exactly has changed.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

Right just started Jack +5 times and no. problem.

All my DownloadFile() calls are first preceeded by IsOnline() - but which of these (if either) is causing the DSI to occur if indeed this is the problem :(

Going to try and another session again now I have left the IP stack 'idle'
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

Okay after 20+ restarts I finally got a DSI.. need to keep probing!
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

Okay, narrowed it down, there is definitely something going wrong in my base:DownloadFile() routing that was never there before. Stripping down code.. will paste below.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: New OS4.1 Kernel and Hollywood DSI

Post by djrikki »

Code: Select all

Global base, locale, application

application = {}
base = {}
locale = {}

application.t = "T:"

locale[4] = "OK"
locale[122] = "Access error"
locale[254] = "The server reported 404 - File not found."
locale[344] = "Sorry, there has been a connection problem."
locale[663] = "Unknown"
locale[716] = "Sorry, Jack was unable to reach the internet.  Please try again later."

;; base:StripBoldandUnderlineFormatting(gadgets$)
; Removes underline characters from a string, used when displaying locales via a SystemRequest call for example
Function base:StripBoldandUnderlineFormatting(gadgets$)
    gadgets$ = ToString(gadgets$)

    If FindStr(gadgets$,"[u]") > -1
        gadgets$ = ReplaceStr(gadgets$,"[u]","")
    EndIf

    If FindStr(gadgets$,"[/u]") > -1
        gadgets$ = ReplaceStr(gadgets$,"[/u]","")
    EndIf
    
    If FindStr(gadgets$,"[b]") > -1
        gadgets$ = ReplaceStr(gadgets$,"[b]","")
    EndIf

    If FindStr(gadgets$,"[/b]") > -1
        gadgets$ = ReplaceStr(gadgets$,"[/b]","")
    EndIf

    Return (gadgets$)
EndFunction

Function base:SystemRequest(title,body,gadgets,icon)
	Local res = SystemRequest(base:StripBoldandUnderlineFormatting(title),base:StripBoldandUnderlineFormatting(body),base:StripBoldandUnderlineFormatting(gadgets),icon)
	Return (res)
EndFunction

Function base:DownloadFile(url, savefile, callfunction, userdata, nowarn)
    ExitOnError(False)
    Local connected, status, handle, count
 
 	debugprint("Check online")   
    Local online = base:IsOnline(122,nowarn)   
    
    If online = True
        debugprint("Check online = Yes") 
        connected = True
	    If callfunction <> nil
			handle, count = DownloadFile(url, {File = savefile, Fail404 = True, SilentFail = True}, callfunction, userdata )
		Else
	    	    
			handle, count = DownloadFile(url, {File = savefile, Fail404 = True, SilentFail = True} )
		EndIf

		Local code = GetLastError()
				
		; 404 File Not Found or other error in downloading file
		If code > 0 or count = -1
		    status = False
		    If nowarn = False ; Warning message can be received if function called via an arexx call
			    If code > 0
				    base:SystemRequest(locale[122],locale[254],locale[4],#REQICON_WARNING)
			    Else
				    base:SystemRequest(locale[122],locale[344],locale[4],#REQICON_WARNING)
				EndIf
			EndIf
		Else
		    status = True
		EndIf		
	Else
	    connected = False
	    status = False
	    handle = ""
	    count = 0
	EndIf

	ExitOnError(True)
	Return (connected, status, handle, count)
EndFunction
    
Function base:FindAndReplace(data$,find$,replace$)
    If Findstr(data$,find$) > -1
        data$ = ReplaceStr(data$,find$,replace$)
    EndIf
    Return (data$)
EndFunction

Function base:IsOnline(message,nowarn)
    If IsOnline() = True
        Return(True)
   	Else
   	    If nowarn = False
		    base:SystemRequest(locale[message],locale[716],locale[4],#REQICON_INFORMATION)
		EndIf
	    Return(False)
	EndIf
EndFunction

Function base:GetIPAddress()
 	Local connected, status, data$, count
 	DebugPrint("Downloadfile()")
 	connected, status, data$, count = base:DownloadFile("http://checkip.dyndns.org", application.t .. "jack_localip", nil, nil, True )
 	DebugPrint("Downloadfile() success")
	data$ = nil
    
    If connected = True and status = True 
	    If Exists(application.t .. "jack_localip") = True
	    	OpenFile(1,application.t .. "jack_localip")
			While Not Eof(1) or FindStr(localip,"Current IP Address:") = -1
				localip = ReadLine(1)
			Wend
				
			localip = MidStr( localip,FindStr(localip,"Current IP Address:")+20,StrLen(localip) )
			localip = base:FindAndReplace(localip,"</body></html>","")
	
	        CloseFile(1)
	        Return( localip )
	    Else
	        Return( locale[663] )
	    EndIf
	Else
	    Return ( locale[663] )
    EndIf
EndFunction
    
localip = base:GetIPAddress()

debugprint(localip)
Normally you should see 3 debugprint messages, the last one containing the IP address. However, after a few runs you will get a DSI appearing.

Foreinstance something like this:

Code: Select all

Downloadfile()
Check online
Check online = Yes
Downloadfile() success
80.5.186.220
The DSI occurs after the debugprint message 'Check online = Yes' appears in a console.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply