1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

kag not starting in linux

Discussion in 'General Help' started by Doctorly, Jun 25, 2011.

  1. Doctorly

    Doctorly Guest

    Alright, I have seen one other post with this while I searched for a year on google. Is there a fix for this?

    Code:
    Running KAG
    mv: cannot stat `KAG.tmp': No such file or directory
    PID: 2563
    Starting in directory: ./
    Engine (build: 67 version: 0.85A)
    
    Downloading checksums from http://dl.dropbox.com/u/6397016/kag_linux/App/version.txt
    Downloading http://dl.dropbox.com/u/6397016/kag_linux/App/version.txt...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  2094  100  2094    0     0   3761      0 --:--:-- --:--:-- --:--:--  5982
    Version file the same (key matches)
    Using file 'Base/Juxta.so'
    Precaching files.
    CBitStream writebit length b49; B7
    CBitStream writebit length b50; B7
    CBitStream writebit length b51; B7
    CBitStream writebit length b52; B7
    CBitStream writebit length b53; B7
    CBitStream writebit length b54; B7
    CBitStream writebit length b55; B7
    CBitStream writebit length b56; B7
    CBitStream writebit length b57; B8
    SIZE 0
    READ d: 111
    READ d: 11
    READ d: 0.123457
    READ d: 1
    READ d: 666
    READ d: Imbedded
    READ d: *Rapunzel!!!!
    CBitStream length b2706; B339 ----------
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    SIZE 0
    READ d: 111
    READ d: 11
    READ d: 0.123457
    READ d: 1
    READ d: 666
    READ d: Imbedded
    READ d: *Rapunzel!!!!
    CBitStream length b2706; B339 ----------
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    SIZE 0
    READ d: 111
    READ d: 11
    READ d: 0.123457
    READ d: 1
    READ d: 666
    READ d: Imbedded
    READ d: *Rapunzel!!!!
    CBitStream length b2706; B339 ----------
    READ c: 1
    READ c: 10
    READ c: 300
    READ c: 0
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: Testing 123
    READ c: Wide String 123
    READ c: 
    READ c: 
    READ c: 
    READ c: -1
    BUFFER
    0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,READ c: 111
    READ c: 11
    READ c: 0.123457
    READ c: 1
    READ c: 666
    READ c: Imbedded
    READ c: *Rapunzel!!!!
    READ c: 777
    Buffer ended
    
    COMPRESSION TEST (FASTLZ); SIZE BEFORE 339; bits 2706
    SIZE AFTER LZ 340; bits 2714
    SIZE REVERT 340; bits 2714
    
    
    SIZE largebs AFTER LZ 396280; before 400000
    SIZE largebs REVERT 400000; before 400000
    
    SIZE smallbs AFTER LZ 2; before 1
    SIZE smallbs REVERT 2; before 1
    
    SIZE smallbs AFTER LZ 3; before 2
    SIZE smallbs REVERT 3; before 2
    COMP READ c: 1
    COMP READ c: 10
    COMP READ c: 300
    Success: 0 tests passed.
    Test time: 0.00 seconds.
    ./rungame.sh: line 5:  2563 Segmentation fault      ./KAG autostart Scripts/autostart.gm autoconfig Scripts/autoconfig.gm
    
    What's up with the "mv: cannot stat `KAG.tmp': No such file or directory" line in there? Is there a path in the launcher that I can fix?
     
  2. scombinator

    scombinator Guest

    The mv error is expected - It is there to allow recovery from a partial update, KAG is backed up to KAG.tmp and deleted after a successful update, so if KAG.tmp exists it will copy over the partial copy.

    Here's a segfault with a stacktrace, we really need a debug version as well.

    I'm on 32bit archlinux.

    Code:
    Engine (build: 67 version: 0.85A)
    
    Downloading checksums from http://dl.dropbox.com/u/6397016/kag_linux/App/version.txt
    Downloading http://dl.dropbox.com/u/6397016/kag_linux/App/version.txt...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  2094  100  2094    0     0   1442      0  0:00:01  0:00:01 --:--:--  4632
    Version file the same (key matches)
    Using file 'Base/Juxta.so'
    Precaching files.
    CBitStream writebit length b49; B7
    CBitStream writebit length b50; B7
    CBitStream writebit length b51; B7
    CBitStream writebit length b52; B7
    CBitStream writebit length b53; B7
    CBitStream writebit length b54; B7
    CBitStream writebit length b55; B7
    CBitStream writebit length b56; B7
    CBitStream writebit length b57; B8
    SIZE 0
    READ d: 111
    READ d: 11
    READ d: 0.123457
    READ d: 1
    READ d: 666
    READ d: Imbedded
    READ d: *Rapunzel!!!!
    CBitStream length b2706; B339 ----------
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    SIZE 0
    READ d: 111
    READ d: 11
    READ d: 0.123457
    READ d: 1
    READ d: 666
    READ d: Imbedded
    READ d: *Rapunzel!!!!
    CBitStream length b2706; B339 ----------
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    CBitStream writebit length b2706; B339
    SIZE 0
    READ d: 111
    READ d: 11
    READ d: 0.123457
    READ d: 1
    READ d: 666
    READ d: Imbedded
    READ d: *Rapunzel!!!!
    CBitStream length b2706; B339 ----------
    READ c: 1
    READ c: 10
    READ c: 300
    READ c: 0
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: 1
    READ c: Testing 123
    READ c: Wide String 123
    READ c: 
    READ c: 
    READ c: 
    READ c: -1
    BUFFER
    0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,READ c: 111
    READ c: 11
    READ c: 0.123457
    READ c: 1
    READ c: 666
    READ c: Imbedded
    READ c: *Rapunzel!!!!
    READ c: 777
    Buffer ended
    
    COMPRESSION TEST (FASTLZ); SIZE BEFORE 339; bits 2706
    SIZE AFTER LZ 340; bits 2714
    SIZE REVERT 340; bits 2714
    
    
    SIZE largebs AFTER LZ 396280; before 400000
    SIZE largebs REVERT 400000; before 400000
    
    SIZE smallbs AFTER LZ 2; before 1
    SIZE smallbs REVERT 2; before 1
    
    SIZE smallbs AFTER LZ 3; before 2
    SIZE smallbs REVERT 3; before 2
    COMP READ c: 1
    COMP READ c: 10
    COMP READ c: 300
    Success: 0 tests passed.
    Test time: 0.00 seconds.
    
    Program received signal SIGSEGV, Segmentation fault.
    0xb72ae907 in CIrrlichtTask::UpdateNow() () from Base/Juxta.so
    (gdb) bt
    #0  0xb72ae907 in CIrrlichtTask::UpdateNow() () from Base/Juxta.so
    #1  0xb727e7f8 in CIrrlichtTask::Update() () from Base/Juxta.so
    #2  0xb71ecf08 in CKernel::Execute() () from Base/Juxta.so
    #3  0xb7234e7d in CGame::Run(int, char**) () from Base/Juxta.so
    #4  0xb72350d7 in GameDLLInit () from Base/Juxta.so
    #5  0x08050743 in ?? ()
    #6  0x08052005 in ?? ()
    #7  0x080527a9 in ?? ()
    #8  0xb7d34103 in __libc_start_main () from /lib/libc.so.6
    #9  0x0804a8c1 in ?? ()
    (gdb) 
    
     
  3. Doctorly

    Doctorly Guest

    Hmmm, well I am not able to start the game, that is as much as I can get out of it. Do you have any workarounds to get it started? I tried to run in software mode and I turned off the sound.
     
  4. FrozenCow

    FrozenCow Guest

    I had the same issue with the latest version KAG (b67).
    I've done the following:
    Code:
    $ gdb ./KAG autostart Scripts/autostart.gm autoconfig Scripts/autoconfig.gm
    
    which, in the end, resulted in:
    Code:
    Program received signal SIGSEGV, Segmentation fault.
    0xb728a907 in CIrrlichtTask::UpdateNow() () from Base/Juxta.so
    
    I'm also on Archlinux 32bit and I don't know whether this error occurred because of a recent package-update, or game-update. It might help to know what dependencies KAG has? (that would also help making a package for KAG :D)
     
  5. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Did you try to run createversion.sh? It checks for any corrupted files. Then you just run the game once again and it redownloads them.
     
  6. scombinator

    scombinator Guest

    @Furai, I just tried that, I still have segfaults in UpdateNow
     
  7. SimmyD

    SimmyD Guest

    I am having this issue too. Fedora 15 64bit.
     
  8. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    So, I've just booted into my linux to see what's going on with whole KAG not working. I couldn't run it either - actually I could but it never updated to the newest version.
    The fault lied in the wrong naming in version.txt - I can't change it manually cause it's checksummed every time I run KAG to update. Anyway, it can't update cause it request files from dropbox from wrong folder. It should be (...)/kag_x/App/ and so on. Right now it tires to request files from non-existing folder (It actually puts after kag_x/ a dot which indicates current folder in linux) so all the links look like (...)/kag_x/./App and so on - and files cannot be downloaded.


    EDIT: Next found - in the newest file version of autoupdate_linux.cfg it says that the folder from which files should be downloaded is kag_Linux not like before kag_x...

    EDIT2: So I managed to update it to the latest version but it's not working - I guess that the dot in link has nothing to do with files not downloading - it did after all update.

    So I get the same problems now as the people above. I've got 64-bit Ubuntu Natty Narwhal.
     
  9. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Same problem as everyone else :(
     
  10. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    If you run the Linux version now it will download a debug version. Please run it through gdb and tell me what was the output.
     
  11. King

    King Guest

    Help! I updated game to debug version... now ./KAG noautoupdate also has stopped working - segfault!

    Can someone tell me how to use gdb program? Manuals in english - it's difficult for me to know what commands to use. ^^
     
  12. scombinator

    scombinator Guest

    Just attempted to run the debug version and I noticed something. From a fresh unzip of the downloaded kag71_linux.zip, I get:

    Engine (build: 72 version: 0.85A)

    But after updating I have:

    Engine (build: 67 version: 0.85A)

    The downloaded version works if I prevent updating with ./KAG noautoupdate

    Although the mousecursor seems to select the wrong blocks - probably something to do with resizing the window. (Tiling window manager here.)
     
  13. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
  14. Mani

    Mani Shipwright

    Messages:
    10
    That seems to have done the trick, it's working again for me. :) Thanks.
     
  15. King

    King Guest

  16. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    Yes. I'm glad this helped!