NetTalk Central

Author Topic: nettalk 14.38 Webserver crashes sometimes  (Read 597 times)

AtoB

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
    • Email
nettalk 14.38 Webserver crashes sometimes
« on: November 10, 2026, 02:40:33 AM »
using c10.0.12412 and nettalk 14.38

unexplainable situation: last summer I converted a long time running 12.45 nettalk server to 14.38 and shipped it to one of my smaller clients (as a test case).

This webserver has been running for a couple of months flawlessly and last week it (randomly) crashed for 5/6 times in a timeframe of minutes (it nicely rebooted itself and then crashed again. This morning it did the same: I got 5 crash dumps in a frame of two minutes. I've attached one as an example, but the all look rather the same.

To me (no expert) it looks that some type/kind of requests (fired from who knows where) apparently lets the server crash (but again: this is guessing)

Questions:

1 - does anybody know what this line points to?

[01] 01207248h    regel=204    Proc=RaiseLong    src=wxeh.cpp    module=G:\broekwar\webapp\ClaRUN.dll 10.0.12412

2 - does anybody have a clue what might be causing this and/or where to start looking ...?

TIA

Regards,
Ton

seanh

  • Full Member
  • ***
  • Posts: 105
    • View Profile
    • Email
Re: nettalk 14.38 Webserver crashes sometimes
« Reply #1 on: November 12, 2026, 03:23:49 PM »
Have you compiled in debug made and used the debug version of the RTL?
That will usually give you more information.

Also what version of clarion? and are you using secwin or the IMDD?

AtoB

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
    • Email
Re: nettalk 14.38 Webserver crashes sometimes
« Reply #2 on: November 12, 2026, 11:57:55 PM »
I'm not using secwin or IMDD, and it's c10 (12412).

As I do have a gpf-report I assume it's compiled in debug mode, but are there ways to extract more info out of it?

Thanks

osquiabro

  • Hero Member
  • *****
  • Posts: 728
    • View Profile
    • Email
Re: nettalk 14.38 Webserver crashes sometimes
« Reply #3 on: November 13, 2026, 03:27:33 AM »
Verify that all templates required by NT are updated to the latest version.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11344
    • View Profile
Re: nettalk 14.38 Webserver crashes sometimes
« Reply #4 on: November 17, 2026, 03:24:23 PM »
the problem seems to be in applaunch004.clw.  I'm guessing that's your WebHandler?
you would likely need to post that to get more information.


AtoB

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
    • Email
Re: nettalk 14.38 Webserver crashes sometimes
« Reply #5 on: November 17, 2026, 11:12:20 PM »
Hi Bruce,

then I problably know what is causing this and this is due to my own actions (see attached screenshot with code I inserted, line number might be off ... as the gpf report is from an exe I shipped months ago)

I'm trying to send a resource (file) when wsResources/resources is hit. It then calls "resources" (to validate api-key and the lot) which is a netwebservicemethod procedure.

I guess sometimes this doesn't return the correct data ... and crashes the server.

What I'm actually trying to accomplish is "send" the file from within the netwebservicemethod procedure (I commented out the line that was intended for this purpose, but adding the sendfile there doesn't work (I think it starts a recursion).

If you can pinpoint me in the right direction with the latter, the code in NetwebWorker can be removed

This is the part that now returns the filename to serve (SELF.rData is a StringTheory object that is returned to the call, NetWebWorker in this case and now contains the actual filename to be served):


  IF lDownLoadOk
    IF ~EXISTS(lFnResourceFull)
      lDownloadOk = False
    END
  END
 
  IF lDownloadOk
    p_web.HeaderDetails.ContentDisposition = 'attachment; filename="' & CLIP(lFnResource) &'"' 
    p_web.ReplyContentType = p_web.GetContentType(lFnResource)
 
    SELF.rData.setvalue('fn:' & lFnResourceFull)
    ODS('value: ' & CLIP(SELF.rData.GetValue()))
    !SELF.rP_Web._SendFile(lFnResourceFull)
   
    SELF.SkipBuild  = True
    SELF.SkipSend   = True
    SELF.ReturnData = True
   
  ELSE
    SELF.rP_Web.SendError (400, 'Bad Request', 'The requested file was not valid') ! Bad Request
  END

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11344
    • View Profile
Re: nettalk 14.38 Webserver crashes sometimes
« Reply #6 on: Today at 07:56:43 AM »
If you want the result to be "just a file" and not an API response (with the file embedded in XML or JSON) then don't use a WebServiceMethod.
Use a NetWebPage instead. See File Download example.