Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Crashing/hanging simulator on amd64
« previous next »
  • Print
Pages: [1]

Author Topic: Crashing/hanging simulator on amd64  (Read 3011 times)

Offline rosco_pc

  • Member
  • *
  • Posts: 76
Crashing/hanging simulator on amd64
« on: November 27, 2007, 09:41:19 AM »
HI,

I just compiled a recent SVN version (r15833M-071127) for gigabeat F/X under Ubuntu 7.10/AMD64. As soon as I try to play a file, the simulator either hangs with an Xlib error message (Xlib: unexpected async reply (sequence 0x73)!) or segfaults depending on the mp3 file used.

Did a quick search in the forum/IRC and FS, but did not find anything recent related to simulator problems. Would this be related to 64bit or to Ubuntu? I'll try to build the simulator under i386, but that will take awhile.
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Crashing/hanging simulator on amd64
« Reply #1 on: November 27, 2007, 10:00:16 AM »
I may be wrong, but it may be 64-bit related. I use Kubuntu 7.04 on a P4-based laptop (x86 as we all know  ;)), and have compiled both normal and sim builds with no problems whatsoever.

Just curious, though: try updating your build environment by running rockboxdev.sh in the /tools folder again.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Crashing/hanging simulator on amd64
« Reply #2 on: November 27, 2007, 05:33:39 PM »
I also run sims on 64 bit ubuntu 7.10 and it works reasonably well, you might want to try to rerun configure as I made a fix about a month ago that requires that to take effect. Also a lot of things are more or less broken on 64 bit, I have been trying to fix stuff as i go along but at least the database is broken (AFAIK)
Logged

Offline rosco_pc

  • Member
  • *
  • Posts: 76
Re: Crashing/hanging simulator on amd64
« Reply #3 on: November 28, 2007, 05:33:23 AM »
Thanks for the suggestions,

Quote from: nls on November 27, 2007, 05:33:39 PM
... you might want to try to rerun configure as I made a fix about a month ago that requires that to take effect.

Tried this first as it is easiest, but did not work, same result after rebuilding (to make sure I did a make clean first). I'll run the simulator once through dbg and see what I can find out (not that I'm an expert in this, but...)

Quote from: LambdaCalculus379 on November 27, 2007, 10:00:16 AM
Just curious, though: try updating your build environment by running rockboxdev.sh in the /tools folder again.

Have not tried this yet, but I do have a question first:
I thought that the simulator is just that, a simulator, and not an emulator. And rockboxdev.sh only downloads and install a cross compilation environment for your target. Thus it would not be needed to build the simulator, as that runs native.
Am I correct?

[edit]: From the UI Simulator
Quote
(Note: you do not need any target-specific CrossCompiler to build the simulators.)

[edit 2]:The problem is most likely related to these ALSA errors:
Code: [Select]
ALSA lib confmisc.c:769:(parse_card) cannot find card '��'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default

I tried changing the sound device to the OSS version, and now the simulator consistenly hangs with the Xlib error. SO it is related to the sound device not being recognised. Any idea's what is the cause?
« Last Edit: November 28, 2007, 07:37:02 AM by rosco_pc »
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Crashing/hanging simulator on amd64
« Reply #4 on: November 28, 2007, 05:46:45 PM »
you are correct, the sim is built with your native system compiler and needs no crosscompiler (which is built with rockboxdev.sh) definitely seems to be something wrong with your sound setup, or maybe SDL, can't be of much help though as all this just worked for me...
Logged

Offline rosco_pc

  • Member
  • *
  • Posts: 76
Re: Crashing/hanging simulator on amd64 [SOLVED]
« Reply #5 on: November 30, 2007, 04:31:09 AM »
Solved the problem:
Code: [Select]
rm .asoundrc*

The strange thing was that sound was working on my system, but alot of programs that depended on ALSA were giving the errors as stated in a previous message. Now this system has seen several updates of Ubuntu and some other distributions. I have a separate partition for the home folder, which never gets formatted during the update/installation so that I do not loose my data. With as result that there has been alot of cruft collected, in the form of '.xxx' files and directories.

My advise now , clean it up now and then even if it means that you have the set all your favorite settings once again.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Crashing/hanging simulator on amd64
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.076 seconds with 16 queries.