MMAPI help

Hi,
Any body knows, How to implement MMAPI in CDC application?
Please help me , its very urgent.
Thanks in advance.
Balaji

hello, first of all, thanks for answering. I've been trying new thing, and I get the next error:
"prefetch error: -5"
but I can't find what kind of error is, and how to fix it.

Similar Messages

  • Help needed with MMAPI and print values to screen

    Hi,
    Using the RingToneConverter, I want to print out the values to the screen that the ring tone has. The values I want printed are actually any values at all! I am not picky at this point!
    Can anyone help with this? I would like it so that while the ringtone is playing the the "simple player", the values are somewhere on screen appearing. Or even after the song is finished, the values come up on screen.
    Thank you,
    Mike

    Sorry, i don't mean that..
    as i say, as3 read the data from file sorting like that:
    1,john,ny
    2,jessy,cal
    3,smith,nj
    how can i pass those values to the textboxes . id , name , address
    so i can go next and previous
    thank you again..

  • Installing MMAPI on a cell phone (HELP!!!!)

    I made a application that uses MMAPI. I know how to deploy my apllication but how do I get the MMAPI installed on a SonyEricsson T68i?
    thanks.

    I assume the MMAPI provider can be preinstalled by the mobile phone
    manufacturer only. AFAIK, the Nokia 7650 is supposed to support MMAPI.
    However, I found no indications of that whatsoever on the Nokia
    developer zone.

  • Re: please help.. mmapi.. how can i write my own controls for audio process

    it is just like
    for example when we increase the volume, the player
    keeps playing without pausing.. i want my controller
    to be able to do this.. first of all:
    have you ever created a javaME music player with a volume control?
    if you did one and well implemented it, you should have seen that increasing volume (in
    a good implementation) never causes pausing...
    so, is it possible to write
    my own audio control class in j2me? and is it
    possible to make it real time without causing the
    player pause?second:
    you can try... good luck

    Thanks. with your help i found this ;[https://addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/ addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/]
    with that tool you just right click mouse in search box what i want to add to the bar and select "add to search bar..."!!!THANKS!!!(yea it didn't found from the site search you gave but there was link to this tool what gives you "the power"(:D) to add it)
    ps. copy that link to ur post so i can put it solved!

  • Help, taking picture with samsung's mmapi supported phones

    HI:
    My midlet run on nokia phones with mmapi suport. but when i run it with samsung phones in emulator, the following error happens
    javax.microedition.media.MediaException: Cannot create a DataSource for: capture://video
    at javax.microedition.media.Manager.createDataSource(Manager.java:635)
    at javax.microedition.media.Manager.createPlayer(Manager.java:467)
    I can get little information about sumsung's phones support on mmapi.
    samsung's support for developer is disappointing.
    i have tried this on almost all phones' emulator, the same error!
    regards

    http://www.gnumaniacs.org/bluetooth/dg_java_me_r20a.pdf Since your phone supports both MMAPI (JSR-135) and AMS camera capabilities (JSR-234), have a look at this specification document which may solve the problem.

  • Help with mmapi

    Hi, I'm trying to play an audo file with j2me and mmapi, but it crashes and I don't know why. This is my code:
    try {
               m_player = Manager.createPlayer(is, "audio/midi");          
                m_player.realize();
                // get volume control for player and set volume to max
                vc = (VolumeControl) m_player.getControl("VolumeControl");
                if(vc != null) {
                    int vol= vc.getLevel();
                    servidor.append("\nvolumen: "+vol);
                    vc.setLevel(100);
                    servidor.append("\nvolumen: "+vol);
                m_player.prefetch();
                } catch(Exception e) {
                e.printStackTrace();
                servidor.append("error");
            try {
                m_player.start();
            } catch (MediaException ex) {
                ex.printStackTrace();
                servidor.append("puto error de los cojones");
            }I've tried with midi and mp3 files, but doesn't work, it crashes in m_player.prefetch(), and e.printStackTrace() returns nothing, so I don't know what to do.

    hello, first of all, thanks for answering. I've been trying new thing, and I get the next error:
    "prefetch error: -5"
    but I can't find what kind of error is, and how to fix it.

  • HELP: ld: fatal: file /dev/zero: mmap anon failed: Not enough space

    Trying to build a debug version of our code using Solaris 10 and SunStudio 12, and we get this error:
    ld: fatal: file /dev/zero: mmap anon failed: Not enough space
    Any idea?
    The ld process grows to ~4GB then dies.
    The compile server has plenty of memory and swap available.
    Any idea? Our program is getting quite large, but I am sure there are larger ones out there.

    The only suggestion I have is to switch to stabs debug format (-xdebugformat=stabs compiler option) and don't specify -xs so that most of debug info is stored in .o files. Maybe it'll save some linker address space. Other than that, try asking on linker forum:
    http://www.opensolaris.org/jive/forum.jspa?forumID=63
    I know that it's a hot topic and you will probably get an answer as soon as someone from linker team take a look.

  • OpenAL sound effects not working .. Please Help

    Hi
    I ported OpenAL to our platform and able to play the wav files.
    I wrote a sample openal application and try to produce some sound effects.
    Play back of audio is working but sound effects are not working.
    I am using jungle.wav which is mono channel sound wave file as input
    # The Code snippet used is mentioned below.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>
    #define NUM 2
    alutInit(0,0) ;
    alGetError();
    SourcesPos[0] = SourcesPos[1] = SourcesPos[2] = 0.0f;
    ListenerPos[0] = ListenerPos[1] = ListenerPos[2] = 0.0f;
    ListenerOri[0] = 0.0f;
    ListenerOri[1] = 0.0f;
    ListenerOri[2] = -1.0f;
    ListenerOri[3] = 0.0f;
    ListenerOri[4] = 1.0f;
    ListenerOri[5] = 0.0f;
    alListenerfv(AL_POSITION, ListenerPos);
    alListenerfv(AL_ORIENTATION, ListenerOri);
    alGenBuffers(NUM, Buffers);
    Buffer[0]= alutCreateBufferFromFile("/Res/jungle.wav");
    err = alutGetError();
    alGenSources(NUm, Sources);
    alSourcei (Sources[0], AL_BUFFER, Buffers[0] );
    alSourcef (Sources[0], AL_REFERENCE_DISTANCE, 25*2);
    alSourcefv(Sources[0], AL_POSITION, SourcesPos);
    SourcesPos[0] = 200;
    SourcesPos[1] = 200;
    SourcesPos[2] = 25;
    alSourcefv(Sources[source], AL_POSITION, SourcesPos);
    alSourcePlay(Sources[source]);
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>
    I am expecting the sound to be played in the right headphone/speaker.
    But the sound is played in both the headphones.
    I used wave device and generated the output.wav file.
    In that file also the sound is played in both the headphones.
    I used the following settings for configuring OpenAL alsoft.conf.
    Someone please help me the error in the above code.
    Does OpenAL able to generate the right sound or left sound effect depending on the co ordinates
    format = AL_FORMAT_STEREO16
    cf_level = 0
    frequency = 44100
    refresh = 4096
    sources = 256
    stereodup = false
    drivers = osp // Our platform
    excludefx =
    layout_STEREO = fl=-90, fr=90
    layout_QUAD = # Sets the speaker layout when using quadriphonic output.
    # Available speakers are back-left(bl), front-left(fl),
    # front-right(fr), and back-right(br).
    # The default is:
    bl=-135, fl=-45, fr=45, br=135
    layout_51CHN = bl=-110, fl=-30, fc=0, fr=30, br=110
    layout_61CHN = sl=-90, fl=-30, fc=0, fr=30, sr=90, bc=180
    layout_71CHN = bl=-150, sl=-90, fl=-30, fc=0, fr=30, sr=90 br=150
    device = default
    periods = 0
    capture = default
    mmap = true
    [wave] # Wave File Writer stuff
    file = # Sets the filename of the wave file to write to. An empty name
    # Default is empty
    volume = 100
    Thanks
    Swaroop

    Hi,
    You might want to check out connect.creativelabs.com to see how they can help you.

  • Message: "send mmap timed out" from a SSO instalation's HTTP_Server

    Hi to everyone,
    first of all my apologize if i have written this in a wrong forum but i did not find any forum in particular to SSO.
    When looking at the error logs from Apache in a SSO installation (10.1.2.0.2) i have found these entries:
    [Thu May 10 18:00:10 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:23 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:36 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:43 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:49 2012] [warn] [client 192.168.2.6] send mmap timed out
    Does someone knows what they mean ??
    Is this a critical error ??
    what should i do to fix the problem ??
    Thanks for your kind help
    Regards
    Carlos

    I think you are confusing things here.
    While you can change the port used for submission from your mail clients to your mail server, you cannot (should not) change the outgoing port for your smtp server. All mail servers expect incoming traffic on port 25, thus using port 587 will not get your mail delivered (it will go through your firewall, but that's about it).
    If your mail server (not client) is behind a firewall with port 25 blocked, there is no way it can send mail to outside domains. So either get your ISP to let port 25 through for your server or use your ISP's smpt server to send mail (this can be done directly, or through your mail server relaying through your ISPs server).

  • I've adopted the oss2jack and fusd-kor packages, but need help

    Some people are still using this software (and I'm eyeing it) and I felt I should do them a favor. Problem is, I'll need some help.
    For fusd-kor, the PKGBUILD looks like this:
    # Contributor: nut543 <[email protected]>
    # Contributor: Shadowhand <[email protected]>
    pkgname=fusd-kor
    pkgver=1.10.12
    _realver=konstruktiv.org_hack
    pkgrel=1
    pkgdesc="FUSD hack developed for the oss2jack project and 2.6.x > udev kernels."
    arch=(i686)
    url="http://hg.konstruktiv.org/fusd/"
    license=('GPL')
    depends=()
    makedepends=('mercurial')
    source=(fusd.install fusd.rules)
    md5sums=('982f0b5b6c7af5fe7f4b9e3134c5f1fb' 'dd880fac320283c9c134f8efa0b5bb84')
    install=fusd.install
    build() {
    cd $startdir/src
    msg "Connecting to mercurial server...."
    hg clone http://hg.konstruktiv.org/fusd
    cd fusd
    sed -i 's|local/||' Makefile
    sed -i 's|-O2 -g|-O2 -fomit-frame-pointer -march=i686|g' make.include
    sed -i 's|-Werror||g' make.include
    msg "Starting make..."
    make || return 1
    cp Makefile Makefile.save
    cp kfusd/Makefile kfusd/Makefile.save
    sed -i "s|/usr/|$startdir/pkg/usr/|g" Makefile
    sed -i "s|/lib/|$startdir/pkg/lib/|g" Makefile
    sed -i "s|\(/lib/modules/\$(shell uname -r)/misc\)|${startdir}/pkg\1|g" kfusd/Makefile
    mkdir -p $startdir/pkg/lib/modules/$(uname -r)/misc
    mkdir -p $startdir/pkg/usr/{lib,include}
    sed -i 's|/sbin/depmod -a||' Makefile
    make install || return 1
    # Restore original Makefiles
    rm {Makefile,kfusd/Makefile}
    cp Makefile.save Makefile
    cp kfusd/Makefile.save kfusd/Makefile
    cd $startdir/src
    install -D -m 644 fusd.rules $startdir/pkg/etc/udev/rules.d/30-fusd.rules
    msg "If you saw an error about not finding the kfusd.ko module, do the following:"
    msg "as root: cd /usr/src/linux-$(uname -r) && make"
    First off, it seems to me like sticking in optimizations as is done here is a bad idea.
    Second - there's still a version of fusd-kor available on the oss2jack homepage, shouldn't that be used? The homepage for the one above seems to be dead anyway, although it claims to be a later version.
    I might be asking further questions too, as I've never maintained a kernel module PKGBUILD before.
    Also, here's the install file:
    # This is a default template for a post-install scriptlet. You can
    # remove any functions you don't need (and this header).
    # arg 1: the new package version
    pre_install() {
    rm -f /etc/udev/permissions.d/fusd.permissions
    rm -f /etc/udev/rules.d/??-fusd.rules
    /bin/true
    # arg 1: the new package version
    post_install() {
    depmod -ae
    sleep 1
    echo "Modprobe'ing kfusd"
    modprobe kfusd && echo sucess\! || echo failure to modprobe kfusd\, try to \-f\(force\) it
    echo 'add kfusd to your /etc/rc.conf MODULES array to have it load at startup.'
    /bin/true
    # arg 1: the new package version
    # arg 2: the old package version
    pre_upgrade() {
    /bin/true
    # arg 1: the new package version
    # arg 2: the old package version
    post_upgrade() {
    /bin/true
    # arg 1: the old package version
    pre_remove() {
    /bin/true
    # arg 1: the old package version
    post_remove() {
    rm -f /etc/udev/permissions.d/fusd.permissions
    rm -f /etc/udev/rules.d/??-fusd.rules
    /bin/true
    op=$1
    shift
    $op $*
    Is there anything in there that should be modified?
    And now, oss2jack:
    # Contributor: nut543 <[email protected]>
    pkgname=oss2jack
    pkgver=0.25
    arch=('i686')
    pkgrel=7
    pkgdesc="Routes /dev/dsp to Jack enabling TeamSpeak and other OSS-only mmap apps to work."
    depends=(jack-audio-connection-kit libsamplerate fusd-kor)
    source=(http://fort.xdas.com/~kor/oss2jack/$pkgname-$pkgver.tar.gz \
    oss2jack)
    url="http://fort.xdas.com/~kor/oss2jack/"
    license=('GPL')
    md5sums=(7fd10dd2391cbef147fa36563969e3e2\
    596661877446a02c7e9497178db60af7)
    install=oss2jack.install
    build() {
    mkdir -p $startdir/pkg/etc/rc.d
    install -g root -o root -m 755 $startdir/oss2jack $startdir/pkg/etc/rc.d/oss2jack
    cd $startdir/src/$pkgname-$pkgver
    ./configure --with-fusd=/usr --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
    And the install file:
    # This is a default template for a post-install scriptlet. You can
    # remove any functions you don't need (and this header).
    # arg 1: the new package version
    pre_install() {
    echo 'see http://wiki.archlinux.org/index.php/Allow_multiple_programs_to_play_sound_at_once#ALSA_with_oss2jack for help starting up oss2jack'
    /bin/true
    # arg 1: the new package version
    post_install() {
    /bin/true
    # arg 1: the new package version
    # arg 2: the old package version
    pre_upgrade() {
    /bin/true
    # arg 1: the new package version
    # arg 2: the old package version
    post_upgrade() {
    /bin/true
    # arg 1: the old package version
    pre_remove() {
    /bin/true
    # arg 1: the old package version
    post_remove() {
    /bin/true
    op=$1
    shift
    $op $*
    The PKGBUILD looks fine to me. Not so sure about the install file, it looks a little... redundant? But if you guys notice anything gravely wrong with these, please post it, okay?
    Edit: And sorry for the long post... wow.
    Last edited by Gullible Jones (2008-06-04 01:29:55)

    Okay, I modified the PKGBUILD for fusd-kor, but I get this when I try to compile...
    make[2]: Entering directory `/usr/src/linux-2.6.25-ARCH'
    CC [M] /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.o
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:60:26: error: linux/config.h: No such file or directory
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:70:35: error: linux/devfs_fs_kernel.h: No such file or directory
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:181: error: expected ')' before string constant
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: In function 'fusd_register_device':
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2036: warning: label 'register_failed2' defined but not used
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: At top level:
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2517: error: unknown field 'writev' specified in initializer
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2517: warning: initialization from incompatible pointer type
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: In function 'init_fusd':
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2941: warning: label 'fail2' defined but not used
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2929: warning: label 'fail7' defined but not used
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c: In function 'cleanup_fusd':
    /home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.c:2960: error: implicit declaration of function 'devfs_remove'
    make[3]: *** [/home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd/kfusd.o] Error 1
    make[2]: *** [_module_/home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.25-ARCH'
    make[1]: *** [default] Error 2
    make[1]: Leaving directory `/home/proteus/Packages/fusd-kor/src/fusd-kor-1.10-11/kfusd'
    make: *** [obj.i686-linux/kfusd.ko] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    What's going on?

  • Voximp help [solved]

    Hello I was just trying to install and run voximp. I have followed each step from
    http://ardoris.wordpress.com/2008/08/09 … ol-voximp/
    here is voximpconf.py. I did run voximp -c and the file voximpconf.pyc does exist
    languagemodel = '9882' #set this to something sensible
    keycommand = {
    'RIGHT': "super+Right", #move one tag to the right
    'LEFT': "super+Left", #move one tag to the left
    'TERMINAL': "ctrl+grave", #spawn the terminal
    'CLOSE': "alt+F4", #close window
    'ENTER': "Return",
    'SAVE': "ctrl+s",
    'NEW': "ctrl+n",
    'TAB': "ctrl+Tab", #for seeing next firefox tab
    'BACKSPACE': "BackSpace",
    'CUT': "ctrl+x",
    'COPY': "ctrl+c",
    'PASTE': "ctrl+v"
    for letter in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
    keycommand[letter] = letter.lower() #add all the letters - yes this is a true python file, you can do w/e you want in here
    programcommand = {
    'FIREFOX': "firefox",
    'NOTEPAD': "medit",
    'GOOGLE': "firefox www.google.com", #open google in a new tab in firefox
    'HIBERNATE': "sudo hibernate",
    'PLAY': "xmms2 play",
    'STOP': "xmms2 stop"
    mousecommand = {
    'CLICK': '1', #leftclick
    'RIGHTCLICK': '3' #rightclick
    progswithargs = {
    'ALERT': "notify-send" #just to demonstrate with arguments
    confirm = [ #anything listed here produces a confirm dialog before being executed
    'HIBERNATE'
    Here is /usr/bin/voximp
    #!/usr/bin/env python2
    # Copyright (c) 2008 Ben Duffield
    # Licensing - no idea
    # Probably w/e sphinx is, think it's MIT
    # Be nice!
    #REQUIRES:
    # gstreamer
    # pygtk
    # pocketsphinx
    # xdotool
    import pygtk
    pygtk.require('2.0')
    import gtk
    import gobject
    import pygst
    pygst.require('0.10')
    gobject.threads_init()
    import gst
    from subprocess import Popen
    import os
    import sys
    import getopt
    config_dir = os.path.join(os.path.expanduser("~"), '.config/voximp/')
    try:
    os.makedirs(config_dir)
    except:
    pass
    sys.path.append(config_dir)
    from voximpconf import *
    language_file = os.path.join(config_dir, str(languagemodel))
    config = {
    'hmm': '/usr/share/pocketsphinx/model/hmm/wsj1',
    'lm': '%s.lm' % language_file,
    'dict': '%s.dic' % language_file
    class Voximp(object):
    dial = None
    def __init__(self):
    self.init_gst()
    self.pipeline.set_state(gst.STATE_PLAYING)
    def init_gst(self):
    self.pipeline = gst.parse_launch('alsasrc device="hw:0,1" ! audioconvert ! audioresample '
    + '! vader name=vad auto-threshold=true '
    + '! pocketsphinx name=asr ! fakesink')
    asr = self.pipeline.get_by_name('asr')
    asr.connect('partial_result', self.asr_partial_result)
    asr.connect('result', self.asr_result)
    asr.set_property('lm', config['lm'])
    asr.set_property('dict', config['dict'])
    asr.set_property('configured', True)
    bus = self.pipeline.get_bus()
    bus.add_signal_watch()
    bus.connect('message::application', self.application_message)
    self.pipeline.set_state(gst.STATE_PAUSED)
    def asr_partial_result(self, asr, text, uttid):
    struct = gst.Structure('partial_result')
    struct.set_value('hyp', text)
    struct.set_value('uttid', uttid)
    asr.post_message(gst.message_new_application(asr, struct))
    def asr_result(self, asr, text, uttid):
    struct = gst.Structure('result')
    struct.set_value('hyp', text)
    struct.set_value('uttid', uttid)
    asr.post_message(gst.message_new_application(asr, struct))
    def application_message(self, bus, msg):
    msgtype = msg.structure.get_name()
    if msgtype == 'partial_result':
    self.partial_result(msg.structure['hyp'], msg.structure['uttid'])
    elif msgtype == 'result':
    self.final_result(msg.structure['hyp'], msg.structure['uttid'])
    #self.pipeline.set_state(gst.STATE_PAUSED)
    #self.button.set_active(False)
    def partial_result(self, hyp, uttid):
    print "partial: %s" % hyp
    def final_result(self, hyp, uttid):
    print "final: %s" % hyp
    prog = ''
    command = None
    if self.dial is not None:
    if hyp == 'YES':
    self.dial.response(gtk.RESPONSE_YES)
    else:
    self.dial.response(gtk.RESPONSE_NO)
    elif hyp in programcommand:
    prog = programcommand[hyp]
    command = hyp
    elif hyp in keycommand:
    prog = "xdotool key ``%s''" % keycommand[hyp]
    command = hyp
    elif hyp in mousecommand:
    prog = "xdotool click %s" % mousecommand[hyp]
    command = hyp
    else:
    values = hyp.split(' ')
    if len(values) <= 1:
    return
    if values[0] in progswithargs:
    prog = progswithargs[values[0]] + ' ' + ' '.join(values)
    command = values[0]
    else:
    for value in values:
    self.final_result(value, 0)
    if prog:
    print "command is %s" % command
    if command in confirm:
    self.confirm(prog)
    else:
    p = Popen(prog, shell=True)
    def confirm(self, prog):
    print "Confirming %s" % prog
    self.dial = gtk.MessageDialog(message_format = "Confirm?", type=gtk.MESSAGE_QUESTION)
    self.dial.format_secondary_markup("Say <b><i>yes</i></b> or <b><i>no</i></b>")
    self.dial.prog = prog
    self.dial.show_all()
    self.dial.connect("response", self.confirmCallback)
    def confirmCallback(self, dialog, response_id):
    print "callback called back"
    if response_id == gtk.RESPONSE_YES:
    p = Popen(dialog.prog, shell=True)
    self.dial.destroy()
    self.dial = None
    versionNumber = '0.0.1'
    usageInfo = '''Usage: voximp [options]
    Options:
    -v, --version show program version and exit
    -h, --help show this help message and exit
    -c, --corpus create a corpus.txt in current directory - used for generating language model files
    def usage():
    print "Voximp version %s" % versionNumber
    print usageInfo
    def version():
    print "Version %s" % versionNumber
    def corpus():
    words = []
    words.extend(keycommand.keys())
    words.extend(programcommand.keys())
    words.extend(mousecommand.keys())
    words.extend(progswithargs.keys())
    corpusText = "\n".join(words)
    filename = os.path.join(os.getcwd(), 'corpus.txt')
    print "Saving to %s" % filename
    corp = open(filename, 'w')
    corp.write(corpusText)
    corp.flush()
    corp.close()
    print "Corpus saved"
    print "Now visit http://www.speech.cs.cmu.edu/tools/lmtool.html"
    print " ==> choose the corpus file, click COMPILE KNOWLEDGE BASE"
    print " ==> save the three files to ~/.config/voximp/"
    print " ==> edit ~/.config/voximp/voximpconf.py and set the languagemodel string to the appropriate value \n\t- e.g. if the files are named 4766.dic, 4766.lm and 4766.sent, set languagemodel = '4766'"
    if __name__ == '__main__':
    try:
    opts, args = getopt.getopt(sys.argv[1:], "hcv", ["help", "corpus", "version"])
    except getopt.GetoptError:
    print "error"
    usage()
    sys.exit(2)
    for opt, arg in opts:
    if opt in ("-h", "--help"):
    usage()
    sys.exit()
    elif opt in ("-c", "--corpus"):
    corpus()
    sys.exit()
    elif opt in ("-v", "--version"):
    version()
    sys.exit()
    app = Voximp()
    gtk.main()
    here is my hardware
    **** List of CAPTURE Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: Microphone [Logitech USB Microphone], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    I have also unmuted and turned up the mic in alsa mixer.
    Here is the output of voximp
    ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
    INFO: cmd_ln.c(691): Parsing command line:
    gst-pocketsphinx \
    -samprate 8000 \
    -cmn prior \
    -fwdflat no \
    -bestpath no \
    -maxhmmpf 2000 \
    -maxwpf 20
    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -alpha 0.97 9.700000e-01
    -ascale 20.0 2.000000e+01
    -aw 1 1
    -backtrace no no
    -beam 1e-48 1.000000e-48
    -bestpath yes no
    -bestpathlw 9.5 9.500000e+00
    -bghist no no
    -ceplen 13 13
    -cmn current prior
    -cmninit 8.0 8.0
    -compallsen no no
    -debug 0
    -dict
    -dictcase no no
    -dither no no
    -doublebw no no
    -ds 1 1
    -fdict
    -feat 1s_c_d_dd 1s_c_d_dd
    -featparams
    -fillprob 1e-8 1.000000e-08
    -frate 100 100
    -fsg
    -fsgusealtpron yes yes
    -fsgusefiller yes yes
    -fwdflat yes no
    -fwdflatbeam 1e-64 1.000000e-64
    -fwdflatefwid 4 4
    -fwdflatlw 8.5 8.500000e+00
    -fwdflatsfwin 25 25
    -fwdflatwbeam 7e-29 7.000000e-29
    -fwdtree yes yes
    -hmm
    -input_endian little little
    -jsgf
    -kdmaxbbi -1 -1
    -kdmaxdepth 0 0
    -kdtree
    -latsize 5000 5000
    -lda
    -ldadim 0 0
    -lextreedump 0 0
    -lifter 0 0
    -lm
    -lmctl
    -lmname default default
    -logbase 1.0001 1.000100e+00
    -logfn
    -logspec no no
    -lowerf 133.33334 1.333333e+02
    -lpbeam 1e-40 1.000000e-40
    -lponlybeam 7e-29 7.000000e-29
    -lw 6.5 6.500000e+00
    -maxhmmpf -1 2000
    -maxnewoov 20 20
    -maxwpf -1 20
    -mdef
    -mean
    -mfclogdir
    -min_endfr 0 0
    -mixw
    -mixwfloor 0.0000001 1.000000e-07
    -mllr
    -mmap yes yes
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 40
    -nwpen 1.0 1.000000e+00
    -pbeam 1e-48 1.000000e-48
    -pip 1.0 1.000000e+00
    -pl_beam 1e-10 1.000000e-10
    -pl_pbeam 1e-5 1.000000e-05
    -pl_window 0 0
    -rawlogdir
    -remove_dc no no
    -round_filters yes yes
    -samprate 16000 8.000000e+03
    -seed -1 -1
    -sendump
    -senlogdir
    -senmgau
    -silprob 0.005 5.000000e-03
    -smoothspec no no
    -svspec
    -tmat
    -tmatfloor 0.0001 1.000000e-04
    -topn 4 4
    -topn_beam 0 0
    -toprule
    -transform legacy legacy
    -unit_area yes yes
    -upperf 6855.4976 6.855498e+03
    -usewdphones no no
    -uw 1.0 1.000000e+00
    -var
    -varfloor 0.0001 1.000000e-04
    -varnorm no no
    -verbose no no
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wbeam 7e-29 7.000000e-29
    -wip 0.65 6.500000e-01
    -wlen 0.025625 2.562500e-02
    INFO: cmd_ln.c(691): Parsing command line:
    -nfilt 20 \
    -lowerf 1 \
    -upperf 4000 \
    -wlen 0.025 \
    -transform dct \
    -round_filters no \
    -remove_dc yes \
    -svspec 0-12/13-25/26-38 \
    -feat 1s_c_d_dd \
    -agc none \
    -cmn current \
    -cmninit 56,-3,1 \
    -varnorm no
    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -alpha 0.97 9.700000e-01
    -ceplen 13 13
    -cmn current current
    -cmninit 8.0 56,-3,1
    -dither no no
    -doublebw no no
    -feat 1s_c_d_dd 1s_c_d_dd
    -frate 100 100
    -input_endian little little
    -lda
    -ldadim 0 0
    -lifter 0 0
    -logspec no no
    -lowerf 133.33334 1.000000e+00
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 20
    -remove_dc no yes
    -round_filters yes no
    -samprate 16000 8.000000e+03
    -seed -1 -1
    -smoothspec no no
    -svspec 0-12/13-25/26-38
    -transform legacy dct
    -unit_area yes yes
    -upperf 6855.4976 4.000000e+03
    -varnorm no no
    -verbose no no
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wlen 0.025625 2.500000e-02
    INFO: acmod.c(246): Parsed model-specific feature parameters from /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/feat.params
    INFO: feat.c(713): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none'
    INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0
    INFO: acmod.c(167): Using subvector specification 0-12/13-25/26-38
    INFO: mdef.c(517): Reading model definition: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/mdef
    INFO: mdef.c(528): Found byte-order mark BMDF, assuming this is a binary mdef file
    INFO: bin_mdef.c(336): Reading binary model definition: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/mdef
    INFO: bin_mdef.c(513): 50 CI-phone, 143047 CD-phone, 3 emitstate/phone, 150 CI-sen, 5150 Sen, 27135 Sen-Seq
    INFO: tmat.c(205): Reading HMM transition probability matrices: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/transition_matrices
    INFO: acmod.c(121): Attempting to use SCHMM computation module
    INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/means
    INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
    INFO: ms_gauden.c(294): 256x13
    INFO: ms_gauden.c(294): 256x13
    INFO: ms_gauden.c(294): 256x13
    INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/variances
    INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
    INFO: ms_gauden.c(294): 256x13
    INFO: ms_gauden.c(294): 256x13
    INFO: ms_gauden.c(294): 256x13
    INFO: ms_gauden.c(354): 0 variance values floored
    INFO: s2_semi_mgau.c(903): Loading senones from dump file /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/sendump
    INFO: s2_semi_mgau.c(927): BEGIN FILE FORMAT DESCRIPTION
    INFO: s2_semi_mgau.c(1022): Using memory-mapped I/O for senones
    INFO: s2_semi_mgau.c(1296): Maximum top-N: 4 Top-N beams: 0 0 0
    INFO: dict.c(317): Allocating 4158 * 32 bytes (129 KiB) for word entries
    INFO: dict.c(332): Reading main dictionary: /home/tron/.config/voximp/9882.dic
    INFO: dict.c(211): Allocated 0 KiB for strings, 0 KiB for phones
    INFO: dict.c(335): 51 words read
    INFO: dict.c(341): Reading filler dictionary: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/noisedict
    INFO: dict.c(211): Allocated 0 KiB for strings, 0 KiB for phones
    INFO: dict.c(344): 11 words read
    INFO: dict2pid.c(396): Building PID tables for dictionary
    INFO: dict2pid.c(404): Allocating 50^3 * 2 bytes (244 KiB) for word-initial triphones
    INFO: dict2pid.c(131): Allocated 60400 bytes (58 KiB) for word-final triphones
    INFO: dict2pid.c(195): Allocated 60400 bytes (58 KiB) for single-phone word triphones
    INFO: ngram_model_arpa.c(477): ngrams 1=49, 2=94, 3=47
    INFO: ngram_model_arpa.c(135): Reading unigrams
    INFO: ngram_model_arpa.c(516): 49 = #unigrams created
    INFO: ngram_model_arpa.c(195): Reading bigrams
    INFO: ngram_model_arpa.c(533): 94 = #bigrams created
    INFO: ngram_model_arpa.c(534): 3 = #prob2 entries
    INFO: ngram_model_arpa.c(542): 3 = #bo_wt2 entries
    INFO: ngram_model_arpa.c(292): Reading trigrams
    INFO: ngram_model_arpa.c(555): 47 = #trigrams created
    INFO: ngram_model_arpa.c(556): 2 = #prob3 entries
    INFO: ngram_search_fwdtree.c(99): 41 unique initial diphones
    INFO: ngram_search_fwdtree.c(147): 0 root, 0 non-root channels, 17 single-phone words
    INFO: ngram_search_fwdtree.c(186): Creating search tree
    INFO: ngram_search_fwdtree.c(191): before: 0 root, 0 non-root channels, 17 single-phone words
    INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 191
    INFO: ngram_search_fwdtree.c(338): after: 41 root, 63 non-root channels, 16 single-phone words
    Last edited by mich04 (2013-12-19 20:34:23)

    I figured out what I was doing wrong hw:1,0 not hw:0,1

  • Java 3D help me !

    I cannt build this source by jbuilder . Pls help me, it show this error , thanks alot
    C:\WTK22\bin\preverify.exe -cldc -classpath "D:\mobile3d\M3G\classes;C:\WTK22\lib\mmapi.jar;C:\WTK22\lib\wma20.jar;C:\WTK22\lib\j2me-ws.jar;C:\WTK22\lib\jsr75.jar;C:\WTK22\lib\jsr082.jar;C:\WTK22\lib\jsr184.jar;C:\WTK22\lib\cldcapi11.jar;C:\WTK22\lib\midpapi20.jar;C:\WTK22\lib\cldcapi10.jar;C:\WTK22\lib\midpapi10.jar;C:\WTK22\lib\wma11.jar" -d "D:\mobile3d\M3G\preverified-classes" @"D:\mobile3d\M3G\preverified-classes\params"
    ERROR: floating-point constants should not appear
    Error preverifying class m3g.HandCanvas
    ------------------------------- SOURCE WITH 3 CLASS ------------------------
    class 1 :
    // HandDisplay.java
    // Andrew Davison, [email protected], July 2004
    /* Display a 3D model loaded as a series of coordinates.
    The model can be moved and rotated around the y-axis.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HandDisplay extends MIDlet
    public void startApp()
    { Display d = Display.getDisplay(this);
    d.setCurrent( new HandCanvas(this) );
    public void pauseApp() {}
    public void destroyApp(boolean unconditional) {}
    public void quitApp()
    { notifyDestroyed(); }
    } // end of HandDisplay class
    ---- class 2 --------------------------------------------------------------------------------------------------------------------------------------------------------
    // HandCanvas.java
    // Andrew Davison, [email protected], July 2004
    /* Display a 3D model.
    The model can be moved left, right, up, down, forward, and back,
    and rotated left/right around the y-axis.
    Holding a key down causing key repetition, even in implementations
    which don't support keyRepeated().
    The model-specific data is located in the methods:
    getVerts() : returns its vertices
    getNormals() : returns its normals
    getTexCoords() : returns its texture coordinates
    getStripLengths() : returns an array containing the lengths of each
    of the triangle strips in the shape
    setMatColours() : sets the material colours and shininess
    getColourCoords(): returns its colour coordinates
    These methods are generated by the ObjView Java 3D application; they
    can be copied over from the examObj.txt file that ObjView outputs.
    The texture image filename should be placed in the TEX_FNM constant.
    The camera's position may need to be adjusted, by changing the
    X_CAMERA, Y_CAMERA, Z_CAMERA values.
    import javax.microedition.lcdui.*;
    import javax.microedition.m3g.*;
    public class HandCanvas extends Canvas
    implements CommandListener
    private static final String TEX_FNM = "/r.gif";
    // name of tex image file; change as required
    private static final float X_CAMERA = 0.0f;
    private static final float Y_CAMERA = 0.0f;
    private static final float Z_CAMERA = 3.0f;
    // camera coordinates; change as required
    private static final float MODEL_MOVE = 0.2f;
    // distance to move the model up/down/left/right/fwd/back for a key press
    private static final float MODEL_ROT = 5.0f; // 5 degrees
    // angle to rotate the model left/right for a key press
    private HandDisplay top;
    private Graphics3D g3d;
    private Camera camera;
    private Light light;
    private Background bg;
    private VertexBuffer vertBuf;
    // holds the model's positions, normals, colors coords, and tex coords
    private IndexBuffer idxBuf;
    // indices to the model's triangle strips
    private Appearance app;
    private Transform camTrans, modelTrans;
    // transforms used by the camera and the model
    // model position and angle information
    private float xTrans, yTrans, zTrans;
    private int totalDegrees;
    private KeyRepeat keyRepeater; // for repeating key presses
    public HandCanvas(HandDisplay top)
    this.top = top;
    setCommandListener(this);
    keyRepeater = new KeyRepeat(this);
    keyRepeater.start();
    try {
    createScene();
    catch (Exception e)
    { e.printStackTrace(); }
    } // end of HandCanvas()
    public void commandAction(Command c, Displayable d)
    if (c.getCommandType() == Command.EXIT) {
    keyRepeater.cancel();
    keyRepeater = null;
    top.quitApp();
    } // end of commandAction()
    private void createScene() throws Exception
    addCommand( new Command("Exit", Command.EXIT, 1) );
    g3d = Graphics3D.getInstance();
    // create a camera
    camera = new Camera();
    float aspectRatio = ((float) getWidth()) / ((float) getHeight());
    camera.setPerspective(45.0f, aspectRatio, 0.1f, 50.0f);
    // was 60, aspectRatio, 1, 1000
    // set up the camera's position
    camTrans = new Transform();
    camTrans.postTranslate(X_CAMERA, Y_CAMERA, Z_CAMERA);
    // create a light
    light = new Light();
    light.setColor(0xffffff); // white light
    light.setIntensity(1.25f); // over bright
    // initialise the model's transform vars
    modelTrans = new Transform();
    xTrans = 0.0f; yTrans = 0.0f; zTrans = 0.0f;
    totalDegrees = 0;
    makeGeometry();
    makeAppearance();
    bg = new Background();
    bg.setColor(0x9EFEFE); // light blue
    } // end of createScene()
    // ------------------- model creation -----------------------------
    private void makeGeometry()
    /* Read in the values for the vertices, normals, texture coords,
    and colour coords, and create a VertexBuffer object. Also
    read in the strip lengths array to create the index for the
    triangle strips used in the vertex buffer.
    Depending on the model, there may not be any texture or colour
    coordinates, and so the calls related to them should be commented
    out.
    The texture coordinates can use 2, 3, or 4 components, and the
    colour coordinates 3 or 4, which will require changes to the array
    creation code. The code here assumes (s,t) format for texture coords
    (2 components) and RGB for the colours (3 components), the most common
    formats.
    // create vertices
    short[] verts = getVerts();
    VertexArray va = new VertexArray(verts.length/3, 3, 2);
    va.set(0, verts.length/3, verts);
    // create normals
    byte[] norms = getNormals();
    VertexArray normArray = new VertexArray(norms.length/3, 3, 1);
    normArray.set(0, norms.length/3, norms);
    // create texture coordinates
    short[] tcs = getTexCoordsRev();
    VertexArray texArray = new VertexArray(tcs.length/2, 2, 2);
    // this assumes (s,t) texture coordinates
    texArray.set(0, tcs.length/2, tcs);
    // create colour coordinates
    short[] cols = getColourCoords();
    VertexArray colsArray = new VertexArray(cols.length/3, 3, 2);
    // this assumes RGB colour coordinates
    colsArray.set(0, cols.length/3, cols);
    // ------ create the VertexBuffer for the model -------
    vertBuf = new VertexBuffer();
    float[] pbias = {(1.0f/255.0f), (1.0f/255.0f), (1.0f/255.0f)};
    vertBuf.setPositions(va, (2.0f/255.0f), pbias); // scale, bias
    // fix the scale and bias to create points in range [-1 to 1]
    vertBuf.setNormals(normArray);
    // vertBuf.setTexCoords(0, texArray, (1.0f/255.0f), null);
    // fix the scale to create texCoords in range [0 to 1]
    // vertBuf.setColors(colsArray);
    // create the index buffer for the model (this tells MIDP how to
    // create triangle strips from the contents of the vertex buffer).
    idxBuf = new TriangleStripArray(0, getStripLengths() );
    } // end of makeGeometry()
    private short[] getTexCoordsRev()
    // Return an array of texture coords (s,t)
    // with their t coords reversed.
    // This method will need to be commented out if there are
    // no textures used in the model.
    short[] tcs = getTexCoords();
    // t' = 255 - t (will later be scaled from 255 to 1)
    for(int i=1; i < tcs.length; i=i+2)
    tcs = (short)(255 - tcs);
    return tcs;
    } // end of getTexCoordsRev()
    private void makeAppearance() throws Exception
    /* Load the texture and material information into the Appearance
    node.
    Depending on the model, there may not be a texture image, and so
    the texture-specific code here will need to be commented out.
    The material colour and shininess data is obtained from
    setMatColours().
    // load the image for the texture
    Image im = Image.createImage(TEX_FNM);
    // create an Image2D for the Texture2D
    Image2D image2D = new Image2D(Image2D.RGB, im);
    // create the Texture2D and enable mip mapping
    // the texture color is modulated with the lit material color
    Texture2D tex = new Texture2D(image2D);
    tex.setFiltering(Texture2D.FILTER_NEAREST, Texture2D.FILTER_NEAREST);
    tex.setWrapping(Texture2D.WRAP_CLAMP, Texture2D.WRAP_CLAMP);
    // tex.setWrapping(Texture2D.WRAP_REPEAT, Texture2D.WRAP_REPEAT);
    tex.setBlending(Texture2D.FUNC_MODULATE);
    // create the appearance
    app = new Appearance();
    // app.setTexture(0, tex);
    app.setMaterial( setMatColours() );
    } // end of makeAppearance()
    // ------------------ paint the canvas ------------------
    public void paint(Graphics g)
    // bind the canvas graphic to our Graphics3D object
    g3d.bindTarget(g, true, Graphics3D.DITHER | Graphics3D.TRUE_COLOR);
    g3d.clear(bg); // clear the color and depth buffers
    g3d.setCamera(camera, camTrans); // position the camera
    // set up a "headlight": a directional light shining
    // from the direction of the camera
    g3d.resetLights();
    g3d.addLight(light, camTrans);
    updateModelTrans();
    // Render the model. We provide the vertex and index buffers
    // to specify the geometry; the appearance so we know what
    // material and texture to use; and a tranform to position
    // the model
    g3d.render(vertBuf, idxBuf, app, modelTrans);
    g3d.releaseTarget(); // flush
    } // end of paint()
    private void updateModelTrans()
    // the model's transform = a translation * a rotation
    modelTrans.setIdentity(); // reset
    modelTrans.postTranslate(xTrans, yTrans, zTrans);
    modelTrans.postRotate(totalDegrees, 0, 1, 0); // around y-axis
    } // end of updateModelTrans()
    // -----------------key operation methods ---------------------
    public void keyRepeated(int keyCode)
    int gameAction = getGameAction(keyCode);
    if (hasRepeatEvents())
    performAction( gameAction );
    protected void keyPressed(int keyCode)
    int gameAction = getGameAction(keyCode);
    // System.out.println("Can repeat: " + hasRepeatEvents());
    // if this MIDP doesn't support repeated keys
    // then initialise our key repeater
    if (!hasRepeatEvents())
    keyRepeater.startRepeat( gameAction );
    } // end of keyPressed()
    protected void keyReleased(int keyCode)
    int gameAction = getGameAction(keyCode);
    // if this MIDP doesn't support repeated keys
    // then stop our key repeater
    if (!hasRepeatEvents())
    keyRepeater.stopRepeat( gameAction );
    public void performAction(int gameAction)
    // called by KeyRepeat object or the keyRepeated() method
    if (gameAction == UP) {
    moveModel(0,MODEL_MOVE,0); // y up
    else if (gameAction == DOWN) {
    moveModel(0,-MODEL_MOVE,0); // y down
    else if (gameAction == LEFT) {
    moveModel(-MODEL_MOVE,0,0); // x left
    else if (gameAction == RIGHT) {
    moveModel(MODEL_MOVE,0,0); // x right
    else if (gameAction == GAME_A) {
    // System.out.println("fwd");
    moveModel(0,0,MODEL_MOVE); // z fwd
    else if (gameAction == GAME_B) {
    // System.out.println("back");
    moveModel(0,0,-MODEL_MOVE); // z back
    else if (gameAction == GAME_C) {
    // System.out.println("rot left");
    rotYModel(-MODEL_ROT); // rotate left
    else if (gameAction == GAME_D) {
    // System.out.println("rot right");
    rotYModel(MODEL_ROT); // rotate right
    } // end of keyPressed()
    private void moveModel(float x, float y, float z)
    // update the model's translation values
    { xTrans += x; yTrans += y; zTrans += z;
    repaint();
    private void rotYModel(float degrees)
    // update the model's y-axis rotation value
    { totalDegrees += degrees;
    repaint();
    } // end of rotYModel()
    // ----------------- data-specific methods added here -------
    The following methods can be pasted in from the ObjView application
    output stored in examObj.txt:
    private short[] getVerts() {...}
    private byte[] getNormals() {...}
    private short[] getTexCoords() (...}
    private short[] getColourCoords() (...}
    private int[] getStripLengths() {...}
    private Material setMatColours() {...}
    // Methods for model in hand.obj
    private short[] getVerts()
    // return an array holding Verts [2205 values / 3 = 735 points]
    short[] vals = {
    42,114,-5, 47,101,4, 52,114,-2, 47,101,4,
    61,111,-1, 47,101,4, 57,99,4, 50,83,9,
    57,99,4, 62,96,-2, 61,111,-1, 89,69,25,
    87,72,30, 97,68,28, 96,71,35, 101,62,33,
    83,69,38, 90,67,42, 87,72,30, 90,67,42,
    96,71,35, 95,63,46, 96,71,35, 100,66,39,
    101,62,33, 100,66,39, 101,56,38, 100,66,39,
    100,58,43, 95,63,46, 100,58,43, 97,59,47,
    92,51,49, 97,59,47, 87,55,49, 95,63,46,
    87,55,49, 90,67,42, 82,58,46, 83,69,38,
    77,61,42, 83,69,38, 77,69,34, 87,72,30,
    79,70,28, 87,72,30, 82,69,24, 89,69,25,
    82,69,24, 85,62,26, 82,69,24, 78,63,26,
    79,70,28, 74,64,30, 77,69,34, 73,64,36,
    77,61,42, 69,56,37, 77,61,42, 70,52,42,
    82,58,46, 70,52,42, 74,48,46, 70,52,42,
    64,43,40, 70,52,42, 64,46,35, 69,56,37,
    70,57,32, 73,64,36, 70,57,32, 74,64,30,
    70,57,32, 78,63,26, 74,55,28, 85,62,26,
    79,51,27, 85,62,26, 91,58,29, 89,69,25,
    91,58,29, 97,68,28, 91,58,29, 101,62,33,
    95,53,34, 101,56,38, 95,49,40, 100,58,43,
    94,49,45, 92,51,49, 87,40,46, 92,51,49,
    84,42,49, 87,55,49, 79,45,49, 82,58,46,
    79,45,49, 74,48,46, 71,37,46, 74,48,46,
    67,40,43, 64,43,40, 67,40,43, 59,36,38,
    67,40,43, 61,33,42, 67,40,43, 65,31,44,
    71,37,46, 69,29,44, 71,37,46, 76,35,46,
    79,45,49, 76,35,46, 84,42,49, 79,33,43,
    87,40,46, 88,40,41, 94,49,45, 88,40,41,
    95,49,40, 87,42,35, 95,53,34, 84,46,30,
    91,58,29, 84,46,30, 79,51,27, 75,41,26,
    79,51,27, 70,45,26, 74,55,28, 70,45,26,
    70,57,32, 66,47,30, 64,46,35, 59,38,33,
    64,43,40, 59,38,33, 59,36,38, 53,31,34,
    59,36,38, 53,29,39, 61,33,42, 55,27,43,
    65,31,44, 59,24,46, 65,31,44, 64,22,45,
    69,29,44, 69,20,42, 69,29,44, 74,27,40,
    76,35,46, 74,27,40, 79,33,43, 81,32,38,
    88,40,41, 81,34,33, 87,42,35, 78,37,29,
    84,46,30, 78,37,29, 75,41,26, 71,33,24,
    75,41,26, 66,36,23, 70,45,26, 66,36,23,
    66,47,30, 62,38,27, 59,38,33, 56,31,27,
    53,31,34, 51,31,26, 44,26,35, 41,39,27,
    30,29,29, 41,39,27, 31,51,20, 41,55,19,
    31,51,20, 35,68,14, 27,65,9, 32,83,4,
    27,65,9, 26,64,-1, 21,54,1, 26,64,-1,
    29,61,-8, 34,79,-12, 29,61,-8, 39,61,-8,
    36,45,-4, 45,51,2, 46,35,11, 47,41,19,
    51,31,26, 47,41,19, 41,39,27, 47,41,19,
    41,55,19, 47,41,19, 46,55,11, 45,51,2,
    49,67,6, 45,51,2, 47,64,-3, 39,61,-8,
    43,77,-12, 34,79,-12, 39,97,-16, 34,79,-12,
    30,81,-5, 26,64,-1, 30,81,-5, 32,83,4,
    37,102,-1, 32,83,4, 41,84,10, 35,68,14,
    44,69,14, 41,55,19, 44,69,14, 46,55,11,
    44,69,14, 49,67,6, 54,80,3, 49,67,6,
    52,78,-6, 47,64,-3, 52,78,-6, 43,77,-12,
    49,95,-16, 39,97,-16, 43,110,-17, 39,97,-16,
    34,100,-9, 30,81,-5, 34,100,-9, 37,102,-1,
    42,114,-5, 37,102,-1, 47,101,4, 41,84,10,
    50,83,9, 44,69,14, 50,83,9, 54,80,3,
    62,96,-2, 52,78,-6, 59,94,-10, 49,95,-16,
    59,94,-10, 63,107,-13, 62,96,-2, 64,111,-7,
    61,111,-1, 64,111,-7, 54,117,-11, 63,107,-13,
    54,110,-17, 49,95,-16, 54,110,-17, 43,110,-17,
    54,117,-11, 43,110,-17, 42,114,-12, 34,100,-9,
    42,114,-12, 42,114,-5, 54,117,-11, 52,114,-2,
    61,111,-1, 53,31,34, 44,26,35, 53,29,39,
    45,20,42, 55,27,43, 49,17,46, 59,24,46,
    53,14,48, 59,24,46, 58,12,48, 64,22,45,
    64,9,44, 69,20,42, 68,8,38, 69,20,42,
    73,19,36, 74,27,40, 77,26,35, 81,32,38,
    77,26,35, 81,34,33, 77,27,31, 81,34,33,
    75,29,27, 78,37,29, 75,29,27, 71,33,24,
    66,25,23, 66,36,23, 61,28,23, 62,38,27,
    61,28,23, 56,31,27, 52,23,19, 51,31,26,
    52,23,19, 46,35,11, 37,24,4, 36,45,-4,
    23,44,-6, 29,61,-8, 23,44,-6, 21,54,1,
    17,64,-11, 18,67,-3, 15,86,-17, 18,67,-3,
    18,89,-9, 14,91,-1, 14,112,-7, 3,111,-3,
    13,124,-11, 3,111,-3, 3,126,-10, -7,122,-10,
    3,126,-10, 3,127,-19, 13,124,-11, 15,125,-19,
    13,124,-11, 18,110,-15, 14,112,-7, 18,110,-15,
    18,89,-9, 15,107,-22, 15,86,-17, 15,107,-22,
    5,106,-24, 14,121,-24, 4,121,-25, 14,121,-24,
    3,127,-19, 14,121,-24, 15,125,-19, 14,121,-24,
    18,110,-15, 15,107,-22, -21,90,15, -27,101,22,
    -22,91,24, -29,90,31, -22,91,24, -17,76,25,
    -21,90,15, -16,75,16, -21,90,15, -26,88,11,
    -21,90,15, -28,101,16, -27,101,22, -38,102,22,
    -27,101,22, -34,101,28, -29,90,31, -34,101,28,
    -42,97,32, -38,102,22, -42,97,32, -46,97,28,
    -44,85,30, -46,97,28, -47,94,22, -38,102,22,
    -40,97,16, -28,101,16, -30,98,11, -26,88,11,
    -30,98,11, -36,85,14, -40,97,16, -36,85,14,
    -47,94,22, -44,84,22, -44,85,30, -37,70,29,
    -44,85,30, -38,87,34, -42,97,32, -38,87,34,
    -29,90,31, -38,87,34, -31,72,34, -37,70,29,
    -29,52,28, -37,70,29, -37,68,21, -44,84,22,
    -37,68,21, -36,85,14, -30,69,13, -26,88,11,
    -21,72,11, -16,75,16, -21,72,11, -10,59,14,
    -14,55,8, -5,51,10, -4,39,2, -5,51,10,
    -1,62,-7, -4,65,2, -7,86,-6, -4,89,2,
    -7,86,-6, -10,107,-12, -7,86,-6, -3,84,-15,
    -1,62,-7, 8,61,-12, -1,62,-7, 10,36,-6,
    -4,39,2, 10,36,-6, 12,5,1, 24,13,0,
    26,-12,7, 40,6,11, 45,-5,17, 58,14,22,
    63,10,26, 71,22,27, 63,10,26, 74,20,31,
    63,10,26, 68,8,31, 57,-10,30, 60,-8,37,
    52,-22,36, 60,-8,37, 47,-22,41, 56,-7,44,
    47,-22,41, 50,-4,48, 41,-20,46, 44,-2,49,
    35,-20,47, 44,-2,49, 31,-17,46, 40,0,47,
    31,-17,46, 35,2,43, 25,-18,43, 35,2,43,
    20,-11,39, 31,10,38, 20,-11,39, 19,17,29,
    10,12,31, 19,17,29, 8,43,21, 20,49,15,
    6,68,12, 15,69,7, 6,68,12, 5,91,4,
    -4,89,2, -7,109,-5, -10,107,-12, -7,109,-5,
    -7,122,-10, -7,109,-5, 3,111,-3, 5,91,4,
    14,91,-1, 15,69,7, 18,67,-3, 15,69,7,
    21,54,1, 20,49,15, 27,65,9, 20,49,15,
    31,51,20, 20,49,15, 30,29,29, 19,17,29,
    30,29,29, 31,10,38, 44,26,35, 31,10,38,
    45,20,42, 35,2,43, 49,17,46, 40,0,47,
    53,14,48, 44,-2,49, 53,14,48, 50,-4,48,
    58,12,48, 56,-7,44, 64,9,44, 56,-7,44,
    68,8,38, 60,-8,37, 68,8,38, 68,8,31,
    73,19,36, 74,20,31, 77,26,35, 74,20,31,
    77,27,31, 71,22,27, 75,29,27, 71,22,27,
    66,25,23, 58,14,22, 61,28,23, 58,14,22,
    52,23,19, 40,6,11, 37,24,4, 24,13,0,
    23,44,-6, 10,36,-6, 23,44,-6, 8,61,-12,
    17,64,-11, 8,61,-12, 6,84,-19, -3,84,-15,
    -6,105,-20, -10,107,-12, -6,119,-23, -10,107,-12,
    -8,122,-17, -7,122,-10, -8,122,-17, 3,127,-19,
    -6,119,-23, 4,121,-25, -6,119,-23, 5,106,-24,
    -6,105,-20, 5,106,-24, 6,84,-19, 15,86,-17,
    17,64,-11, 12,-123,45, 12,-47,17, 14,-127,44,
    16,-49,17, 17,-128,43, 20,-49,19, 20,-128,44,
    20,-49,22, 21,-127,47, 20,-49,22, 20,-125,49,
    18,-46,26, 17,-121,49, 15,-43,27, 17,-121,49,
    12,-44,27, 15,-122,49, 10,-47,26, 12,-123,45,
    10,-46,20, 12,-47,17, 5,-31,14, 12,-47,17,
    19,-38,13, 16,-49,17, 19,-38,13, 20,-49,19,
    33,-35,20, 20,-49,22, 30,-40,30, 18,-46,26,
    24,-35,40, 15,-43,27, 15,-31,40, 12,-44,27,
    6,-22,39, 12,-44,27, 0,-32,37, 10,-47,26,
    -2,-35,33, 10,-47,26, -1,-38,24, 10,-46,20,
    -1,-38,24, 5,-31,14, -1,-38,24, -8,-27,28,
    -2,-35,33, -5,-25,37, 0,-32,37, -3,-17,40,
    6,-22,39, 2,11,33, 6,-22,39, 13,-18,39,
    15,-31,40, 20,-26,42, 24,-35,40, 27,-27,44,
    24,-35,40, 32,-29,44, 24,-35,40, 38,-32,36,
    30,-40,30, 46,-27,29, 33,-35,20, 50,-10,22,
    33,-35,20, 27,-27,12, 19,-38,13, 17,-24,8,
    5,-31,14, 0,2,6, 5,-31,14, -8,-20,19,
    -8,-27,28, -14,-13,24, -8,-27,28, -13,-14,32,
    -5,-25,37, -9,-13,39, -3,-17,40, -6,11,37,
    2,11,33, -10,38,32, -3,45,23, -17,58,32,
    -11,60,24, -17,58,32, -23,75,32, -17,58,32,
    -24,55,33, -10,38,32, -17,35,33, -6,11,37,
    -13,10,37, -9,-13,39, -18,8,31, -13,-14,32,
    -18,8,31, -14,-13,24, -18,5,22, -14,-13,24,
    -11,3,14, -8,-20,19, -11,3,14, 0,2,6,
    -11,3,14, -16,31,11, -18,5,22, -23,30,20,
    -18,8,31, -23,32,29, -13,10,37, -23,32,29,
    -17,35,33, -23,32,29, -24,55,33, -29,52,28,
    -24,55,33, -31,72,34, -23,75,32, -29,90,31,
    -23,75,32, -17,76,25, -11,60,24, -16,75,16,
    -11,60,24, -10,59,14, -3,45,23, -5,51,10,
    -2,67,11, -4,65,2, -2,67,11, -4,89,2,
    -2,67,11, 6,68,12, -3,45,23, 8,43,21,
    2,11,33, 10,12,31, 13,-18,39, 20,-11,39,
    20,-26,42, 25,-18,43, 27,-27,44, 31,-17,46,
    27,-27,44, 35,-20,47, 32,-29,44, 41,-20,46,
    38,-32,36, 47,-22,41, 46,-27,29, 52,-22,36,
    46,-27,29, 57,-10,30, 50,-10,22, 63,10,26,
    50,-10,22, 45,-5,17, 27,-27,12, 26,-12,7,
    17,-24,8, 12,5,1, 0,2,6, -4,39,2,
    -16,31,11, -23,52,12, -16,31,11, -29,51,20,
    -23,30,20, -29,51,20, -23,32,29, -29,51,20,
    -29,52,28, -29,51,20, -37,68,21, -23,52,12,
    -30,69,13, -23,52,12, -21,72,11, -23,52,12,
    -14,55,8, -23,52,12, -4,39,2 };
    return vals;
    } // end of getVerts()
    private byte[] getNormals()
    // return an array holding Normals [2205 values / 3 = 735 points]
    byte[] vals = {
    -69,95,51, -17,51,116, -4,100,79, -17,51,116,
    66,68,87, -17,51,116, 62,17,111, 61,8,112,
    62,17,111, 122,-29,28, 66,68,87, 33,41,-117,
    -3,127,-8, 79,58,-82, 64,109,19, 114,-3,-59,
    -33,101,72, -10,95,85, -3,127,-8, -10,95,85,
    64,109,19, 47,73,94, 64,109,19, 114,48,34,
    114,-3,-59, 114,48,34, 120,-43,-14, 114,48,34,
    112,-16,59, 47,73,94, 112,-16,59, 64,23,109,
    62,-31,108, 64,23,109, -9,33,123, 47,73,94,
    -9,33,123, -10,95,85, -43,53,109, -33,101,72,
    -65,70,85, -33,101,72, -68,105,29, -3,127,-8,
    -74,94,-46, -3,127,-8, -34,61,-107, 33,41,-117,
    -34,61,-107, 8,-25,-125, -34,61,-107, -69,18,-106,
    -74,94,-46, -102,63,-45, -68,105,29, -103,73,25,
    -65,70,85, -107,60,37, -65,70,85, -84,46,85,
    -43,53,109, -84,46,85, -62,27,108, -84,46,85,
    -95,49,71, -84,46,85, -113,60,10, -107,60,37,
    -101,50,-61, -103,73,25, -101,50,-61, -102,63,-45,
    -101,50,-61, -69,18,-106, -39,11,-122, 8,-25,-125,
    24,-13,-125, 8,-25,-125, 51,-42,-110, 33,41,-117,
    51,-42,-110, 79,58,-82, 51,-42,-110, 114,-3,-59,
    78,-64,-80, 120,-43,-14, 101,-78,-15, 112,-16,59,
    97,-67,50, 62,-31,108, 77,-79,66, 62,-31,108,
    22,-44,118, -9,33,123, -32,5,124, -43,53,109,
    -32,5,124, -62,27,108, -37,-5,123, -62,27,108,
    -69,32,103, -95,49,71, -69,32,103, -87,71,62,
    -69,32,103, -60,57,98, -69,32,103, -25,25,123,
    -37,-5,123, 28,-29,121, -37,-5,123, 12,-56,115,
    -32,5,124, 12,-56,115, 22,-44,118, 67,-87,65,
    77,-79,66, 98,-83,-2, 97,-67,50, 98,-83,-2,
    101,-78,-15, 89,-60,-70, 78,-64,-80, 64,-38,-104,
    51,-42,-110, 64,-38,-104, 24,-13,-125, 46,4,-120,
    24,-13,-125, -28,36,-120, -39,11,-122, -28,36,-120,
    -101,50,-61, -85,60,-75, -113,60,10, -103,75,-15,
    -95,49,71, -103,75,-15, -87,71,62, -72,106,9,
    -87,71,62, -68,83,70, -60,57,98, -49,63,100,
    -25,25,123, -11,39,122, -25,25,123, 42,3,121,
    28,-29,121, 83,-29,93, 28,-29,121, 75,-65,81,
    12,-56,115, 75,-65,81, 67,-87,65, 97,-82,19,
    98,-83,-2, 106,-51,-51, 89,-60,-70, 83,-22,-95,
    64,-38,-104, 83,-22,-95, 46,4,-120, 51,-3,-118,
    46,4,-120, -17,32,-123, -28,36,-120, -17,32,-123,
    -85,60,-75, -76,61,-84, -103,75,-15, -50,94,-71,
    -72,106,9, 64,111,5, -42,88,83, 30,64,107,
    -39,51,111, 30,64,107, -35,52,111, 54,43,108,
    -35,52,111, -36,47,114, -100,55,57, -103,44,62,
    -100,55,57, -120,33,-29, 17,119,-45, -120,33,-29,
    -58,0,-114, -63,-8,-111, -58,0,-114, 43,-38,-115,
    56,-35,-110, 116,-26,-48, 115,0,-57, 119,35,32,
    64,111,5, 119,35,32, 30,64,107, 119,35,32,
    54,43,108, 119,35,32, 122,5,39, 116,-26,-48,
    123,-31,16, 116,-26,-48, 101,-46,-65, 43,-38,-115,
    34,-38,-117, -63,-8,-111, -60,-4,-113, -63,-8,-111,
    -123,24,-26, -120,33,-29, -123,24,-26, -103,44,62,
    -96,50,69, -103,44,62, -30,43,117, -36,47,114,
    71,12,106, 54,43,108, 71,12,106, 122,5,39,
    71,12,106, 123,-31,16, 115,-38,41, 123,-31,16,
    101,-55,-56, 101,-46,-65, 101,-55,-56, 34,-38,-117,
    32,-30,-120, -60,-4,-113, -40,46,-113, -60,-4,-113,
    -117,41,-30, -123,24,-26, -117,41,-30, -96,50,69,
    -69,95,51, -96,50,69, -17,51,116, -30,43,117,
    61,8,112, 71,12,106, 61,8,112, 115,-38,41,
    122,-29,28, 101,-55,-56, 94,-49,-72, 32,-30,-120,
    94,-49,-72, 96,8,-84, 122,-29,28, 116,54,1,
    66,68,87, 116,54,1, 26,121,-33, 96,8,-84,
    31,37,-119, 32,-30,-120, 31,37,-119, -40,46,-113,
    26,121,-33, -40,46,-113, -74,96,-40, -117,41,-30,
    -74,96,-40, -69,95,51, 26,121,-33, -4,100,79,
    66,68,87, -72,106,9, -42,88,83, -68,83,70,
    -66,63,90, -49,63,100, -52,49,106, -11,39,122,
    -17,23,125, -11,39,122, 39,-4,122, 42,3,121,
    80,-26,97, 83,-29,93, 109,-49,46, 83,-29,93,
    112,-52,35, 75,-65,81, 111,-63,14, 97,-82,19,
    111,-63,14, 106,-51,-51, 105,-50,-53, 106,-51,-51,
    82,-28,-94, 83,-22,-95, 82,-28,-94, 51,-3,-118,
    37,-15,-122, -17,32,-123, -12,37,-122, -76,61,-84,
    -12,37,-122, -50,94,-71, 68,33,-103, 64,111,5,
    68,33,-103, 115,0,-57, 69,-28,-104, 56,-35,-110,
    25,-15,-125, -58,0,-114, 25,-15,-125, 17,119,-45,
    91,-7,-90, 127,14,4, 88,-20,-91, 127,14,4,
    127,2,5, 90,29,86, 92,30,84, 12,47,119,
    68,82,71, 12,47,119, -4,99,82, -78,76,68,
    -4,99,82, -14,122,-35, 68,82,71, 94,85,-19,
    68,82,71, 127,16,1, 92,30,84, 127,16,1,
    127,2,5, 93,-15,-87, 88,-20,-91, 93,-15,-87,
    -1,-22,-126, 66,39,-103, -12,42,-121, 66,39,-103,
    -14,122,-35, 66,39,-103, 94,85,-19, 66,39,-103,
    127,16,1, 93,-15,-87, 113,50,-34, 77,95,38,
    107,48,51, 56,40,108, 107,48,51, 111,40,50,
    113,50,-34, 112,41,-46, 113,50,-34, 36,19,-121,
    113,50,-34, 44,100,-67, 77,95,38, -39,122,-10,
    77,95,38, 23,100,77, 56,40,108, 23,100,77,
    -35,64,105, -39,122,-10, -35,64,105, -106,59,41,
    -107,-27,65, -106,59,41, -117,18,-50, -39,122,-10,
    -62,64,-92, 44,100,-67, -13,48,-118, 36,19,-121,
    -13,48,-118, -69,-17,-107, -62,64,-92, -69,-17,-107,
    -117,18,-50, -114,-46,-35, -107,-27,65, -101,-49,62,
    -107,-27,65, -32,-4,124, -35,64,105, -32,-4,124,
    56,40,108, -32,-4,124, -23,-12,125, -101,-49,62,
    -104,-44,61, -101,-49,62, -109,-46,-49, -114,-46,-35,
    -109,-46,-49, -69,-17,-107, -60,-19,-112, 36,19,-121,
    28,19,-124, 112,41,-46, 28,19,-124, 103,63,-42,
    21,48,-117, -88,78,-51, -63,-5,-111, -88,78,-51,
    -104,-27,-70, -128,-4,9, -127,-18,-7, -92,20,86,
    -127,-18,-7, -128,-4,-5, -127,-18,-7, -91,-35,-84,
    -104,-27,-70, -18,-35,-122, -104,-27,-70, -28,-32,-121,
    -63,-5,-111, -28,-32,-121, -21,-29,-123, 34,-28,-120,
    44,-31,-116, 70,-21,-105, 70,-28,-103, 58,-15,-113,
    80,-38,-92, 75,-41,-96, 80,-38,-92, 105,-56,-46,
    80,-38,-92, 108,-55,-40, 99,-56,-60, 109,-63,24,
    97,-84,10, 109,-63,24, 71,-77,74, 78,-46,90,
    71,-77,74, 35,-26,121, 34,-55,111, -17,2,127,
    -11,-25,125, -17,2,127, -50,12,117, -53,29,113,
    -50,12,117, -62,37,106, -54,16,115, -62,37,106,
    -41,31,117, -56,49,104, -41,31,117, -19,46,118,
    6,37,122, -19,46,118, 25,44,118, -4,66,110,
    15,50,117, 94,42,76, 15,50,117, 14,41,120,
    -92,20,86, -73,31,101, -128,-4,-5, -73,31,101,
    -78,76,68, -73,31,101, 12,47,119, 14,41,120,
    90,29,86, 94,42,76, 127,14,4, 94,42,76,
    17,119,-45, -4,66,110, -100,55,57, -4,66,110,
    -35,52,111, -4,66,110, -39,51,111, -19,46,118,
    -39,51,111, -56,49,104, -42,88,83, -56,49,104,
    -66,63,90, -62,37,106, -52,49,106, -53,29,113,
    -17,23,125, -17,2,127, -17,23,125, 35,-26,121,
    39,-4,122, 78,-46,90, 80,-26,97, 78,-46,90,
    109,-49,46, 109,-63,24, 109,-49,46, 108,-55,-40,
    112,-52,35, 105,-56,-46, 111,-63,14, 105,-56,-46,
    105,-50,-53, 75,-41,-96, 82,-28,-94, 75,-41,-96,
    37,-15,-122, 58,-15,-113, -12,37,-122, 58,-15,-113,
    68,33,-103, 70,-21,-105, 69,-28,-104, 34,-28,-120,
    25,-15,-125, -28,-32,-121, 25,-15,-125, -18,-35,-122,
    91,-7,-90, -18,-35,-122, -8,-34,-123, -91,-35,-84,
    -77,-29,-98, -128,-4,-5, -78,25,-98, -128,-4,-5,
    -106,67,-25, -78,76,68, -106,67,-25, -14,122,-35,
    -78,25,-98, -12,42,-121, -78,25,-98, -1,-22,-126,
    -77,-29,-98, -1,-22,-126, -8,-34,-123, 88,-20,-91,
    91,-7,-90, -127,-9,-11, -74,-38,-98, -64,-36,-105,
    2,-41,-121, 22,-39,-120, 81,-49,-87, 111,-19,-61,
    119,-43,18, 127,5,11, 119,-43,18, 98,25,78,
    49,-43,110, 14,35,122, 3,-48,119, 14,35,122,
    -24,-34,121, -88,21,90, -92,-59,67, -127,-9,-11,
    -108,-53,-43, -74,-38,-98, -70,-49,-96, -74,-38,-98,
    17,-46,-119, 2,-41,-121, 17,-46,-119, 81,-49,-87,
    83,-72,-66, 119,-43,18, 64,-105,36, 49,-43,110,
    -3,-81,99, 3,-48,119, -24,-50,115, -24,-34,121,
    -5,-15,127, -24,-34,121, -15,-59,113, -92,-59,67,
    -86,-80,51, -92,-59,67, -97,-78,-29, -108,-53,-43,
    -97,-78,-29, -70,-49,-96, -97,-78,-29, -112,-62,-12,
    -86,-80,51, -84,-50,83, -15,-59,113, -1,-5,127,
    -5,-15,127, 34,31,119, -5,-15,127, -15,19,126,
    -24,-50,115, -36,-5,123, -3,-81,99, -33,-27,121,
    -3,-81,99, 21,-72,104, -3,-81,99, 60,-95,61,
    64,-105,36, 89,-90,-22, 83,-72,-66, 80,-43,-90,
    83,-72,-66, 56,-41,-108, 17,-46,-119, -6,-38,-122,
    -70,-49,-96, -58,-29,-111, -70,-49,-96, -88,-50,-79,
    -112,-62,-12, -118,-40,-30, -112,-62,-12, -116,-41,36,
    -84,-50,83, -69,-14,107, -1,-5,127, 15,19,126,
    34,31,119, 45,24,117, 56,61,98, 65,24,107,
    110,45,47, 65,24,107, 61,23,110, 65,24,107,
    -20,-9,126, 45,24,117, -29,5,125, 15,19,126,
    -63,2,112, -69,-14,107, -120,-21,39, -116,-41,36,
    -120,-21,39, -118,-40,-30, -117,-27,-45, -118,-40,-30,
    -88,-29,-89, -88,-50,-79, -88,-29,-89, -58,-29,-111,
    -88,-29,-89, -86,-24,-92, -117,-27,-45, -121,-31,-27,
    -120,-21,39, -109,-25,63, -63,2,112, -109,-25,63,
    -29,5,125, -109,-25,63, -20,-9,126, -104,-44,61,
    -20,-9,126, -23,-12,125, 61,23,110, 56,40,108,
    61,23,110, 111,40,50, 110,45,47, 112,41,-46,
    110,45,47, 103,63,-42, 56,61,98, -88,78,-51,
    -97,36,76, -128,-4,9, -97,36,76, -92,20,86,
    -97,36,76, 15,50,117, 56,61,98, 25,44,118,
    34,31,119, 6,37,122, -15,19,126, -41,31,117,
    -36,-5,123, -54,16,115, -33,-27,121, -50,12,117,
    -33,-27,121, -11,-25,125, 21,-72,104, 34,-55,111,
    60,-95,61, 71,-77,74, 89,-90,-22, 97,-84,10,
    89,-90,-22, 99,-56,-60, 80,-43,-90, 80,-38,-92,
    80,-43,-90, 70,-28,-103, 56,-41,-108, 44,-31,-116,
    -6,-38,-122, -21,-29,-123, -58,-29,-111, -63,-5,-111,
    -86,-24,-92, -72,-16,-105, -86,-24,-92, -116,-40,-37,
    -121,-31,-27, -116,-40,-37, -109,-25,63, -116,-40,-37,
    -104,-44,61, -116,-40,-37, -109,-46,-49, -72,-16,-105,
    -60,-19,-112, -72,-16,-105, 28,19,-124, -72,-16,-105,
    21,48,-117, -72,-16,-105, -63,-5,-111 };
    return vals;
    } // end of getNormals()
    private int[] getStripLengths()
    // return an array holding the lengths of each triangle strip
    int[] lens = {
    11, 5, 257, 77, 199, 186
    return lens;
    } // end of getStripLengths()
    private Material setMatColours()
    // set the material's colour and shininess values
    Material mat = new Material();
    mat.setColor(Material.AMBIENT, 0x00765D4D);
    mat.setColor(Material.EMISSIVE, 0x00000000);
    mat.setColor(Material.DIFFUSE, 0xFF876A56);
    mat.setColor(Material.SPECULAR, 0x004D4D4D);
    mat.setShininess(60.0f);
    return mat;
    } // end of setMatColours()
    } // end of HandCanvas class
    -- class 3 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    // KeyRepeat.java
    // Andrew Davison, [email protected], July 2004
    /* Repeat key presses. The repetition speed is slow at first
    then speeds up after a certain amount of time.
    Based on ideas from the article:
    "Using the Low-level GUI - Repeating Keys"
    Roman Bialach, microdevnet, August 2001
    http://www.microjava.com/articles/techtalk/repeating
    import javax.microedition.lcdui.*;
    public class KeyRepeat extends Thread
    p

    Hi,
    I hope your problem is solved within the thread at http://forum.java.sun.com/thread.jspa?threadID=577857. Anyway, there are Java 3D examples bundled with latest netBeans Mobility Pack (see http://www.netbeans.info/downloads/download.php?type=rc2&p=1 for both netBeans 4.0 RC2 and said Mobility Pack). These will give you overview of what can and can't be done using Java 3D.
    Peter

  • 10+ GB files created in private folder, aslmanager using 94% CPU, HELP!

    My computer seemed to be running ok, but huge chunks of disk space kept dissappearing, until when I knew I ought to have at least 11 GB open on the drive, I started getting pop up dialogue boxes warning of no more drive space available for application memory or that sort of thing. Trying to track the problem down I got Onyx and used it to be sure all daily, monthly, and weekly scripts had run. That didn't affect these files, either in size or number. I also ran the cleaning protocols - that didn't help much at all. A couple of times chunks of disk space would magically reappear, up to 2 or 3 GB, but then the space would very very rapidly disappear again.
    Then I got a program called "Grand Perspective" that maps your drive, and found huge private/var/log/asl files that were up to 5 GB, and, yes, I do mean these files are Gigabite, in size, not MB.
    After using console to see the last 16 MB of a couple of these files, and not being able to tell anything from them other than that the dates from a log file dated 2010.10.16.asl was showing entries from Feb & Mar, which seemed very odd... Anyhow, I deleted all but the last day of those log files (one of those I did NOT delete was over 1.5 GB).
    I also found and deleted a private/var/log/daily.out file that was over 5 GB.
    I did not delete the private/var/log/asl files with different names than those with dates. In other words, I did NOT delete (today's size shown for each) 2010.11.15.asl at 553MB, 2010.11.15.U501.asl at 1.72 GB, LongTTL.asl at 1.2 MB, LongTTL.UO.asl at 8 KB, StoreData at 4Kb, SweepStore at 0Kb.
    Before deleting all of the previous private/var/log/asl dated files, the computer was for the most part running fine, but had run out of free disk space when I knew it ought to have had at least 11 GB open (e.g., >10% of the drive) - so it kept hanging up, I'd free up a few hundred MB with Onyx, reboot a few times, etc., and it'd just fill up and hang again in no time....
    After deleting those files, I had over 17 GB free disk space and I rebooted. I believe I then ran onxy both maintenance and cleaning functions.
    Now computer is hanging, and/or firefox is hanging or very slow to respond. Space was rapidly disappearing again. Using Grand Perspective again late this morning, I discovered a new file, private/tmp/periodic.vNHob2vCOj created at 3:15 am, that was already over 7.5 GB. Within an hour it was over 8.5 GB, and now it is over 10.5 GB, and I'm down to 11 GB available disk space. Yesterdays asl log files (the huge ones) are still there, along with two new and reasonably small ones for today.
    So when the computer and/or firefox starts hanging, and the fans really rev up (which is happening very frequently today) I opened the activity monitor. It seems that the fans aren't always rev'ing when its hanging, but often are or begin to shortly after the computer drastically slows down - and I hadn't noticed this before I deleted all those large files.
    From the activity monitor, it seems that the aslmanager is using up to as high as 88% or more of my CPU that I've seen so far. Even when the CPU use is down around 3 or 4%, it may be using as much as over 1.18 GB real memory, and AT THE SAME TIME 1.8 GB (yes, gigabite!) of virtual memory.
    I tried quitting firefox to see if that made any difference, but even then the aslmanager is still using massive amounts of CPU and memory.
    Syslog is also periodically using as high as 94% of CPU that I've seen, although this seems much less common than the aslmanager problem.
    I sampled or used console to copy some of the text in that daily.out file before I deleted it. I also sampled the syslog when it was using 68% of CPU, and the aslmanager when it was using either a lot of CPU or memory or both, I don't recall which for sure. I also used console to display the last 16 MB of that private/tmp/periodic.vNHob2vCOj file and copy it to an rtf file.
    I can of course post parts of any of these if it would help determine what is causing this problem.
    As you can imagine, I'm desperate to know what in the world is going on here and how to fix it!!! I would be incredibly grateful for your help in resolving this problem.

    I may have inadvertently fixed the problem. The one file had grown to over 12.5 GB, so I was going to try the sudo commands listed in this article: http://reviews.cnet.com/8301-13727_7-10329979-263.html and then delete that file. The commands didn't seem to work - both aslmanager and syslogd were still showing in the activity monitor and it didn't create a temp file on the desktop. I thought perhaps because the friend who gave me this computer left the admin password blank, so I went to change it to a real password. In the process the computer completely hung, so I rebooted. That 12 GB file is gone, at least so far and I haven't heard the fans (have only been back up for a few minutes tho so we'll see).
    Even so, going to console as you suggested - it looks like tons of aslmanager lines, but I haven't got a clue what it was doing, perhaps you can tell? For future reference... I have no idea how much of this is after it hung completely and I had to hold down the button to force it to shutdown, and then I rebooted...so apologies for copying more here than probably is needed:
    Nov 16 15:41:41 ip68-108-69-78 aslmanager[2289]: aslmanager(2289) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 15:41:41 ip68-108-69-78 aslmanager[2289]: aslmanager(2289) malloc: * mmap(size=3778068480) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 15:45:48 ip68-108-69-78 /usr/sbin/spindump[2352]: process 2313 is being monitored
    Nov 16 15:46:02 ip68-108-69-78 /usr/sbin/spindump[2352]: process 2313 is being no longer being monitored
    Nov 16 15:47:43 ip68-108-69-78 com.apple.aslmanager[2289]: aslmanager(2289) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 15:47:43 ip68-108-69-78 aslmanager[2289]: aslmanager(2289) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 15:47:43 ip68-108-69-78 com.apple.aslmanager[2289]: * error: can't allocate region
    Nov 16 15:47:43 ip68-108-69-78 com.apple.aslmanager[2289]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 15:48:52 ip68-108-69-78 ReportCrash[2354]: Formulating crash report for process aslmanager[2289]
    Nov 16 15:48:53 ip68-108-69-78 com.apple.launchd[1] (com.apple.aslmanager[2289]): Exited abnormally: Segmentation fault
    Nov 16 15:48:53 ip68-108-69-78 ReportCrash[2354]: Saved crashreport to /Library/Logs/CrashReporter/aslmanager2010-11-16-154852Macintosh-4.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Nov 16 16:02:29 ip68-108-69-78 /usr/sbin/spindump[2370]: process 2369 is being monitored
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 16:08:31 ip68-108-69-78 aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: * error: can't allocate region
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: * error: can't allocate region
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=3778068480) failed (error code=12)
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: * error: can't allocate region
    Nov 16 16:08:31 ip68-108-69-78 com.apple.aslmanager[2355]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:08:31 ip68-108-69-78 aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:08:31 ip68-108-69-78 aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=3778068480) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:12:52 ip68-108-69-78 aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:12:53 ip68-108-69-78 com.apple.aslmanager[2355]: aslmanager(2355) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 16:12:53 ip68-108-69-78 com.apple.aslmanager[2355]: * error: can't allocate region
    Nov 16 16:12:53 ip68-108-69-78 com.apple.aslmanager[2355]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:13:44 ip68-108-69-78 ReportCrash[2380]: Formulating crash report for process aslmanager[2355]
    Nov 16 16:13:44 ip68-108-69-78 com.apple.launchd[1] (com.apple.aslmanager[2355]): Exited abnormally: Segmentation fault
    Nov 16 16:13:44 ip68-108-69-78 ReportCrash[2380]: Saved crashreport to /Library/Logs/CrashReporter/aslmanager2010-11-16-161343Macintosh-4.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 16:34:11 ip68-108-69-78 aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: * error: can't allocate region
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: * error: can't allocate region
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=3778068480) failed (error code=12)
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: * error: can't allocate region
    Nov 16 16:34:11 ip68-108-69-78 com.apple.aslmanager[2386]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:34:11 ip68-108-69-78 aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:34:11 ip68-108-69-78 aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=3778068480) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:39:52 ip68-108-69-78 aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:39:52 ip68-108-69-78 com.apple.aslmanager[2386]: aslmanager(2386) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 16:39:52 ip68-108-69-78 com.apple.aslmanager[2386]: * error: can't allocate region
    Nov 16 16:39:52 ip68-108-69-78 com.apple.aslmanager[2386]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 16:41:23 ip68-108-69-78 ReportCrash[2407]: Formulating crash report for process aslmanager[2386]
    Nov 16 16:41:23 ip68-108-69-78 com.apple.launchd[1] (com.apple.aslmanager[2386]): Exited abnormally: Segmentation fault
    Nov 16 16:41:23 ip68-108-69-78 ReportCrash[2407]: Saved crashreport to /Library/Logs/CrashReporter/aslmanager2010-11-16-164122Macintosh-4.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Nov 16 16:44:13 ip68-108-69-78 SoftwareUpdateCheck[2410]: Checking for updates
    Nov 16 16:45:29 ip68-108-69-78 SoftwareUpdateCheck[2410]: Downloading "Security Update 2010-007"
    Nov 16 16:48:31 ip68-108-69-78 SoftwareUpdateCheck[2410]: Auto-download of "Security Update 2010-007" SUCCESSFUL.
    Nov 16 16:48:31 ip68-108-69-78 SoftwareUpdateCheck[2410]: Downloading "iTunes"
    Nov 16 16:49:01: --- last message repeated 2 times ---
    Nov 16 16:49:36 ip68-108-69-78 SoftwareUpdateCheck[2410]: Downloading "iTunes"
    Nov 16 16:49:38 ip68-108-69-78 SoftwareUpdateCheck[2410]: Auto-download of "iTunes" SUCCESSFUL.
    Nov 16 16:49:40 ip68-108-69-78 Software Update[2420]: arguments=(null)
    Nov 16 16:50:04 ip68-108-69-78 /usr/sbin/spindump[2424]: process 2420 is being monitored
    Nov 16 16:50:24 ip68-108-69-78 com.apple.launchd[82] ([0x0-0xdb0db].SoftwareUpdateCheck[2410]): Exited with exit code: 102
    Nov 16 17:02:20 ip68-108-69-78 aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 17:02:20 ip68-108-69-78 aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:02:20 ip68-108-69-78 aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=3778068480) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: * error: can't allocate region
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: * error: can't allocate region
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=3778068480) failed (error code=12)
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: * error: can't allocate region
    Nov 16 17:02:20 ip68-108-69-78 com.apple.aslmanager[2409]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:07:41 ip68-108-69-78 aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:07:41 ip68-108-69-78 com.apple.aslmanager[2409]: aslmanager(2409) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 17:07:41 ip68-108-69-78 com.apple.aslmanager[2409]: * error: can't allocate region
    Nov 16 17:07:41 ip68-108-69-78 com.apple.aslmanager[2409]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:08:58 ip68-108-69-78 ReportCrash[2439]: Formulating crash report for process aslmanager[2409]
    Nov 16 17:08:58 ip68-108-69-78 com.apple.launchd[1] (com.apple.aslmanager[2409]): Exited abnormally: Segmentation fault
    Nov 16 17:08:58 ip68-108-69-78 ReportCrash[2439]: Saved crashreport to /Library/Logs/CrashReporter/aslmanager2010-11-16-170857Macintosh-4.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Nov 16 17:30:17 ip68-108-69-78 /usr/sbin/spindump[2463]: process 2313 is being monitored
    Nov 16 17:30:58 ip68-108-69-78 /usr/sbin/spindump[2463]: process 2313 is being no longer being monitored
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 17:33:53 ip68-108-69-78 aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: * error: can't allocate region
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: * error: can't allocate region
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=3778068480) failed (error code=12)
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: * error: can't allocate region
    Nov 16 17:33:53 ip68-108-69-78 com.apple.aslmanager[2446]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:33:53 ip68-108-69-78 aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:33:53 ip68-108-69-78 aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=3778068480) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:36:40 ip68-108-69-78 /usr/sbin/spindump[2468]: process 2313 is being monitored
    Nov 16 17:37:05 ip68-108-69-78 /usr/sbin/spindump[2468]: process 2313 is being no longer being monitored
    Nov 16 17:37:24 ip68-108-69-78 /usr/sbin/spindump[2468]: process 105 is being monitored
    Nov 16 17:37:25 ip68-108-69-78 /usr/sbin/spindump[2468]: process 105 is being no longer being monitored
    Nov 16 17:43:22 ip68-108-69-78 aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:43:22 ip68-108-69-78 com.apple.aslmanager[2446]: aslmanager(2446) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 17:43:22 ip68-108-69-78 com.apple.aslmanager[2446]: * error: can't allocate region
    Nov 16 17:43:22 ip68-108-69-78 com.apple.aslmanager[2446]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 17:44:33 ip68-108-69-78 ReportCrash[2475]: Formulating crash report for process aslmanager[2446]
    Nov 16 17:44:34 ip68-108-69-78 com.apple.launchd[1] (com.apple.aslmanager[2446]): Exited abnormally: Segmentation fault
    Nov 16 17:44:34 ip68-108-69-78 ReportCrash[2475]: Saved crashreport to /Library/Logs/CrashReporter/aslmanager2010-11-16-174433Macintosh-4.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Nov 16 17:56:42 ip68-108-69-78 com.apple.launchd[82] (0x10a9e0.Locum[2486]): Exited: Terminated
    Nov 16 18:03:26 ip68-108-69-78 aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 18:03:26 ip68-108-69-78 aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: * error: can't allocate region
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: * error: can't allocate region
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=3778068480) failed (error code=12)
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: * error: can't allocate region
    Nov 16 18:03:26 ip68-108-69-78 com.apple.aslmanager[2476]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:03:26 ip68-108-69-78 aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=3778068480) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:06:24 ip68-108-69-78 /usr/sbin/spindump[2499]: process 2313 is being monitored
    Nov 16 18:07:26 ip68-108-69-78 /usr/sbin/spindump[2499]: process 2313 is being no longer being monitored
    Nov 16 18:07:44 ip68-108-69-78 /usr/sbin/spindump[2499]: process 2313 is being monitored
    Nov 16 18:08:02 ip68-108-69-78 /usr/sbin/spindump[2499]: process 2313 is being no longer being monitored
    Nov 16 18:08:24 ip68-108-69-78 /usr/sbin/spindump[2499]: process 2313 is being monitored
    Nov 16 18:08:30 ip68-108-69-78 /usr/sbin/spindump[2499]: process 2313 is being no longer being monitored
    Nov 16 18:11:16 ip68-108-69-78 com.apple.launchd[82] ([0x0-0xd00d0].org.mozilla.firefox[2313]): Exited: Terminated
    Nov 16 18:13:03 ip68-108-69-78 quicklookd[2507]: [QL ERROR] 'Creating thumbnail' timed out for '<QLThumbnailRequest <a class="jive-link-external-small" href="file://">file://localhost/Users/***/Sites/index.html>'
    Nov 16 18:13:08 ip68-108-69-78 login[2513]: USER_PROCESS: 2513 ttys000
    Nov 16 18:13:30 ip68-108-69-78 Finder[105]: [QL ERROR] Generator database update takes too long... we will use what we currently have
    Nov 16 18:13:41: --- last message repeated 1 time ---
    Nov 16 18:13:41 ip68-108-69-78 aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=4294901760) failed (error code=12)\n* error: can't allocate region\n* set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:13:41 ip68-108-69-78 com.apple.aslmanager[2476]: aslmanager(2476) malloc: * mmap(size=4294901760) failed (error code=12)
    Nov 16 18:13:41 ip68-108-69-78 com.apple.aslmanager[2476]: * error: can't allocate region
    Nov 16 18:13:41 ip68-108-69-78 com.apple.aslmanager[2476]: * set a breakpoint in mallocerrorbreak to debug
    Nov 16 18:14:32 ip68-108-69-78 GrandPerspective[2524]: Scanning entire volume / [Macintosh HD].
    Nov 16 18:14:32 ip68-108-69-78 GrandPerspective[2524]: Allocating tree in default memory zone.
    Nov 16 18:14:45 ip68-108-69-78 ReportCrash[2528]: Formulating crash report for process aslmanager[2476]
    Nov 16 18:14:45 ip68-108-69-78 com.apple.launchd[1] (com.apple.aslmanager[2476]): Exited abnormally: Segmentation fault
    Nov 16 18:14:45 ip68-108-69-78 ReportCrash[2528]: Saved crashreport to /Library/Logs/CrashReporter/aslmanager2010-11-16-181445Macintosh-4.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Nov 16 18:19:34 ip68-108-69-78 /usr/sbin/ocspd[2535]: starting
    Nov 16 18:19:35 ip68-108-69-78 Help Viewer[2534]: Error trying to read /Users/***/Library/Caches/com.apple.helpui/Activity Monitor Help/ActivityMonitorHelp.helpindex.temporary: * -initForReadingWithData: nil argument
    Nov 16 18:20:03: --- last message repeated 6 times ---
    Nov 16 18:20:03 ip68-108-69-78 GrandPerspective[2524]: Done scanning: 148064 folders scanned (62 skipped) in 331.12s.
    Nov 16 18:31:38 localhost com.apple.launchctl.System[2]: fsck_hfs: Volume is journaled. No checking performed.
    Nov 16 18:31:38 localhost com.apple.launchctl.System[2]: fsck_hfs: Use the -f option to force checking.
    Nov 16 18:31:43 localhost com.apple.launchctl.System[2]: BootCacheControl: could not open /var/db/BootCache.playlist: No such file or directory
    Nov 16 18:31:43 localhost com.apple.launchctl.System[2]: BootCacheControl: could not unlink playlist /var/db/BootCache.playlist: Unknown error: -1
    Nov 16 18:31:44 localhost com.apple.launchctl.System[2]: launchctl: Please convert the following to launchd: /etc/machinit.d/airportwps.plist
    Nov 16 18:31:44 localhost com.apple.launchctl.System[2]: launchctl: Please convert the following to launchd: /etc/mach_init.d/dashboardadvisoryd.plist
    Nov 16 18:31:44 localhost com.apple.launchd[1] (com.apple.blued): Unknown key for boolean: EnableTransactions
    Nov 16 18:31:44 localhost com.apple.launchd[1] (com.apple.RemoteDesktop.PrivilegeProxy): Unknown key for boolean: EnableTransactions
    Nov 16 18:31:44 localhost com.apple.launchd[1] (com.apple.usbmuxd): Unknown key for boolean: EnableTransactions
    Nov 16 18:31:44 localhost com.apple.launchd[1] (org.cups.cupsd): Unknown key: SHAuthorizationRight
    Nov 16 18:31:44 localhost com.apple.launchd[1] (org.ntp.ntpd): Unknown key: SHAuthorizationRight
    Nov 16 18:31:44 localhost com.apple.launchd[1] (org.x.privileged_startx): Unknown key for boolean: EnableTransactions
    Nov 16 18:31:46 localhost kernel[0]: family specific matching fails
    Nov 16 18:31:46 localhost kextd[10]: 433 cached, 0 uncached personalities to catalog
    Nov 16 18:31:46 localhost kernel[0]: UHCI Root Hub Simulation: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: IR Receiver: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: UHCI Root Hub Simulation: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: IOUSBWirelessControllerDevice: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: EHCI Root Hub Simulation: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: Built-in iSight: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: Matching service count = 14
    Nov 16 18:31:46 localhost kernel[0]: Previous Shutdown Cause: 3
    Nov 16 18:31:46 localhost kernel[0]: IOUSBInterface: family specific matching fails
    Nov 16 18:31:46: --- last message repeated 1 time ---
    Nov 16 18:31:46 localhost kernel[0]: Apple Internal Keyboard: match category IODefaultMatchCategory exists
    Nov 16 18:31:46 localhost kernel[0]: Touchpad: match category IODefaultMatchCategory exists
    Nov 16 18:31:46 localhost kernel[0]: IOUSBInterface: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: Apple Internal Keyboard: match category IODefaultMatchCategory exists
    Nov 16 18:31:46 localhost kernel[0]: AppleTyMCEDriver::probe(MacBookPro1,1)
    Nov 16 18:31:46 localhost kernel[0]: AppleTyMCEDriver::probe fails
    Nov 16 18:31:46 localhost kernel[0]: display: family specific matching fails
    Nov 16 18:31:46 localhost kernel[0]: IOUSBInterface: family specific matching fails
    Nov 16 18:31:47: --- last message repeated 1 time ---
    Nov 16 18:31:47 localhost com.apple.kextd[10]: 16AtherosInterface is not compatible with its superclass, 16IO80211Interface superclass changed?
    Nov 16 18:31:47 localhost kextd[13]: a link/load error occured for kernel extension /System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros54 24.kext
    Nov 16 18:31:47 localhost kernel[0]: ath_attach: devid 0x1c
    Nov 16 18:31:48 localhost kernel[0]: mac 10.3 phy 6.1 radio 10.2
    Nov 16 18:31:49 localhost bootlog[38]: BOOT_TIME: 1289961093 0
    Nov 16 18:31:50 localhost fseventsd[29]: event logs in /.fseventsd out of sync with volume. destroying old logs. (97853 17 97892)
    Nov 16 18:31:50 localhost fseventsd[29]: log dir: /.fseventsd getting new uuid: 8A9E53F0-C08C-42C1-B283-2F44E175ACAA
    Nov 16 18:31:50 localhost rpc.statd[20]: statd.notify - no notifications needed
    Nov 16 18:31:54 localhost DirectoryService[34]: Launched version 5.8.1 (v514.27)
    Nov 16 18:31:56 localhost DirectoryService[34]: Improper shutdown detected
    Nov 16 18:31:58 localhost kextd[10]: writing kernel link data to /var/run/mach.sym
    Nov 16 18:31:59 localhost /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow[25]: Login Window Application Started -- Threaded auth
    Nov 16 18:32:00 localhost kernel[0]: yukon: Ethernet address 00:16:cb:a6:4c:a5
    Nov 16 18:32:00 localhost kernel[0]: AirPort_Athr5424ab: Ethernet address 00:17:f2:45:da:c8
    Nov 16 18:32:00 localhost blued[46]: Apple Bluetooth daemon started.
    Nov 16 18:32:05 localhost mDNSResponder mDNSResponder-176.3 (Sep 30 2008 16:59:38)[24]: starting
    Nov 16 18:32:06 localhost kernel[0]: AirPort: Link Down on en1
    Nov 16 18:32:06 localhost com.apple.usbmuxd[17]: usbmuxd-201 built for iTunesTen on Aug 12 2010 at 17:33:03, running 32 bit
    Nov 16 18:32:07 localhost configd[36]: AppleTalk startup
    Nov 16 18:32:07 Macintosh-4 configd[36]: setting hostname to "Macintosh-4.local"
    Nov 16 18:32:07 Macintosh-4 airportd[53]: AirPort off, bailing - GetPower() = off (0)
    Nov 16 18:32:07 Macintosh-4 kernel[0]: Ethernet [AppleYukon2]: Link up on en0, 100-Megabit, Full-duplex, Symmetric flow-control, Debug [796d,6d0c,0de1,0200,45e1,4000]
    Nov 16 18:32:11 Macintosh-4 configd[36]: subnet_route: write routing socket failed, Network is unreachable
    Nov 16 18:32:11 Macintosh-4 /usr/sbin/ocspd[69]: starting
    Nov 16 18:32:12 ip68-108-69-78 configd[36]: setting hostname to "ip68-108-69-78.lv.lv.cox.net"
    Nov 16 18:32:13 ip68-108-69-78 configd[36]: AppleTalk startup complete
    Nov 16 18:32:13 ip68-108-69-78 configd[36]: AppleTalk shutdown
    Nov 16 18:32:13 ip68-108-69-78 configd[36]: AppleTalk shutdown complete
    Nov 16 18:32:17 ip68-108-69-78 sandbox-compilerd[41]: bootstraplook_up_peruser slow answer, took 11.717081 seconds, shouldn't have taken more then 5
    Nov 16 18:32:36 ip68-108-69-78 loginwindow[25]: Login Window Started Security Agent
    Nov 16 18:32:38 ip68-108-69-78 authorizationhost[84]: MechanismInvoke 0x12aab0 retainCount 2
    Nov 16 18:32:38 ip68-108-69-78 SecurityAgent[86]: MechanismInvoke 0x101600 retainCount 1
    Nov 16 18:32:38 ip68-108-69-78 SecurityAgent[86]: MechanismDestroy 0x101600 retainCount 1
    Nov 16 18:32:38 ip68-108-69-78 authorizationhost[84]: MechanismDestroy 0x12aab0 retainCount 2
    Nov 16 18:32:38 ip68-108-69-78 loginwindow[25]: Login Window - Returned from Security Agent
    Nov 16 18:32:38 ip68-108-69-78 loginwindow[25]: USER_PROCESS: 25 console
    Nov 16 18:32:39 ip68-108-69-78 com.apple.launchd[1] (com.apple.UserEventAgent-LoginWindow[81]): Exited: Terminated
    Nov 16 18:32:39 ip68-108-69-78 com.apple.launchctl.Aqua[91]: launchctl: Please convert the following to launchd: /etc/machinit_peruser.d/RemoteUI.plist
    Nov 16 18:32:39 ip68-108-69-78 com.apple.launchd[88] (com.apple.AirPortBaseStationAgent): Unknown key for boolean: EnableTransactions
    Nov 16 18:32:39 ip68-108-69-78 com.apple.launchd[88] (org.x.startx): Unknown key for boolean: EnableTransactions
    Nov 16 18:32:39 ip68-108-69-78 airportd[53]: AirPort off, bailing - GetPower() = off (0)
    Nov 16 18:32:51 ip68-108-69-78 KernelEventAgent[26]: tid 00000000 received VQ_LOWDISK event (4)
    Nov 16 18:32:52 ip68-108-69-78 fseventsd[29]: log dir: /Volumes/PHONE/.fseventsd getting new uuid: 89D4642C-EB05-46B5-9AFF-395C0FDF2FD4
    Nov 16 18:32:55 ip68-108-69-78 /System/Library/CoreServices/coreservicesd[45]: SFLSharePointsEntry::CreateDSRecord: dsCreateRecordAndOpen(***'s Public Folder) returned -14135
    Nov 16 18:33:17 ip68-108-69-78 loginwindow[25]: Unable to resolve startup item: status = -43, theURL == NULL = 1
    Nov 16 18:33:21 ip68-108-69-78 mdworker[75]: (Error) SyncInfo: Catalog changed during searchfs too many time. Falling back to fsw search /
    Nov 16 18:33:22 ip68-108-69-78 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer[1 06]: CPSGetProcessInfo(): This call is deprecated and should not be called anymore.
    Nov 16 18:33:22 ip68-108-69-78 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer[1 06]: CPSPBGetProcessInfo(): This call is deprecated and should not be called anymore.
    Nov 16 18:33:26 ip68-108-69-78 quicklookd[126]: [QL ERROR] 'Creating thumbnail' timed out for '<QLThumbnailRequest /Users/***/Desktop/AGW Consensus NOT.doc>'
    Nov 16 18:33:53 ip68-108-69-78 quicklookd[136]: [QL ERROR] 'Creating thumbnail' timed out for '<QLThumbnailRequest /Users/***/Desktop/downton_abbey.s01E06 si hunt.avi>'
    Nov 16 18:34:28 ip68-108-69-78 com.apple.launchd[88] (0x1097d0.Locum[141]): Exited: Terminated
    Nov 16 18:37:49 ip68-108-69-78 Dock[105]: [QL ERROR] Generator database update takes too long... we will use what we currently have
    Nov 16 18:39:09 ip68-108-69-78 com.apple.launchd[88] (0x109650.Locum[158]): Exited: Terminated
    Nov 16 18:41:10 ip68-108-69-78 kernel[0]: AppleYukon2 - en0 link down
    Nov 16 18:41:14 Macintosh-4 configd[36]: setting hostname to "Macintosh-4.local"
    Nov 16 18:41:53 Macintosh-4 ntpd[15]: sendto(17.151.16.22) (fd=23): No route to host
    Nov 16 18:46:30 Macintosh-4 kernel[0]: Ethernet [AppleYukon2]: Link up on en0, 100-Megabit, Full-duplex, Symmetric flow-control, Debug [796d,6d4c,05e1,0200,45e1,4000]
    Nov 16 18:46:30 ip68-108-69-78 configd[36]: setting hostname to "ip68-108-69-78.lv.lv.cox.net"
    Nov 16 18:47:10 ip68-108-69-78 [0x0-0x1e01e].org.mozilla.firefox[178]: Debugger() was called!

  • Ocrfile is not being written to.  open file issues.  Help please.

    I've been troubleshooting an open file issue on our Test environment for quite a while now. Oracle has had me update to latest CRS bundle for 10.2.0.3, then upgrade to 10.2.0.4, then two more patches via OPatch to bring 10.2.0.4 RAC to it's most recent patch. None of these patches resolved our problem. We have ~8700 datafiles in the database and once the database is started, we're at ~11k on Production but on Test we're at ~37K or higher. It takes 1-2 days to hit the 65536 limit before it crashes. I have to 'bounce' the database to keep it from crashing. Yes, I could raise the ulimit but that isn't solving the problem.
    Over the weekend I noticed that on Production and DEV, the ocrfile is being written to constantly and has a current timestamp but on Test, the ocrfile has not been written to since the last OPatch install. I've checked the crs status via 'cluvfy stage -post crsinst -n all -verbose' and everything comes back as 'passed'. The database is up and running, but the ocrfile is still timestamped at April 14th and open files jump to 37k upon opening the database and continue to grow to the ulimit. Before hitting the limit, I'll have over 5,000 open files for 'hc_<instance>.dat, which is where I've been led down the path of patching Oracle CRS and RDBMS to resolve the 'hc_<instance>.dat bug which was supposed to be resolved in all of the patches I've applied.
    From imon_<instance>.log:
    Health check failed to connect to instance.
    GIM-00090: OS-dependent operation:mmap failed with status: 22
    GIM-00091: OS failure message: Invalid argument
    GIM-00092: OS failure occurred at: sskgmsmr_13
    That info started the patching process but it seems like there's more to it and this is just a result of some other issue. The fact that my ocrfile on Test is not being written to when it updates frequently on Prod and Dev, seems odd.
    We're using OCFS2 as our CFS, updated to most recent version for our kernel (RHEL AS 4 u7 -- 2.6.9-67.0.15.ELsmp for x86_64)
    Any help greatly appreciated.

    Check Bug... on metalink
    if Bug 6931689
    Solve:
    To fix this issue please apply following patch:
    Patch 7298531 CRS MLR#2 ON TOP OF 10.2.0.4 FOR BUGS 6931689 7174111 6912026 7116314
    or
    Patch 7493592 CRS 10.2.0.4 Bundle Patch #2
    Be aware that the fix has to be applied to the 10.2.0.4 database home to fix the problem
    Good Luck

  • Media back up client in using MIDP 2.0 MMAPI

    Hi everybody,
    I want to use J2ME MIDP 2.0 MMAPI for series 60 v2.0 in order to develop application that can upload and download medias files to and from a Server, therefore my questions are:
    -Can You access the default media files folders (Image, sounds and videos) ?
    -Is it in these folders that you store the downloaded media files ? or are you obliged to store them
    elsewhere (RMS in particular ).
    I am currently using Symbian C++ as developing langage but if I could move to Java It would be great because It's too hard to master symbian C++ (every thing is a nightmare...).
    Thanks in advance for your anwser
    Have a nine day

    -Can You access the default media files folders (Image, sounds and videos) ?
    No.
    -Is it in these folders that you store the downloaded media files ?
    Well, yes. But you don't have access to them so that doesn't help you.
    - or are you obliged to store them elsewhere (RMS in particular ).
    You have no choice but to store them in the RMS because that is the only form of persistent storage you have. That means that only your application will have access to the files.
    shmoove

Maybe you are looking for

  • How to connect a pc via Ethernet to an Airport Extreme

    For about a year I have had an Airport Extreme running my iBook laptop on wifi and the iMac on Ethernet. I also have an IBM Thinkpad (T/P) running Windows 2000 which I wanted to connect via Ethernet cable to the AE and get on the internet to use vari

  • Setting Up the System Landscape for ESS

    Hello Experts, I am implementing ESS in portal. I am in step of defining systems in portal for ESS/MSS. Below is link I am following from help.sap.com [Link|http://help.sap.com/erp2005_ehp_04/helpdata/en/5b/76a6d7fd3a4e91bfb422405bf3e04d/frameset.htm

  • General Evaluation report T-code;ME80FN showing Net order value Zero only

    Hi Gurus , I am Executing the T-code ;ME80FN in that report i am getting the Net order value as Zero for all report entities Kindly advise for this soon . Many Thanks Kiran

  • Installing ODI agent

    Hi, I have installed complete ODI 10.1.3.6 on a server "A". I am now trying to install just the ODI agent on server "B" and use the server "A" repositories. This is for using Hyperion ERPi which requires at least ODI agent to be installed on the mach

  • IPHONE 3G WON'T OPEN

    this is my 3rd Iphone , my first one , I wasn't able to have a conversation with someone using my phone , I needed to be using by earphones at all times or else they wouldn't hear me. My 2nd Iphone, the color started to become really dim and then the