project-navigation
Personal tools

Author Topic: Game does not start at all  (Read 24285 times)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Game does not start at all
« Reply #15 on: December 22, 2011, 08:31:36 am »
it looks like it's crashing in VID_GetModeInfo - i will check once i find the time. thanks for reporting.

Offline Kooks

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: Game does not start at all
« Reply #16 on: January 04, 2012, 01:53:10 pm »
Hey there,

had the same log message as joyboy. so i downloaded the frameworks (sdl, sdl_image, sdl_mixer) and put them manually into the ufoai.app. now the app stays in the dock, but it still does not start and i have to terminate it. here is the log entry i usually get:

Date/Time:       2012-01-04 13:44:40 +0100
OS Version:      10.6.8 (Build 10K549)
Architecture:    x86_64
Report Version:  7

Command:         UFO: Alien Invasion
Path:            /Applications/UFOAI.app/Contents/MacOS/ufo
Version:         2.3.1 (2.3.1)
Parent:          launchd [136]

PID:             38100
Event:           hang
Duration:        5.21s (sampling started after 2 seconds)
Steps:           12 (100ms sampling interval)

Pageins:         1
Pageouts:        0


Process:         ufo [38100]
Path:            /Applications/UFOAI.app/Contents/MacOS/ufo
UID:             501

  Thread ffaa8      DispatchQueue 100
  User stack:
    12 start + 54 (in ufo) [0x2886]
      12 main + 247 (in ufo) [0x16a794]
        12 Qcommon_Init + 1563 (in ufo) [0xfac33]
          12 CL_Init + 508 (in ufo) [0x147bc]
            12 VID_Init + 704 (in ufo) [0x1aaaa]
              12 R_Init + 203 (in ufo) [0x13c376]
                12 Rimp_Init + 1038 (in ufo) [0x15b6bc]
                  12 R_SetMode + 264 (in ufo) [0x13acf6]
                    12 R_InitGraphics + 413 (in ufo) [0x15ba18]
                      12 SDL_SetVideoMode + 528 (in libSDL-1.2.0.dylib) [0x107262d0]
                        12 QZ_SetVideoMode + 1730 (in libSDL-1.2.0.dylib) [0x10730702]
                          12 -[NSWindow makeKeyAndOrderFront:] + 39 (in AppKit) [0x9549b8ed]
                            12 -[NSWindow _makeKeyRegardlessOfVisibility] + 128 (in AppKit) [0x9549b9a7]
                              12 -[NSWindow makeKeyWindow] + 72 (in AppKit) [0x9549ba38]
                                12 -[NSWindow _changeKeyAndMainLimitedOK:] + 810 (in AppKit) [0x9549bd7b]
                                  12 SDL_SoftStretch + 26562 (in SDL) [0x109173f2]
                                    12 -[NSWindow becomeKeyWindow] + 1359 (in AppKit) [0x9549c832]
                                      12 -[NSNotificationCenter postNotificationName:object:] + 56 (in Foundation) [0x987ca05d]
                                        12 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128 (in Foundation) [0x987bcc50]
                                          12 _CFXNotificationPostNotification + 186 (in CoreFoundation) [0x9307e16a]
                                            12 __CFXNotificationPost + 947 (in CoreFoundation) [0x9307e763]
                                              12 _nsnote_callback + 176 (in Foundation) [0x987c7db3]
                                                12 SDL_SoftStretch + 9344 (in SDL) [0x109130b0]
                                                  12 ??? [0xffffffff]
                                                    12 _sigtramp + 43 (in libSystem.B.dylib) [0x905a405b]
                                                      12 SDL_Parachute + 31 (in libSDL-1.2.0.dylib) [0x106faa0f]
                                                        12 SDL_Quit + 18 (in libSDL-1.2.0.dylib) [0x106fa3f2]
                                                          12 SDL_QuitSubSystem + 85 (in libSDL-1.2.0.dylib) [0x106fa335]
                                                            12 SDL_VideoQuit + 75 (in libSDL-1.2.0.dylib) [0x10725c5b]
                                                              12 QZ_VideoQuit + 87 (in libSDL-1.2.0.dylib) [0x1072f8a7]
                                                                12 QZ_UnsetVideoMode + 173 (in libSDL-1.2.0.dylib) [0x1072edad]
                                                                  12 -[NSWindow _close] + 430 (in AppKit) [0x956b71d1]
                                                                    12 -[NSWindow orderOut:] + 50 (in AppKit) [0x95527015]
                                                                      12 -[NSWindow orderWindow:relativeTo:] + 105 (in AppKit) [0x9549e161]
                                                                        12 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 2604 (in AppKit) [0x9549ebee]
                                                                          12 HideWindow + 154 (in HIToolbox) [0x90e6d659]
                                                                            12 _ShowHideWindows + 489 (in HIToolbox) [0x90bc63fe]
                                                                              12 SetUserFocusWindow + 318 (in HIToolbox) [0x90c2be0d]
                                                                                12 SendSimpleWindowEvent + 94 (in HIToolbox) [0x90bc0af8]
                                                                                  12 SendEventToEventTargetWithOptions + 58 (in HIToolbox) [0x90ba0d55]
                                                                                    12 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411 (in HIToolbox) [0x90ba0ef6]
                                                                                      12 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567 (in HIToolbox) [0x90ba1c2f]
                                                                                        12 carbonAppWindowHandler + 1343 (in AppKit) [0x95b33364]
                                                                                          12 -[NSWindow resignKeyWindow] + 433 (in AppKit) [0x9556d122]
                                                                                            12 -[NSNotificationCenter postNotificationName:object:] + 56 (in Foundation) [0x987ca05d]
                                                                                              12 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128 (in Foundation) [0x987bcc50]
                                                                                                12 _CFXNotificationPostNotification + 186 (in CoreFoundation) [0x9307e16a]
                                                                                                  12 __CFXNotificationPost + 947 (in CoreFoundation) [0x9307e763]
                                                                                                    12 _nsnote_callback + 176 (in Foundation) [0x987c7db3]
                                                                                                      12 SDL_SoftStretch + 9628 (in SDL) [0x109131cc]
  Kernel stack:
    9 lo_alltraps + 298 [0x2a18da]
      9 user_trap + 851 [0x2ab8ef]
        9 exception_triage + 222 [0x21be55]
          9 exception_deliver + 490 [0x21bb23]
            9 mach_exception_raise + 179 [0x23df2b]
              9 mach_msg_rpc_from_kernel_proper + 39 [0x21e3d2]
                5 mach_msg_rpc_from_kernel_body + 384 [0x21e2d7]
                  5 ipc_mqueue_receive + 101 [0x211dd0]
                    5 thread_block + 33 [0x227654]
                      5 thread_block_reason + 331 [0x2275c6]
                        5 thread_dispatch + 1966 [0x227327]
                          5 machine_switch_context + 659 [0x2a9adb]
                2 mach_msg_rpc_from_kernel_body + 205 [0x21e224]
                  2 ipc_kmsg_send + 420 [0x210bc1]
                    2 ipc_mqueue_send + 423 [0x2113dd]
                      2 ipc_mqueue_post + 545 [0x21121c]
                        2 ml_set_interrupts_enabled + 47 [0x2a45e3]
                1 _enable_preemption + 17 [0x29aca1]
                  1 kernel_preempt_check + 70 [0x2aac45]
                    1 ml_set_interrupts_enabled + 47 [0x2a45e3]
                1 mach_msg_rpc_from_kernel_body + 41 [0x21e180]
                  1 ipc_kmsg_get_from_kernel + 341 [0x21088c]
    2 lo_allintrs + 302 [0x2a1c2e]
      2 interrupt + 192 [0x2ab423]
        2 lapic_interrupt + 108 [0x2b32f2]
          2 mp_kdp_exit + 868 [0x2b4560]
            2 sync_iss_to_iks + 124 [0x2aabf6]
    1 lo_alltraps + 454 [0x2a1976]
      1 i386_astintr + 47 [0x2aacb4]
        1 ast_taken + 247 [0x219432]
          1 bsd_ast + 824 [0x48fed2]

  Thread ffaaf      DispatchQueue 1634545000
  User stack:
    12 start_wqthread + 30 (in libSystem.B.dylib) [0x905635c6]
      12 _pthread_wqthread + 390 (in libSystem.B.dylib) [0x90563781]
        12 _dispatch_worker_thread2 + 240 (in libSystem.B.dylib) [0x90563cfe]
          12 _dispatch_queue_invoke + 163 (in libSystem.B.dylib) [0x90563f59]
            12 kevent + 10 (in libSystem.B.dylib) [0x90564382]
  Kernel stack:
    12 kevent + 97 [0x47a699]

  Binary Images:
      0x1000 -   0x21efe7  net.sourceforge.UFOAI 2.3.1 (2.3.1) <E47AB43D-FB4C-D6EF-14EB-D4F46232C14F> /Applications/UFOAI.app/Contents/MacOS/ufo
  0x106f9000 - 0x10756f7b  libSDL-1.2.0.dylib ??? (???) <C1E30738-A33B-A73C-6DE6-C3CB0C708B68> /Applications/UFOAI.app/Contents/MacOS/../Libraries/libSDL-1.2.0.dylib
  0x108de000 - 0x10943f17  SDL 1.2.14 (1.2.14) <FA2F2FC9-E936-DD87-FBB0-F5052D5CDAB8> /Applications/UFOAI.app/Contents/MacOS/../Frameworks/SDL.framework/Versions/A/SDL
  0x9053d000 - 0x906e4ff7  libSystem.B.dylib ??? (???) <2DCD13E3-1BD1-6F25-119A-3863A3848B90> /usr/lib/libSystem.B.dylib
  0x90b9a000 - 0x90ebefef  com.apple.HIToolbox 1.6.5 (???) <21164164-41CE-61DE-C567-32E89755CB34> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
  0x93023000 - 0x9319efe7  com.apple.CoreFoundation 6.6.6 (550.44) <F88C95CD-1264-782D-A1F5-204739847E93> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
  0x9545f000 - 0x95d42ff7  com.apple.AppKit 6.6.8 (1038.36) <A353465E-CFC9-CB75-949D-786F6F7732F6> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
  0x987b2000 - 0x98a23fef  com.apple.Foundation 6.6.8 (751.63) <69B3441C-B196-F2AD-07F8-D8DD24E4CD8C> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation



Hope it helps.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Game does not start at all
« Reply #17 on: January 04, 2012, 06:36:33 pm »
Crash in sdlsoftstretch was a bug in an old sdl version

Offline Kooks

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: Game does not start at all
« Reply #18 on: January 05, 2012, 02:45:42 pm »
afaik sdl1.2 is the latest version.
i tried something else: i reinstalled the game, installed sdl, sld_mixer and sdl_image via macports ran selfupdate and upgrade outdated. there is still something wrong with sdl.
here is the log:
Process:         ufo [71844]
Path:            /Applications/UFOAI.app/Contents/MacOS/ufo
Identifier:      net.sourceforge.UFOAI
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [136]

Date/Time:       2012-01-05 14:39:50.256 +0100
OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Interval Since Last Report:          3292386 sec
Crashes Since Last Report:           1833
Per-App Crashes Since Last Report:   15
Anonymous UUID:                      A9E071A7-F16A-4065-9AB7-683123F9FC9D

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Library not loaded: /opt/local/Library/Frameworks/SDL_image.framework/Versions/A/SDL_image
  Referenced from: /Applications/UFOAI.app/Contents/MacOS/ufo
  Reason: no suitable image found.  Did find:
   /opt/local/Library/Frameworks/SDL_image.framework/Versions/A/SDL_image: mach-o, but wrong architecture

Binary Images:
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Game does not start at all
« Reply #19 on: January 05, 2012, 03:00:44 pm »
afaik sdl1.2 is the latest version.
i tried something else: i reinstalled the game, installed sdl, sld_mixer and sdl_image via macports ran selfupdate and upgrade outdated. there is still something wrong with sdl.

I don't know these Mac stuff at all, but I believe this is your problem:
Quote
SDL_image: mach-o, but wrong architecture

The SDL you've installed is not compatible with your OS version and/or CPU arch.

-geever

Offline Kooks

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: Game does not start at all
« Reply #20 on: January 07, 2012, 01:14:31 pm »
Looks like you can blame it all on SDL. I used to play the 2.2 version of the game without any problems. Does any1 know if it is still available somewhere?

Offline SpeCT

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
Re: Game does not start at all
« Reply #21 on: January 08, 2012, 11:51:55 am »
Hi Guys.

Firstly I'd like to say THANK YOU for developing such amazing open source game (hope I will be able to play ;))

Now regarding the 2.3.1 issues. I've installed SDL_image and SDL_mixer frameworks into /opt/local/Library/Frameworks and SDL.framework into /Applications/UFOAI.app/Contents/Frameworks. All are versioned 1.2 (latest) and downloaded from http://www.libsdl.org/.

So now there are no exceptions related to SDL (neither any other), but UFO:AI still is not playable: app icon is constantly bouncing in Dock and there is no Quit option under right click menu, only Force quit.

I'm having c2d air 11 with updated lion on it.

Please tell me how can I help you with solving this issue (m.b. by sending any additional info/log files/...)

PS: I didn't tried to build version from sources, but as I see after quick forum reading it will not help :(

Regards,
Yury
« Last Edit: January 08, 2012, 12:10:55 pm by SpeCT »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Game does not start at all
« Reply #22 on: January 10, 2012, 12:18:29 am »
The current development line (2.4-dev) got quite much Mac specific fix, I would try that.
You can download an installer from http://ufoai.ninex.info/snapshots/

-geever

Offline SpeCT

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
Re: Game does not start at all
« Reply #23 on: January 10, 2012, 10:15:07 am »
Thank you for the reply Mattn, but as you already mentioned above 2.4-dev crashes on VID_GetModeInfo. So, since you are calling 2.3.1 as stable – I've just tried to fix it, instead of debugging 2.4-dev.

Offline Kooks

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: Game does not start at all
« Reply #24 on: January 11, 2012, 03:57:12 pm »
So I decided to give 2.4 another chance and miraculously it works.
Last time I tried it, it only managed to show the loading screen and fill the loading bar before returning to desktop.
I basically installed SDL via Macports and ran selfupdate and upgrade outdated since it was an older version of Macports.

Offline SpeCT

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
Re: Game does not start at all
« Reply #25 on: January 11, 2012, 04:46:33 pm »
So I decided to give 2.4 another chance and miraculously it works.

OMG Kooks, you are genius! I've installed libsdl using MacPorts and now I can see main menu (username/language/tip of the day). I didn't tried to play, but I believe everything will be fine :)

Offline Kooks

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: Game does not start at all
« Reply #26 on: January 12, 2012, 05:36:09 pm »
OMG Kooks, you are genius!

Finally some1 points out the obvious  8)
Glad, I could help.
Something else: I noticed that the earth looks pretty dark in Geoscape without nation overlay. Is that a bug or a feature? Here is a screenshot. The sun is in viewerposition.


Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Game does not start at all
« Reply #27 on: January 14, 2012, 05:04:10 pm »
Try turning off GLSL shaders in the video options. That may help...

Offline Kooks

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: Game does not start at all
« Reply #28 on: January 14, 2012, 07:30:54 pm »
Unfortunaty it doesnt

Offline Arclight

  • Cannon Fodder
  • **
  • Posts: 1
    • View Profile
Re: Game does not start at all
« Reply #29 on: January 21, 2012, 05:39:11 pm »
Hey. Kooks, it seems you are the resident badass who'd figured this out. Unfortunately I really don't have much of a clue of what I'm doing with this kind of thing, would there be any chance you could post a baby-step set of instructions of how to get this working?

I know it's a bit of an ask but a poor fool like me would seriously appreciate it.