Web server issue "ASP Error: Undefined
#16
I applied the patches mentioned here ([url="http://www.prolix.ro/dokuwiki/documentation:goahead:general"]http://www.prolix.ro/dokuwiki/documentation:goahead:general[/url]) for 64-bit compatibility but got the same ASP error in version 2.1.8. I don't know if that rules out 64-bit hardware since it still seems like the common factor.
Reply
#17
I'm running on a 64 bit system and have the same problem.
Reply
#18
It's a 64bit problem for sure.

Compile their source adding -m32 to CFLAGS in the Makefile. This compiles for a 32bit target. Now run the server. It works perfectly. This is no help to XBMC obviously due to linking problems, but shows the issue at hand.

I also applied all of the patches on the site, and also got no result.

Will continue digging.

TheUni
Reply
#19
I am having the same problem with the PPA install for Ubuntu 8.10 64bit. Is there any progress with this? Is there anything I can contribute to help resolve it. Even Third party web interfaces such as the Nokia 770 interface fails.

JKIng
Reply
#20
Same problem here with Ubuntu 8.10 amd64.

XBMC installed version:

Code:
Package: xbmc
New: yes
State: installed
Automatically installed: yes
Version: 8.10b2-hardy1

Error:

Code:
ASP Error: Undefined procedure isset At line 1, line => if (isset("Action")

if (isset("Action")) {
        if (Action == "UnqueMusicplaylist") {
            var ItemCount;
            var z;
            ItemCount = xbmcCommand("catalog","items");
            for (z = 0;  z < ItemCount;  z = z + 1) {
                // dirty workaround, cause unque, + z won't work
                xbmcCommand("navigate", Action);
                xbmcCommand("catalog","unque");
            }
            Action = "musicplaylist";          
        }
        xbmcCommand("navigate", Action);
    }
    
    if (isset("command")) {
        // execute a few commands before listing the contents
        if (command == "select") {
            xbmcCommand("catalog", "select," + item);
        } else if (command == "unque") {
            xbmcCommand("catalog", "unque," + item);
        }
    }

    var navigatorstate;
    var BannerClass;
    var InfoClass;
    var BackgroundClass;
    var ItemFileClass;
    navigato

xbmc.log info starting with stop/start of webserver:

Code:
05:24:24 T:3398375424 M:371068928  NOTICE: Webserver: Stopped...
05:24:24 T:3398375424 M:371068928  NOTICE: Webserver: Starting...
05:24:24 T:3398375424 M:371068928   DEBUG: xbmcHttpShim starts
05:24:24 T:1137072464 M:371068928   DEBUG: Running thread 1137072464
05:24:24 T:1137072464 M:371068928   DEBUG: thread start, auto delete: 0
05:24:24 T:1137072464 M:371068928    INFO: WebServer: Server starting using /usr/share/xbmc/web on 192.168.1.102:8080
05:24:24 T:1137072464 M:371068928   DEBUG: DB: Registering database table <users>
05:24:24 T:1137072464 M:371068928   DEBUG: DB: Registering database table <groups>
05:24:24 T:1137072464 M:371068928   DEBUG: DB: Registering database table <access>
05:24:24 T:1137072464 M:371068928   DEBUG: UM: Loading User Configuration from file <umconfig.txt>
05:24:24 T:1137072464 M:371068928   DEBUG: DB: About to read data file </usr/share/xbmc/web/umconfig.txt>
05:24:24 T:1137072464 M:371068928   DEBUG: DB: Failed to stat persistent data file.
05:24:24 T:1137072464 M:371068928   DEBUG: webs: Listening for HTTP requests at address 192.168.1.102:8080
05:24:24 T:1137072464 M:371068928  NOTICE: Webserver: Started
05:24:24 T:3398375424 M:371068928   DEBUG: UM: Writing User Configuration to file <umconfig.txt>
05:24:24 T:3398375424 M:371068928   DEBUG: DB: About to save database to file
05:24:24 T:3398375424 M:371068928   DEBUG: WARNING: Failed to open file /usr/share/xbmc/web/data.tmp
05:24:24 T:3398375424 M:371068928   DEBUG: UM: Writing User Configuration to file <umconfig.txt>
05:24:24 T:3398375424 M:371068928   DEBUG: DB: About to save database to file
05:24:24 T:3398375424 M:371068928   DEBUG: WARNING: Failed to open file /usr/share/xbmc/web/data.tmp
05:24:24 T:3398375424 M:371068928   DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT
05:24:24 T:3398375424 M:371068928   DEBUG: Settings - Network
05:24:24 T:3398375424 M:371068928   DEBUG: -------------------
05:24:25 T:3398375424 M:382976000   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
05:24:25 T:3398375424 M:382976000   DEBUG: ------------------- GUI_MSG_WINDOW_INIT
05:24:25 T:3398375424 M:382976000   DEBUG: Home
05:24:25 T:3398375424 M:382976000   DEBUG: -------------------
05:24:25 T:3398375424 M:382976000    INFO: Loading skin file: Home.xml
05:24:25 T:3398375424 M:382976000   DEBUG: Load Home.xml: 57.27ms
05:24:25 T:3398375424 M:382976000   DEBUG: Alloc resources: 58.87ms (58.78 ms skin load, 0.06 ms preload)
05:24:25 T:3398375424 M:382976000   DEBUG: Load HomeBGSystemMid.png: 14.9ms (bundled)
05:24:25 T:3398375424 M:382275584   DEBUG: Load HomeBGSystemRight.png: 18.7ms (bundled)
05:24:25 T:3398375424 M:380211200   DEBUG: Load HomeBGWeatherMid.png: 24.5ms (bundled)
05:24:25 T:3398375424 M:378073088   DEBUG: Load HomeBGWeatherRight.png: 22.8ms (bundled)
05:24:25 T:3398375424 M:377446400   DEBUG: Load HomeRightOverlay.png: 27.1ms (bundled)
05:24:25 T:3398375424 M:377446400   DEBUG: Load HomeBGSystemLeftLow.png: 1.5ms (bundled)
05:24:25 T:3398375424 M:377446400   DEBUG: Load HomeBGWeatherLeftLow.png: 2.4ms (bundled)
05:24:25 T:3398375424 M:368046080   DEBUG: Load HomeBladeLeft.png: 20.7ms (bundled)
05:24:25 T:3398375424 M:368046080   DEBUG: Load HomeBladeLeftMenuOverlay.png: 3.3ms (bundled)
05:24:25 T:3398375424 M:368046080   DEBUG: Load HomeMenuDiffuse.png: 0.4ms (bundled)
05:24:25 T:3398375424 M:368046080   DEBUG: Load ClockBackground.png: 0.3ms (bundled)
05:24:25 T:3398375424 M:368046080   DEBUG: Load HomeRSS.png: 0.2ms (bundled)
05:24:25 T:3398375424 M:368046080   DEBUG: Load BlackGradient.png: 0.1ms (bundled)
05:24:25 T:3398375424 M:368021504   DEBUG: Load HomeBladeSub.png: 3.6ms (bundled)
05:24:25 T:3398375424 M:368021504   DEBUG: Load MediaStreamLogo.png: 0.4ms (bundled)
05:24:25 T:3398375424 M:368021504   DEBUG: Load HomeBladeSubNF2.png: 0.1ms (bundled)
05:24:25 T:3398375424 M:368021504   DEBUG: Load HomeBladeSubFO2.png: 1.3ms (bundled)
05:24:38 T:1137072464 M:368021504   DEBUG: webs: accept request
05:24:38 T:1137072464 M:368021504   DEBUG: webs: accept request
Reply
#21
This is a problem with the GoAhead webserver and 64bit hosts. I have tried and tried to compile a source version from GoAhead and is fails everytime on 64bit boxes but works fine on 32bit. Unfortunately Development for GoAhead has stopped is appears.

JKing
Reply
#22
Ahh thanks for the try jking. Maybe compiling xbmc in a 32-bit chroot would work? I'll try that out later.

I was trying different web interface skins to see if I could get anything at all loaded. This one worked: http://trac.xbmc.org/browser/branches/li...?rev=15667

I unzipped it to /usr/share/xbmc/web and ~/.xbmc/web and pointed my browser to http://xbox:8080/home.asp It loaded what looks like the original GoAhead interface. Everything seems to work fine within it. (all pages loaded fine, seems like the web server itself is working) Of course that doesn't help since I can't control XBMC with it, heh.

I was originally using the PM web interface skin when I was getting that ASP error.

Anyone know of other ways to control XBMC remotely through Linux that doesn't involve the HTTP API?
Reply
#23
synergy works great....http://synergy2.sourceforge.net/

JKing
Reply
#24
I spent about 5-6 hours last night working on the source code for the GoAhead webserver in XBMC. FYI, the ticket for tracking this issue is here:

http://trac.xbmc.org/ticket/4970

Alas, I don't have posting privileges there, so I'm going to have to post my update here in hopes somebody can copy it there.

First off, I was unable to fix all the bugs, but I did fix a couple. As you might expect, the original author made multiple assumptions that sizeof(int) == sizeof(void*) (or whatever kind of pointer), where in reality sizeof(long) == sizeof(void*). I traced the bug that caused the "isset" error to h.c, where a generic framework called hAlloc/hFree adds and removes entries to variable-sized tables -- this is used by the symbol table framework. Unfortunately, that code does inline booking in the "table" using two ints (which are at the front of the table) and bugginess ensues from there on 64-bit platforms.

So that got around that bug, but there are others. For example, multiple callback functions take an "int arg" as an extra parameter. So I tried fixing some of those.

The end result is that hitting the webserver starts bringing up the interface -- but then the server thread crashes (i.e. the connection hangs with the interface partially displayed). Here's my patch as it exists now:

Code:
(forum says it's too long!  Anyone know where I can send a patch?!)

I apologize for the ugliness of this initial patch. I just now discovered the trace() function in the code, so I may work on converting my debugging output to use that function and post another patch.
Reply
#25
Attach the patch to the ticket on trac.
Reply
#26
I would love to see this fixed. I am also running into the exact same error on a 64-bit machine.
Reply
#27
I'd suggest #5570 is the way to resolving GoAhead's shortcomings. AppWeb has a GoAhead compatibility interface available.
Reply
#28
Not that simple I'm afraid - it requires some development work. althekiller apparently has it at the stage where it compiles, but it doesn't work yet.

http://trac.xbmc.org/log/branches/althekiller
Reply
#29
just as a 'casual reminder': is this going to be fixed in 9.04? The daily builds are still broken on this bit on amd64 systems.
Reply
#30
No.
Reply

Logout Mark Read Team Forum Stats Members Help
Web server issue "ASP Error: Undefined0