Attempt to call a nil value (field 'getn') - lua

Could you guys help me fix this lua code?
I'm getting a problem on line 89 if IsMouseButtonPressed(1) and indexP < table.getn(weapon[indexW]) then getting the error attempt to call a nil value (field 'getn')
"it" is asking me to add more details, so I will just add some letters down here.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AK47 = {{0,0}, {-0.56, 0.92}, {-0.55, 0.79}, {-0.45, 0.82}, {-0.27, 1.01}, {0.06, 2.49}, {0.65, 2.16}, {0.78, 2.17}, {0.46, 2.5}, {-0.04, 3.86}, {-0.41, 3.39}, {-0.54, 3.39}, {-0.41, 3.86}, {-0.36, 4.06}, {-0.36, 3.58}, {-0.1, 3.57}, {0.41, 4.02}, {1.14, 4.42}, {1.56, 3.73}, {1.74, 3.69}, {1.7, 4.28}, {1.05, 3.73}, {0.74, 3.34}, {0.84, 3.3}, {1.37, 3.6}, {1.9, 2.64}, {2.28, 2.1}, {1.8, 2.17}, {0.47, 2.85}, {-0.97, 2.71}, {-1.86, 1.95}, {-2.51, 1.4}, {-2.92, 1.06}, {-5.4, 0.71}, {-4.89, -0.84}, {-4.96, -1.29}, {-5.62, -0.64}, {-3.39, -0.37}, {-3.3, -0.53}, {-2.72, 0.24}, {-1.64, 1.95}, {0.7, 1.73}, {2.42, 0.96}, {2.49, 0.98}, {0.92, 1.79}, {-0.99, 1.83}, {-1.91, 0.87}, {-2.42, 0.28}, {-2.54, 0.05}, {-3.53, -0.87}, {-3.0, -1.9}, {-2.94, -1.57}, {-3.34, 0.1}, {-0.75, 0.42}, {-0.58, 0.61}, {-0.28, 0.72}, {0.15, 0.75}, {3.19, 2.01}, {4.93, -0.32}, {5.85, -0.97}, {5.95, 0.06}, {2.62, 0.6}, {2.26, 0.72}, {2.18, 0.93}, {2.39, 1.23}, {1.91, 1.37}, {1.51, 1.5}, {1.56, 1.38}, {2.07, 1.0}, {3.51, 0.62}, {3.18, -0.16}, {3.2, -0.6}, {3.59, -0.7}, {5.44, -0.2}, {5.49, 0.1}, {4.17, -0.95}, {1.46, -3.35}, {-1.57, -2.44}, {-3.26, -1.15}, {-3.41, 0.33}, {-2.02, 2.01}, {0.28, 0.57}, {0.98, 0.12}, {1.12, 0.12}, {0.68, 0.57}, {0.02, 1.49}, {-0.72, 1.24}, {-1.17, 1.1}, {-1.35, 1.06}, {-1.35, 0.49}, {-1.54, 0.11}, {-1.19, 0.22}, {-0.28, 0.84}, {1.38, 1.16}, {2.36, -0.91}, {2.85, -1.41}, {2.87, -0.36}, {1.28, 0.36}, {1.21, 0.51}, {0.8, 0.73}, {0.06, 1.01}, {-1.64, 1.63}, {-2.58, -0.2}, {-3.09, -0.97}, {-3.17, -0.69}, {-4.36, -0.19}, {-3.85, -0.15}, {-3.81, -0.39}, {-4.24, -0.91}, {-6.19, -2.43}, {-5.14, -2.99}, {-5.16, -2.9}, {-6.26, -2.15}, {-1.9, -0.25}, {-1.69, 0.03}, {-1.71, 0.15}, {-1.93, 0.09}}
M4A4 = {{0,0}, {0.27, 1.1}, {0.24, 0.98}, {0.18, 1.12}, {0.16, 1.58}, {0.03, 1.42}, {-0.16, 1.58}, {-0.9, 2.81}, {-1.15, 2.42}, {-0.62, 2.84}, {0.71, 3.66}, {1.42, 3.17}, {0.72, 3.66}, {-0.77, 4.13}, {-1.54, 3.53}, {-1.48, 4.03}, {-1.55, 4.55}, {-1.24, 4.1}, {0.38, 4.49}, {2.06, 3.13}, {2.97, 2.07}, {3.13, 2.51}, {1.65, 2.3}, {1.35, 2.16}, {2.01, 1.87}, {4.02, 0.81}, {3.98, -0.19}, {2.91, 1.84}, {0.28, 1.96}, {-0.91, 1.83}, {-1.54, 1.67}, {-2.61, 1.79}, {-2.81, 0.8}, {-3.25, 0.37}, {-5.18, -0.21}, {-4.58, -1.06}, {-5.18, -0.88}, {-4.11, -0.07}, {-3.67, 0.14}, {-4.1, -0.18}, {-5.07, -1.48}, {-4.51, -1.72}, {-3.45, 0.38}, {-0.32, 0.53}, {0.04, 0.64}, {0.27, 0.64}, {1.69, 1.04}, {2.01, 0.46}, {0.71, 1.17}, {-1.18, 1.04}, {-2.05, -0.28}, {-2.26, -0.46}, {-2.93, -1.1}, {-2.62, -1.3}, {-1.82, 0.82}, {0.08, 0.52}, {0.59, 0.34}, {0.72, 0.25}, {4.48, 0.1}, {6.12, -0.65}, {6.58, 0.62}, {1.82, 0.98}, {1.43, 1.27}, {1.79, 1.05}, {4.5, 0.9}, {4.17, 0.02}, {4.65, 0.31}, {1.55, 0.35}, {1.37, 0.39}, {1.56, 0.31}, {2.47, 0.68}, {2.26, 0.52}, {1.03, -1.02}, {-1.23, -1.46}, {-2.51, -0.05}, {-1.82, 1.33}, {0.24, 1.0}, {1.2, 0.66}, {1.26, 0.8}, {0.67, 0.88}, {0.56, 0.82}, {0.81, 0.71}, {0.52, 0.23}, {0.51, 0.09}, {0.58, 0.01}, {0.76, -0.1}, {0.66, -0.21}, {0.74, -0.23}}
AUG = {{0,0}, {0.63, 0.67}, {0.57, 0.59}, {0.33, 0.79}, {-0.06, 0.62}, {-0.27, 0.53}, {-0.29, 0.6}, {-0.34, 0.96}, {-0.29, 0.86}, {-0.3, 0.97}, {-0.64, 2.07}, {-0.52, 1.86}, {-0.26, 2.13}, {0.18, 3.0}, {0.57, 2.65}, {0.67, 2.97}, {0.53, 3.41}, {0.51, 3.03}, {0.98, 3.28}, {1.18, 2.33}, {1.32, 1.95}, {1.29, 2.29}, {0.59, 1.79}, {0.4, 1.65}, {0.73, 1.72}, {1.58, 1.47}, {1.69, 1.12}, {0.66, 1.68}, {-1.09, 1.68}, {-2.08, 0.85}, {-2.04, 1.26}, {-0.68, 0.65}, {-0.53, 0.65}, {0.04, 0.72}, {1.27, 0.34}, {1.66, -0.7}, {1.52, 0.14}, {0.47, 0.78}, {0.0, 0.89}, {-0.43, 0.83}, {-2.08, 1.29}, {-2.46, 0.06}, {-2.74, -0.35}, {-3.85, -0.78}, {-3.29, -1.31}, {-3.65, -1.59}, {-3.06, -2.07}, {-2.68, -2.03}, {-2.87, 0.14}, {-0.3, 0.61}, {0.19, 0.8}, {0.02, 0.86}, {-0.3, 0.84}, {-0.41, 0.68}, {-0.67, 0.51}, {-0.99, 0.33}, {-0.96, 0.02}, {-0.4, -0.55}, {1.44, -1.32}, {3.05, 0.79}, {3.34, 0.85}, {3.32, 0.11}, {2.95, 0.13}, {3.24, 0.58}, {1.66, 0.26}, {1.46, 0.36}, {0.51, 1.02}, {-0.62, 0.68}, {-1.04, 0.16}, {-0.63, -0.51}, {0.76, -1.0}, {2.11, 0.14}, {2.28, -0.03}, {3.06, -1.23}, {2.64, -1.34}, {3.12, -0.96}, {2.22, -0.53}, {2.03, -0.24}, {1.01, 1.06}, {-0.89, 1.38}, {-2.38, 0.16}, {-2.63, 0.13}, {-1.88, 0.27}, {-1.7, 0.16}, {-1.45, 0.39}, {-0.21, 0.14}, {-0.16, 0.16}, {-0.18, 0.18}}
SG553 = {{0,0}, {-0.56, 1.34}, {-0.5, 1.2}, {-0.69, 1.27}, {-2.27, 2.8}, {-2.31, 2.28}, {-2.14, 2.87}, {-1.87, 4.11}, {-1.12, 3.9}, {-1.13, 4.42}, {-1.29, 4.98}, {-1.0, 4.47}, {-1.14, 5.02}, {-1.36, 5.54}, {-1.22, 4.93}, {-1.28, 5.55}, {-0.73, 6.22}, {-0.51, 5.58}, {-2.23, 5.6}, {-3.55, 2.59}, {-4.02, 1.51}, {-2.25, 3.06}, {1.53, 3.17}, {3.45, 2.22}, {2.02, 3.19}, {-0.54, 2.48}, {-1.56, 1.91}, {-2.1, 1.81}, {-2.59, 1.58}, {-2.61, 0.94}, {-2.73, 1.4}, {-1.08, 0.64}, {-0.9, 0.66}, {-0.35, 1.0}, {0.78, 0.98}, {1.4, 0.53}, {0.75, 0.98}, {-0.84, 1.3}, {-1.69, 0.71}, {-1.28, 1.22}, {0.28, 1.91}, {0.94, 1.77}, {-0.31, 1.5}, {-2.24, 0.51}, {-2.31, -1.29}, {-2.42, -1.74}, {-3.59, -2.94}, {-2.8, -3.15}, {-3.53, -3.04}, {-2.87, -1.56}, {-2.73, -1.06}, {-3.09, -1.14}, {-1.84, -0.31}, {-1.69, -0.23}, {-0.54, -0.99}, {4.26, -3.02}, {7.61, 2.5}, {8.4, 2.11}, {9.79, -0.58}, {8.69, -1.11}, {9.78, -0.94}, {7.46, -0.76}, {6.65, -0.54}, {7.3, 0.9}, {3.21, 1.27}, {2.62, 1.72}, {2.94, 1.94}, {2.62, 1.39}, {2.33, 1.25}, {2.4, 1.7}, {0.97, 1.19}, {0.73, 1.2}, {1.16, 0.88}, {3.64, 0.45}, {3.39, -0.87}, {3.8, -0.93}, {5.47, -1.88}, {4.93, -1.82}, {3.57, 1.82}, {-0.08, 1.49}, {-1.41, 1.18}, {-1.75, 1.09}, {-2.14, 1.27}, {-2.1, 0.77}, {-2.46, 0.43}, {-6.76, -0.03}, {-6.01, -1.16}, {-6.76, -1.25}}
M4A1S = {{0,0}, {0.18, 0.78}, {0.17, 0.68}, {0.15, 0.68}, {0.1, 0.79}, {0.03, 0.66}, {-0.01, 0.58}, {-0.05, 0.58}, {-0.1, 0.65}, {-0.46, 1.77}, {-0.6, 1.51}, {-0.53, 1.52}, {-0.25, 1.78}, {0.31, 2.44}, {0.76, 2.1}, {0.75, 2.1}, {0.3, 2.44}, {-0.4, 2.86}, {-0.83, 2.43}, {-0.99, 2.41}, {-0.86, 2.8}, {-0.92, 3.14}, {-0.92, 2.8}, {-0.47, 2.79}, {0.43, 3.09}, {1.19, 2.24}, {1.7, 1.58}, {1.94, 1.45}, {1.91, 1.86}, {1.03, 1.57}, {0.77, 1.5}, {0.86, 1.41}, {1.31, 1.28}, {2.45, 0.88}, {2.6, 0.06}, {2.34, 0.28}, {1.67, 1.53}, {0.28, 1.37}, {-0.38, 1.28}, {-0.83, 1.2}, {-1.08, 1.12}, {-1.62, 1.23}, {-1.68, 0.71}, {-1.83, 0.38}, {-2.08, 0.24}, {-3.29, -0.0}, {-2.88, -0.52}, {-2.89, -0.67}, {-3.3, -0.43}, {-2.59, -0.0}, {-2.28, 0.17}, {-2.28, 0.15}, {-2.59, -0.05}, {-3.17, -0.72}, {-3.01, -1.12}, {-2.59, -0.67}, {-1.93, 0.63}, {-0.17, 0.34}, {0.04, 0.37}, {0.18, 0.38}, {0.25, 0.37}, {1.07, 0.64}, {1.34, 0.23}, {1.09, 0.29}, {0.32, 0.81}, {-0.62, 0.84}, {-1.16, 0.08}, {-1.44, -0.27}, {-1.45, -0.21}, {-1.86, -0.52}, {-1.8, -0.88}, {-1.5, -0.44}, {-0.98, 0.81}, {0.04, 0.32}, {0.35, 0.18}, {0.48, 0.13}, {0.46, 0.18}}
FAMAS = {{0,0}, {-0.75, 0.66}, {-0.68, 0.59}, {-0.45, 0.83}, {0.06, 0.69}, {0.29, 0.62}, {0.1, 0.7}, {-0.86, 1.85}, {-1.31, 1.43}, {-1.07, 1.8}, {-0.53, 2.82}, {0.04, 2.6}, {0.1, 2.92}, {-0.27, 3.68}, {-0.18, 3.28}, {0.68, 3.53}, {1.75, 3.49}, {2.31, 2.7}, {2.89, 2.75}, {3.07, 1.81}, {3.0, 1.31}, {1.82, 2.52}, {-0.12, 2.33}, {-1.24, 1.93}, {-1.86, 1.77}, {-2.99, 1.84}, {-3.12, 0.89}, {-3.5, 1.0}, {-2.89, 1.16}, {-2.57, 1.01}, {-2.97, 0.87}, {-2.58, -0.09}, {-2.36, -0.31}, {-1.55, 1.11}, {0.11, 1.2}, {1.03, 0.93}, {1.34, 0.77}, {3.76, 1.22}, {3.67, 0.16}, {4.02, 0.6}, {2.01, 0.91}, {1.72, 1.0}, {2.06, 0.65}, {3.38, -0.16}, {3.0, -0.83}, {3.4, -0.48}, {1.01, 0.11}, {0.89, 0.21}, {1.01, 0.16}, {2.61, -0.21}, {2.34, -0.37}, {2.39, 0.54}, {0.93, 0.63}, {0.61, 0.82}, {0.09, 1.02}, {-0.45, 0.77}, {-0.8, 0.41}, {-0.97, 0.27}, {-4.59, -0.01}, {-4.21, -1.03}, {-3.75, 0.17}, {-0.71, 0.37}, {-0.52, 0.51}, {-0.01, 0.62}, {1.34, 0.82}, {1.89, -0.49}, {2.05, -0.73}, {2.67, -0.81}, {2.28, -1.02}, {2.47, -1.33}, {2.8, -1.73}, {2.37, -1.74}, {2.67, -1.94}}
UMP45 = {{0,0}, {-0.12, 1.13}, {-0.1, 1.01}, {-0.23, 1.11}, {-0.58, 1.4}, {-0.66, 1.19}, {-0.55, 1.41}, {-0.46, 2.96}, {-0.06, 2.7}, {-0.23, 3.01}, {-0.62, 3.81}, {-0.71, 3.36}, {-1.06, 3.71}, {-1.63, 3.93}, {-1.72, 3.4}, {-1.42, 3.99}, {-1.07, 4.44}, {-0.5, 4.04}, {0.53, 4.44}, {1.74, 3.1}, {2.32, 2.43}, {1.39, 3.16}, {-0.51, 2.07}, {-1.16, 1.75}, {-0.48, 2.06}, {0.81, 2.65}, {1.56, 2.05}, {2.15, 1.92}, {2.97, 1.91}, {3.0, 1.13}, {3.42, 1.15}, {2.61, 0.48}, {2.38, 0.3}, {1.86, 1.39}, {0.07, 0.57}, {-0.23, 0.57}, {-0.06, 0.63}, {0.69, 1.15}, {0.96, 0.86}, {0.73, 1.14}, {-0.09, 1.02}, {-0.34, 0.95}, {0.27, 0.77}, {1.47, 0.23}, {1.47, -0.89}, {1.64, -0.98}, {1.13, -0.72}, {1.02, -0.69}, {0.68, 0.29}, {-0.64, 1.63}, {-2.73, 0.53}, {-3.04, 0.41}, {-3.7, 1.09}, {-3.4, 0.73}, {-2.32, -0.69}, {-0.12, -0.38}, {0.15, -0.4}, {0.28, -0.38}, {1.79, -1.35}, {2.25, -0.81}, {2.59, -0.68}, {3.29, -1.36}, {3.04, -1.03}, {1.92, 1.27}, {-0.18, 0.62}, {-0.8, 0.32}, {-0.94, 0.21}, {-3.72, 0.48}, {-3.39, -0.32}, {-3.6, -0.71}, {-0.68, -0.19}, {-0.58, -0.23}, {-0.66, -0.26}}
MP7 = {{0,0}, {0.04, 0.6}, {0.06, 0.52}, {0.02, 0.52}, {-0.05, 0.59}, {-0.09, 0.45}, {-0.12, 0.39}, {-0.17, 0.37}, {-0.23, 0.4}, {-0.34, 0.46}, {-0.36, 0.36}, {-0.37, 0.35}, {-0.37, 0.44}, {-0.81, 1.23}, {-0.63, 1.13}, {-0.61, 1.15}, {-0.74, 1.28}, {-1.32, 1.82}, {-1.3, 1.53}, {-1.14, 1.6}, {-0.84, 2.03}, {-0.16, 2.21}, {0.42, 2.01}, {0.4, 2.0}, {-0.22, 2.19}, {-0.97, 1.85}, {-1.32, 1.38}, {-1.39, 1.35}, {-1.19, 1.76}, {-0.45, 1.75}, {-0.04, 1.68}, {-0.16, 1.6}, {-0.82, 1.5}, {-1.13, 0.79}, {-1.25, 0.28}, {-1.34, 0.15}, {-1.42, 0.39}, {-0.97, 0.31}, {-0.94, 0.25}, {-0.74, 0.4}, {-0.38, 0.76}, {0.22, 1.47}, {0.96, 1.09}, {1.4, 0.87}, {1.54, 0.81}, {2.39, 1.01}, {2.26, 0.47}, {2.34, 0.23}, {2.63, 0.29}, {2.39, 0.31}, {2.11, 0.2}, {2.11, 0.14}, {2.4, 0.14}, {2.04, -0.15}, {1.88, -0.36}, {1.75, -0.04}, {1.64, 0.82}, {0.42, 0.54}, {0.18, 0.62}, {-0.02, 0.67}, {-0.18, 0.7}, {-0.51, 0.93}, {-0.7, 0.66}, {-0.86, 0.53}, {-0.98, 0.54}, {-0.49, 0.23}, {-0.46, 0.14}, {-0.47, 0.12}, {-0.52, 0.17}, {-0.58, 0.14}, {-0.57, 0.09}, {-0.45, 0.18}, {-0.22, 0.42}, {0.21, 0.47}, {0.57, 0.24}, {0.63, 0.24}, {0.37, 0.46}, {0.03, 0.62}, {-0.17, 0.56}, {-0.36, 0.47}, {-0.52, 0.35}, {-1.94, 0.45}, {-1.81, -0.37}, {-1.84, -0.8}, {-2.02, -0.83}, {-2.72, -1.17}, {-2.32, -1.32}, {-2.27, -1.25}, {-2.57, -0.95}, {-0.52, -0.08}, {-0.47, 0.0}, {-0.47, 0.01}, {-0.53, -0.04}, {-1.43, -0.06}, {-1.38, 0.01}, {-1.13, -0.27}, {-0.66, -0.91}, {0.09, -0.32}, {0.36, -0.2}, {0.4, -0.2}, {0.23, -0.33}, {0.0, -0.3}, {-0.08, -0.29}, {-0.16, -0.21}, {-0.24, -0.05}, {-0.14, 0.14}, {0.03, 0.27}, {0.05, 0.3}, {-0.09, 0.25}, {-0.57, 0.22}, {-0.63, -0.1}, {-0.63, -0.11}, {-0.58, 0.21}, {-0.21, 0.31}, {-0.05, 0.35}, {0.01, 0.38}, {-0.03, 0.41}}
MP9 = {{0,0}, {-0.06, 1.42}, {-0.25, 1.37}, {-0.78, 1.07}, {-0.63, 1.11}, {0.59, 2.78}, {1.0, 2.79}, {-0.48, 4.4}, {-0.29, 4.37}, {2.43, 5.36}, {2.47, 5.35}, {0.26, 5.22}, {-0.92, 5.21}, {-2.59, 5.49}, {-1.39, 5.53}, {1.82, 3.97}, {3.44, 3.05}, {4.88, 3.09}, {5.55, 1.7}, {5.5, 0.56}, {5.56, -0.51}, {6.82, -3.0}, {5.91, -0.05}, {0.32, 2.2}, {-0.78, 2.69}, {0.66, 2.9}, {-0.23, 2.62}, {-5.22, 2.59}, {-6.44, 1.18}, {-3.31, 2.16}, {-3.27, 2.24}, {-4.45, 1.93}, {-4.56, 1.71}, {-3.43, 1.78}, {-3.57, 1.31}, {-5.25, 0.28}, {-5.24, -0.86}, {-8.97, -4.96}, {-5.99, -0.22}, {0.73, 0.86}, {1.83, 0.35}, {4.05, 0.95}, {4.15, 0.48}, {5.39, -0.03}, {4.94, 0.56}, {1.1, 0.4}, {0.39, 0.72}, {-3.55, 0.93}, {-5.12, -1.93}, {-6.55, -2.47}, {-6.59, -1.18}, {-1.54, 0.71}, {-1.43, 1.04}, {-3.35, 0.7}, {-1.94, 1.62}, {1.7, 1.68}, {3.05, 1.07}, {1.29, 1.25}, {1.19, 1.36}}
MAC = {{0,0}, {-0.82, 0.45}, {-0.73, 0.39}, {-0.66, 0.62}, {-0.38, 0.59}, {-0.2, 0.6}, {-0.03, 0.7}, {0.3, 1.08}, {0.57, 0.88}, {0.56, 1.03}, {0.7, 2.3}, {0.48, 2.09}, {0.78, 2.26}, {1.61, 2.97}, {1.72, 2.49}, {1.8, 2.88}, {2.11, 4.05}, {1.73, 3.67}, {1.86, 4.17}, {1.85, 3.48}, {1.61, 3.12}, {0.78, 3.72}, {-0.83, 3.03}, {-1.54, 2.59}, {-0.42, 2.98}, {1.07, 1.84}, {1.68, 1.26}, {1.58, 1.64}, {0.85, 1.84}, {0.49, 1.75}, {0.6, 1.95}, {0.93, 1.9}, {0.88, 1.68}, {0.43, 2.0}, {-0.16, 1.32}, {-0.46, 1.13}, {-0.59, 1.24}, {-0.29, 0.8}, {-0.3, 0.69}, {-0.53, 0.63}, {-1.46, 0.89}, {-1.52, 0.39}, {-1.75, 0.26}, {-3.53, 0.42}, {-3.18, 0.02}, {-3.56, -0.29}, {-5.85, -0.96}, {-5.23, -1.28}, {-3.24, -0.91}, {-0.31, -0.1}, {-0.28, -0.1}, {-0.31, -0.11}, {-2.34, -0.22}, {-2.42, -0.23}, {-0.93, -1.37}, {0.89, -0.29}, {1.49, 0.54}, {0.91, -0.29}, {-0.41, -0.78}, {-1.22, -0.21}, {-1.37, -0.14}, {-2.03, -0.36}, {-1.84, -0.12}, {-2.07, 0.06}, {-2.36, -0.15}, {-2.13, -0.01}, {-0.86, 1.18}, {1.45, 1.47}, {3.11, -0.47}, {3.4, -0.39}, {2.26, 0.29}, {2.0, 0.3}, {2.26, 0.27}, {2.72, 0.26}, {2.42, 0.17}, {2.73, 0.05}, {3.76, -0.62}, {3.35, -0.77}, {3.48, 0.62}, {0.8, 0.51}, {0.54, 0.67}, {-0.08, 0.74}, {-3.75, 1.42}, {-4.46, -1.43}, {-2.25, -2.49}, {0.19, -0.29}, {0.47, -0.07}, {0.51, -0.09}}
weapon = {AK47, M4A4, AUG, SG553, M4A1S, FAMAS, UMP45, MP7, MP9, MAC}
------------------------ Rate of Fire ----------------------
ak47_ROF = {delay = 100, interpolation = 4}
m4a4_ROF = {delay = 90, interpolation = 3}
aug_ROF = {delay = 90, interpolation = 3}
sg553_ROF = {delay = 90, interpolation = 3}
m4a1s_ROF = {delay = 100, interpolation = 4}
famas_ROF = {delay = 90, interpolation = 3}
ump_ROF = {delay = 90, interpolation = 3}
mp7_ROF = {delay = 80, interpolation = 4}
mp9_ROF = {delay = 70, interpolation = 2}
mac_ROF = {delay = 75, interpolation = 3}
weaponRof = {ak47_ROF, m4a4_ROF, aug_ROF, sg553_ROF, m4a1s_ROF, famas_ROF, ump_ROF, mp7_ROF, mp9_ROF, mac_ROF}
------------------- Weapon Sensitivity ---------------------
AKsen = 2.85
M4sen = 2.8
AUGsen = 4.7
SG553sen = 2.8
M4A1sen = 2.3
FAMsen = 3
UMPsen = 2.8
MP7sen = 3
MP9sen = 2.9
MACsen = 2.8
weaponSen = {AKsen, M4sen, AUGsen, SG553sen, M4A1sen, FAMsen, UMPsen, MP7sen, MP9sen, MACsen}
------------------------------------------------------------
indexW = 1 --index of weapon
indexP = 1 --index of Pattern
indexT = 1 -- 1 rifle / 2 smg
function OnEvent(event, arg)
EnablePrimaryMouseButtonEvents(true)
if IsMouseButtonPressed(2) then
indexW = indexW + 1
if indexT == 1 then
if indexW > 6 then
indexW = 1
end
end
if indexT == 2 then
if indexW > 10 then
indexW = 7
end
end
if indexW == 1 then
PressAndReleaseKey("insert")
end
if indexW == 2 then
PressAndReleaseKey("home")
end
if indexW == 3 then
PressAndReleaseKey("pageup")
end
if indexW == 4 then
PressAndReleaseKey("delete")
end
if indexW == 5 then
PressAndReleaseKey("end")
end
if indexW == 6 then
PressAndReleaseKey("pagedown")
end
if indexW == 7 then
PressAndReleaseKey("up")
end
if indexW == 8 then
PressAndReleaseKey("down")
end
if indexW == 9 then
PressAndReleaseKey("left")
end
if indexW == 10 then
PressAndReleaseKey("right")
end
end
while IsMouseButtonPressed(4) do
if IsMouseButtonPressed(1) and indexP < table.getn(weapon[indexW]) then
MoveMouseRelative(weapon[indexW][indexP][1]*weaponSen[indexW], weapon[indexW][indexP][2]*weaponSen[indexW])
Sleep(weaponRof[indexW].delay/weaponRof[indexW].interpolation)
indexP = indexP + 1
else
Sleep(10)
indexP = 1
end
if IsMouseButtonPressed(2) then
indexT = indexT + 1
if indexT > 2 then
indexT = 1
end
if indexT == 1 then
indexW = 1
PressAndReleaseKey("insert")
else
indexW = 7
PressAndReleaseKey("up")
end
Sleep(300)
OutputLogMessage(indexW)
end
end
indexP = 1
end

table.getn does not exist in more recent versions of Lua. Instead, use the length operator: #weapon[indexW].

Related

QML Pathview how to slide through icons

I have the following requirement and can't find the right way in.
A maximum of 5 icons from a list of icons should be displayed.
At the start, the first icon from the list should be in the middle of the container.
With left arrow button click, the next icon is placed in the middle and the first moves to the left.
At the end of the list, the last icon remains in the middle. The icons to the right and left of the center should be smaller than the icon in the center.
Start:
Middle:
End:
The pathview works so far, the icons come from a c++ class and are displayed via the delegate.
I have the path block from an example, but it won't fit directly to this and I don't understand yet what exactly is defined here.
Do I need maybe 5 PathAttribute blocks and 4 PathLine? How do i start with the first icon in the middle? How can I change the size of the icons depending on their position and how can I get them closer together
I would be very happy about any help to get started
Coverflow.qml
Rectangle {
id: root
height: 200
width: 400
Layout.preferredHeight: height
Layout.preferredWidth: width
color: "white"
PathView {
id: view
anchors.fill: parent
pathItemCount: 5
model: m_screen.coverflowModel
delegate: CoverflowDelegate { height: view.height; width: view.height; p_icon: icon; p_z: PathView.iconOrder }
path: Path {
startX: 0; startY: view.height/2
PathAttribute { name: "iconScale"; value: 0.6 }
PathAttribute { name: "iconOpacity"; value: 0.9 }
PathAttribute { name: "angle"; value: 90}
PathLine {x: view.width / 2; y: view.height/2 }
PathAttribute { name: "iconScale"; value: 1 }
PathAttribute { name: "iconOpacity"; value: 1 }
PathAttribute { name: "angle"; value: 0 }
PathLine {x: view.width; y: view.height/2 }
PathAttribute { name: "itemScale"; value: 0.6 }
PathAttribute { name: "itemOpacity"; value: 0.9 }
PathAttribute { name: "angle"; value: -90 }
}
}
}
CoverflowDelegate.qml
Item {
id: delegate
property string p_icon
property string p_source: (!p_icon || p_icon.length === 0) ? "" : "image://iconprovider/" + p_icon
property int p_z
Rectangle {
color: "lightgrey"
width: 70; height: 70
radius: 10
z: p_z
Image {
anchors.centerIn: parent
source: p_source
sourceSize.width: parent.width * 0.8
}
}
}
You could mock this up with a ListView + Button. We can configure the ListView with:
height: 120
width: 600 // i.e. height * 5
orientation: ListView.Horizontal
currentIndex: Math.round(2 + (contentX / 120))
snapMode: ListView.SnapToItem
The ListView will take care of the horizontal scrolling and snapping to item to create a clean animation and user experience.
Add 4 dummy records to the ListModel so that we can hide the left 2 and right 2 delegates.
import QtQuick
import QtQuick.Controls
Page {
ListView {
anchors.centerIn: parent
width: height * 5
height: 120
clip: true
model: MyListModel { id: listModel }
currentIndex: Math.min(listModel.count - 1 , Math.round(2 + (contentX / height)))
orientation: ListView.Horizontal
snapMode: ListView.SnapToItem
delegate: MyDelegate { }
}
}
// MyDelegate.qml
import QtQuick
import QtQuick.Controls
Item {
property ListView listView: ListView.view
property bool isCurrentItem: ListView.isCurrentItem
property int dist: Math.abs(listView.width / 2 + listView.contentX - (x + width / 2))
width: height
height: listView.height
Button {
anchors.centerIn: parent
visible: !dummy
width: parent.height / (1 + dist * 0.002)
height: width
background: Rectangle {
radius: 10
border.color: "#888"
color: isCurrentItem ? "#ccc" : "#eee"
}
icon.source: ico
icon.width: parent.width * .6
icon.height: parent.height * .6
icon.color: isCurrentItem ? "black" : "#888"
Label {
anchors.horizontalCenter: parent.horizontalCenter
y: parent.height * 3 / 4
text: nam
visible: !dummy
color: "#08f"
z: 2
}
}
}
// MyListModel.qml
import QtQuick
import QtQuick.Controls
ListModel {
Component.onCompleted: {
append( { nam: "", ico: "", val: -1, dummy: true } );
append( { nam: "", ico: "", val: -1, dummy: true } );
append( { nam: "One", ico: "target.svg", val: 1 } );
append( { nam: "Two", ico: "pencil.svg", val: 2 } );
append( { nam: "Three", ico: "monitor.svg", val: 3 } );
append( { nam: "Four", ico: "target.svg", val: 4 } );
append( { nam: "Five", ico: "pencil.svg", val: 5 } );
append( { nam: "Six", ico: "monitor.svg", val: 6 } );
append( { nam: "Seven", ico: "target.svg", val: 7 } );
append( { nam: "Eight", ico: "pencil.svg", val: 8 } );
append( { nam: "", ico: "", val: -1, dummy: true } );
append( { nam: "", ico: "", val: -1, dummy: true } );
}
}
// target.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<circle cx="16" cy="16" r="8" stroke="black" stroke-width="1" fill="none" />
<path stroke="black" stroke-width="0.5" fill="black" d="M 16 12 L 15 11 L 15 6 L 17 6 L 17 11 z" />
<path stroke="black" stroke-width="0.5" fill="black" d="M 20 16 L 21 15 L 26 15 L 26 17 L 21 17 z"/>
<path stroke="black" stroke-width="0.5" fill="black" d="M 16 20 L 17 21 L 17 26 L 15 26 L 15 21 z "/>
<path stroke="black" stroke-width="0.5" fill="black" d="M 12 16 L 11 17 L 6 17 L 6 15 L 11 15 z"/>
</svg>
// monitor.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<rect stroke="black" fill="none" x="5" y="7" width="22" height="14" rx="1"/>
<path stroke="black" stroke-width="0.1" fill="black" d="M 2 23 L 30 23 L 30 24 L 29 25 L 3 25 L 2 24 z L 14 23.5 L 14 24.5 L 18 24.5 L 18 23.5 L 14 23.5"/>
<path stroke="black" stroke-width="0.1" fill="black" d="M 22 13 L 23 13 L 23 15 L 10 15 L 10 15.8 L 8 14.5 L 10 13.2 L 10 14 L 22 14 z
"/>
</svg>
// pencil.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path stroke="black" stroke-width="1" fill="transparent" d="M 24 18 L 24 25
A 1 1 0 0 1 23 26 L 5 26 A 1 1 0 0 1 4 25 L 4 7 A 1 1 0 0 1 5 6 L 23 6 A 1 1 0 0 1 24 7 L 24 10"/>
<path stroke="black" stroke-width="0.5" fill="black" d="M 27 13 L 25 11 L 26 10 A 1 1 0 0 1 27 10 L 28 11 A 1 1 0 0 1 28 12 z
"/>
<path stroke="black" stroke-width="0.5" fill="black" d="M 26 14 L 21 19 L 19 17 L 24 12 z"/>
<path stroke="black" stroke-width="0.5" fill="transparent" d="M 21 19 L 20 20 L 18 20 L 18 18 L 19 17" />
<rect x="18" y="19" width="1" height="1" fill="black"/>
</svg>
You can Try it Online!

Trouble creating an AudioQueueBufferRef in Swift

ringBuffers = [AudioQueueBufferRef](repeating: AudioQueueBufferRef(), count:inflightBuffersCount)
says init() is unavailable: use 'nil' literal
but if it is
ringBuffers = [AudioQueueBufferRef](repeating: nil, count: inflightBuffersCount)
it says
main.swift:152:29: Expression type '[AudioQueueBufferRef]' is ambiguous without more context
if it is
var ringBuffers = [AudioQueueBufferRef!](repeating:nil, count:3)
let status = AudioQueueAllocateBuffer(inQueue!, bufferSize, &ringBuffers[0])
print("\(status.description)")
prints
vm_map failed: 0x4 ((os/kern) invalid argument)
4
I think assigning nil is not right
Stream description I have used is
let inFormat = AudioStreamBasicDescription(
mSampleRate: Double(sampleRate),
mFormatID: kAudioFormatLinearPCM,
mFormatFlags: kLinearPCMFormatFlagIsBigEndian | kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked,
mBytesPerPacket: UInt32(numChannels * MemoryLayout<UInt16>.size),
mFramesPerPacket: 1,
mBytesPerFrame: UInt32(numChannels * MemoryLayout<UInt16>.size),
mChannelsPerFrame: UInt32(numChannels),
mBitsPerChannel: UInt32(8 * (MemoryLayout<UInt16>.size)),
mReserved: UInt32(0)
)
AudioQueueNewOutput(&inFormat, AQOutputCallback, &player, nil, nil, 0, &inQueue)
You got this wrong ;) You don't need to allocate anything at all; the buffer will be created by the AudioQueueAllocateBuffer function you are calling.
For instance:
var buffer: AudioQueueBufferRef? = nil
let status = AudioQueueAllocateBuffer(inQueue!, bufferSize, &buffer)

Dask: ValueError: Integer column has NA values

I tried to use dask and found something that appears to be a bug in dask.dataframe.read_csv.
import dask.dataframe as dd
types = {'id': 'int16', 'Semana': 'uint8', 'Agencia_ID': 'uint16', 'Canal_ID': 'uint8',
'Ruta_SAK': 'uint16' ,'Cliente_ID': 'float32', 'Producto_ID': 'float32'}
name_map = {'Semana': 'week', 'Agencia_ID': 'agency', 'Canal_ID': 'channel',
'Ruta_SAK': 'route', 'Cliente_ID': 'client', 'Producto_ID': 'prod'}
test = dd.read_csv(os.path.join(datadir, 'test.csv'), usecols=types.keys(), dtype=types)
test = test.rename(columns=name_map)
gives :
ValueError: Integer column has NA values in column 1
However, the same pandas read_csv operation completes fine and does not yield any NA:
types = {'id': 'int16', 'Semana': 'uint8', 'Agencia_ID': 'uint16', 'Canal_ID': 'uint8',
'Ruta_SAK': 'uint16' ,'Cliente_ID': 'float32', 'Producto_ID': 'float32'}
name_map = {'Semana': 'week', 'Agencia_ID': 'agency', 'Canal_ID': 'channel',
'Ruta_SAK': 'route', 'Cliente_ID': 'client', 'Producto_ID': 'prod'}
test = pd.read_csv(os.path.join(datadir, 'test.csv'), usecols=types.keys(), dtype=types)
test = test.rename(columns=name_map)
test.isnull().any()
id False
week False
agency False
channel False
route False
client False
prod False
dtype: bool
Should I consider this to be an established bug and raise a JIRA for it?
Full traceback:
ValueError Traceback (most recent call last)
in ()
4 'Ruta_SAK': 'route', 'Cliente_ID': 'client', 'Producto_ID': 'prod'}
5
----> 6 test = dd.read_csv(os.path.join(datadir, 'test.csv'), usecols=types.keys(), dtype=types)
7 test = test.rename(columns=name_map)
D:\PROGLANG\Anaconda2\lib\site-packages\dask\dataframe\csv.pyc in read_csv(filename, blocksize, chunkbytes, collection, lineterminator, compression, sample, enforce, storage_options, **kwargs)
195 else:
196 header = sample.split(b_lineterminator)[0] + b_lineterminator
--> 197 head = pd.read_csv(BytesIO(sample), **kwargs)
198
199 df = read_csv_from_bytes(values, header, head, kwargs,
D:\PROGLANG\Anaconda2\lib\site-packages\pandas\io\parsers.pyc in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
560 skip_blank_lines=skip_blank_lines)
561
--> 562 return _read(filepath_or_buffer, kwds)
563
564 parser_f.name = name
D:\PROGLANG\Anaconda2\lib\site-packages\pandas\io\parsers.pyc in _read(filepath_or_buffer, kwds)
323 return parser
324
--> 325 return parser.read()
326
327 _parser_defaults = {
D:\PROGLANG\Anaconda2\lib\site-packages\pandas\io\parsers.pyc in read(self, nrows)
813 raise ValueError('skip_footer not supported for iteration')
814
--> 815 ret = self._engine.read(nrows)
816
817 if self.options.get('as_recarray'):
D:\PROGLANG\Anaconda2\lib\site-packages\pandas\io\parsers.pyc in read(self, nrows)
1312 def read(self, nrows=None):
1313 try:
-> 1314 data = self._reader.read(nrows)
1315 except StopIteration:
1316 if self._first_chunk:
pandas\parser.pyx in pandas.parser.TextReader.read (pandas\parser.c:8748)()
pandas\parser.pyx in pandas.parser.TextReader._read_low_memory (pandas\parser.c:9003)()
pandas\parser.pyx in pandas.parser.TextReader._read_rows (pandas\parser.c:10022)()
pandas\parser.pyx in pandas.parser.TextReader._convert_column_data (pandas\parser.c:11397)()
pandas\parser.pyx in pandas.parser.TextReader._convert_tokens (pandas\parser.c:12093)()
pandas\parser.pyx in pandas.parser.TextReader._convert_with_dtype (pandas\parser.c:13057)()
ValueError: Integer column has NA values in column 1

NSInvalidArgumentException crash for iPad Pro Sim but not for other iPad Sim

I have an app in the App Store that I haven't maintained since iOS7's release and getting some requests to refresh it.
I am attempting to get it updated so that it runs on latest iOS 8 and all current iOS iPad devices.
When I test run in sim for any non-Pro iPad simulators, it works. But when I test run on iPad Pro, it crashes. Here are the details.
In main.m:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// crashes on this line (i know this is not that useful)
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
Output window (apologize for the verbosity here, but didn't want to leave out anything potentially useful):
Warning: Error creating LLDB target at path '/Users/pubnubcvconover/Library/Developer/Xcode/DerivedData/Stats-Pad-coxczetuymekypghmygwqysiqulp/Build/Products/Debug-iphonesimulator/Lacrosse-Stats.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
2016-02-28 16:59:43.301 Lacrosse-Stats[4205:95840] ADBannerView:didFailToReceiveAdWithError:The operation couldn’t be completed. (ADErrorDomain error 3.)
2016-02-28 16:59:43.303 Lacrosse-Stats[4205:95840] Ran setTeams
2016-02-28 16:59:44.222 Lacrosse-Stats[4205:95840] CoreData: error: -addPersistentStoreWithType:Binary configuration:(null) URL:file:///Users/pubnubcvconover/Library/Developer/CoreSimulator/Devices/91D7C4F6-34CA-4761-913F-C0B50E753469/data/Containers/Data/Application/ED789ADC-FB9C-43E2-8FDE-E02D80DD43E6/Documents/Stats_Pad.bin options:{
NSInferMappingModelAutomaticallyOption = 1;
NSMigratePersistentStoresAutomaticallyOption = 1;
} ... returned error Error Domain=NSCocoaErrorDomain Code=134130 "(null)" UserInfo={URL=file:///Users/pubnubcvconover/Library/Developer/CoreSimulator/Devices/91D7C4F6-34CA-4761-913F-C0B50E753469/data/Containers/Data/Application/ED789ADC-FB9C-43E2-8FDE-E02D80DD43E6/Documents/Stats_Pad.bin, metadata={
NSPersistenceFrameworkVersion = 641;
NSStoreModelVersionHashes = {
"field_conditions" = <1a8f23c4 a8f9f08a 7504bd89 b6c608df 89106202 f9c81f02 2441924c 12245334>;
"field_layout" = <da72d767 8f4c3614 fe56ab18 37905a4e b7890395 03515759 46c20c7b 78cbb6cb>;
game = <8f8c1e3b 595416df 4164209d 35268bfd e4f41bf7 aed776a9 3bcfe86a dea6fe6a>;
gender = <bcdc57c3 7ad84924 40c67207 735167f4 e773c4b8 6fc53316 b9fe0220 4e53fad8>;
levels = <7aa35176 e55edff3 7ac01812 5cc17a05 60013487 92196c1d 366a437b a108a9ef>;
p = <593e105a 8ce080f6 aeb0081d 250039e3 6363b0a0 380fc096 6d18653e da7c1612>;
"p_event" = <acf2f48d 3d5ef365 6e6153a2 268ab4d2 9c4776ed 6165781e f86c0bbc 5b8bfe90>;
"p_type" = <36aaae5d db755d03 9a66e7b0 703ca8bf 5de4210a c6c9e8e3 ea77b8f4 6fd8f8fb>;
penalty = <a8ff8a90 08434fec 24caa525 b16972eb f9a35891 54945888 e68d6faf 7d7aea9f>;
"penalty_event" = <09ef67b3 238a32e0 1a2526d6 82374563 c7275b43 a11d26df fa8447b4 ac7f1175>;
"penalty_type" = <3cdcaf67 0748f85e 0b300ba0 4119f7c2 04cf6a39 1b836ec8 5850f3e6 3662e8ff>;
player = <9d572c6d 15c11f5f 5d4aa3d0 10b75ea3 fa3dd352 1f89a53f f3a3f02e b3d1a4c1>;
position = <89407c79 8f0655a6 550666a3 9e87738d fb985882 5ae70c3a 9ca51fd7 50b24a94>;
roster = <34471eca 339a9ab4 ed86afc9 727c17c3 6117156b e726de09 97c979f2 d4272814>;
rules = <0f7d4bc6 5b82e1ee 6b3e9c3d 2c73ea62 78c6bbbb bb02b6c0 0bdc8a5e 2bc1d22d>;
statistic = <b92a539d 6329e839 d24a80ef e4006a28 3ee3cf68 5cbe1342 5a79f9c7 760f3ffe>;
"statistic_event" = <2d6d03bf 53f05b88 ddc692bc ab805dea 210dc3cb 93ea04e9 c2005fe1 d9f817d3>;
"statistic_type" = <84c5603e 008cdbc3 411c883d a0ac485b 160c35c8 f5ce7394 0fc06d2d c72ece9d>;
team = <97de1350 f685c550 8de940e6 e0c6d8fc f2cd1b80 94725d1b 535f0ff3 13474223>;
"weather_conditions" = <23bce103 1dbe85b6 c7b92d66 69c2d334 34baf747 8ae60dcc dee2b5e0 b739bf31>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = Binary;
NSStoreUUID = "829124BC-14FB-43C5-A845-A630BB9603E9";
"_NSAutoVacuumLevel" = 2;
}, reason=Can't find model for source store} with userInfo dictionary {
URL = "file:///Users/pubnubcvconover/Library/Developer/CoreSimulator/Devices/91D7C4F6-34CA-4761-913F-C0B50E753469/data/Containers/Data/Application/ED789ADC-FB9C-43E2-8FDE-E02D80DD43E6/Documents/Stats_Pad.bin";
metadata = {
NSPersistenceFrameworkVersion = 641;
NSStoreModelVersionHashes = {
"field_conditions" = <1a8f23c4 a8f9f08a 7504bd89 b6c608df 89106202 f9c81f02 2441924c 12245334>;
"field_layout" = <da72d767 8f4c3614 fe56ab18 37905a4e b7890395 03515759 46c20c7b 78cbb6cb>;
game = <8f8c1e3b 595416df 4164209d 35268bfd e4f41bf7 aed776a9 3bcfe86a dea6fe6a>;
gender = <bcdc57c3 7ad84924 40c67207 735167f4 e773c4b8 6fc53316 b9fe0220 4e53fad8>;
levels = <7aa35176 e55edff3 7ac01812 5cc17a05 60013487 92196c1d 366a437b a108a9ef>;
p = <593e105a 8ce080f6 aeb0081d 250039e3 6363b0a0 380fc096 6d18653e da7c1612>;
"p_event" = <acf2f48d 3d5ef365 6e6153a2 268ab4d2 9c4776ed 6165781e f86c0bbc 5b8bfe90>;
"p_type" = <36aaae5d db755d03 9a66e7b0 703ca8bf 5de4210a c6c9e8e3 ea77b8f4 6fd8f8fb>;
penalty = <a8ff8a90 08434fec 24caa525 b16972eb f9a35891 54945888 e68d6faf 7d7aea9f>;
"penalty_event" = <09ef67b3 238a32e0 1a2526d6 82374563 c7275b43 a11d26df fa8447b4 ac7f1175>;
"penalty_type" = <3cdcaf67 0748f85e 0b300ba0 4119f7c2 04cf6a39 1b836ec8 5850f3e6 3662e8ff>;
player = <9d572c6d 15c11f5f 5d4aa3d0 10b75ea3 fa3dd352 1f89a53f f3a3f02e b3d1a4c1>;
position = <89407c79 8f0655a6 550666a3 9e87738d fb985882 5ae70c3a 9ca51fd7 50b24a94>;
roster = <34471eca 339a9ab4 ed86afc9 727c17c3 6117156b e726de09 97c979f2 d4272814>;
rules = <0f7d4bc6 5b82e1ee 6b3e9c3d 2c73ea62 78c6bbbb bb02b6c0 0bdc8a5e 2bc1d22d>;
statistic = <b92a539d 6329e839 d24a80ef e4006a28 3ee3cf68 5cbe1342 5a79f9c7 760f3ffe>;
"statistic_event" = <2d6d03bf 53f05b88 ddc692bc ab805dea 210dc3cb 93ea04e9 c2005fe1 d9f817d3>;
"statistic_type" = <84c5603e 008cdbc3 411c883d a0ac485b 160c35c8 f5ce7394 0fc06d2d c72ece9d>;
team = <97de1350 f685c550 8de940e6 e0c6d8fc f2cd1b80 94725d1b 535f0ff3 13474223>;
"weather_conditions" = <23bce103 1dbe85b6 c7b92d66 69c2d334 34baf747 8ae60dcc dee2b5e0 b739bf31>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = Binary;
NSStoreUUID = "829124BC-14FB-43C5-A845-A630BB9603E9";
"_NSAutoVacuumLevel" = 2;
};
reason = "Can't find model for source store";
}
2016-02-28 16:59:44.223 Lacrosse-Stats[4205:95840] CoreData: annotation: NSPersistentStoreCoordinator's current model hashes are {
"field_conditions" = <1a8f23c4 a8f9f08a 7504bd89 b6c608df 89106202 f9c81f02 2441924c 12245334>;
"field_layout" = <da72d767 8f4c3614 fe56ab18 37905a4e b7890395 03515759 46c20c7b 78cbb6cb>;
game = <7c5aa182 4171414b b6bcfb04 358894d8 95dd0b1f b32ba46d 440ac807 17a00b19>;
gender = <bcdc57c3 7ad84924 40c67207 735167f4 e773c4b8 6fc53316 b9fe0220 4e53fad8>;
levels = <7aa35176 e55edff3 7ac01812 5cc17a05 60013487 92196c1d 366a437b a108a9ef>;
p = <593e105a 8ce080f6 aeb0081d 250039e3 6363b0a0 380fc096 6d18653e da7c1612>;
"p_event" = <acf2f48d 3d5ef365 6e6153a2 268ab4d2 9c4776ed 6165781e f86c0bbc 5b8bfe90>;
"p_type" = <36aaae5d db755d03 9a66e7b0 703ca8bf 5de4210a c6c9e8e3 ea77b8f4 6fd8f8fb>;
penalty = <a8ff8a90 08434fec 24caa525 b16972eb f9a35891 54945888 e68d6faf 7d7aea9f>;
"penalty_event" = <09ef67b3 238a32e0 1a2526d6 82374563 c7275b43 a11d26df fa8447b4 ac7f1175>;
"penalty_type" = <3cdcaf67 0748f85e 0b300ba0 4119f7c2 04cf6a39 1b836ec8 5850f3e6 3662e8ff>;
player = <4918d629 1aacc24b 59f5942f 0a0222ea 72edf9c7 18d74c0b ec0de756 5ad19d4a>;
position = <89407c79 8f0655a6 550666a3 9e87738d fb985882 5ae70c3a 9ca51fd7 50b24a94>;
roster = <34471eca 339a9ab4 ed86afc9 727c17c3 6117156b e726de09 97c979f2 d4272814>;
rules = <0f7d4bc6 5b82e1ee 6b3e9c3d 2c73ea62 78c6bbbb bb02b6c0 0bdc8a5e 2bc1d22d>;
statistic = <b92a539d 6329e839 d24a80ef e4006a28 3ee3cf68 5cbe1342 5a79f9c7 760f3ffe>;
"statistic_event" = <f8cecbe6 338d513d fc123e58 0cc3c8c6 15295759 91a7eb52 af6f5603 c26f571a>;
"statistic_type" = <84c5603e 008cdbc3 411c883d a0ac485b 160c35c8 f5ce7394 0fc06d2d c72ece9d>;
team = <214fad10 4519c1a5 e799b6ec aefc9adf 16dcae30 b09a01c6 00c4a89d cb113e16>;
"weather_conditions" = <23bce103 1dbe85b6 c7b92d66 69c2d334 34baf747 8ae60dcc dee2b5e0 b739bf31>;
}
2016-02-28 16:59:44.225 Lacrosse-Stats[4205:95840] Unresolved error Error Domain=NSCocoaErrorDomain Code=134130 "(null)" UserInfo={URL=file:///Users/pubnubcvconover/Library/Developer/CoreSimulator/Devices/91D7C4F6-34CA-4761-913F-C0B50E753469/data/Containers/Data/Application/ED789ADC-FB9C-43E2-8FDE-E02D80DD43E6/Documents/Stats_Pad.bin, metadata={
NSPersistenceFrameworkVersion = 641;
NSStoreModelVersionHashes = {
"field_conditions" = <1a8f23c4 a8f9f08a 7504bd89 b6c608df 89106202 f9c81f02 2441924c 12245334>;
"field_layout" = <da72d767 8f4c3614 fe56ab18 37905a4e b7890395 03515759 46c20c7b 78cbb6cb>;
game = <8f8c1e3b 595416df 4164209d 35268bfd e4f41bf7 aed776a9 3bcfe86a dea6fe6a>;
gender = <bcdc57c3 7ad84924 40c67207 735167f4 e773c4b8 6fc53316 b9fe0220 4e53fad8>;
levels = <7aa35176 e55edff3 7ac01812 5cc17a05 60013487 92196c1d 366a437b a108a9ef>;
p = <593e105a 8ce080f6 aeb0081d 250039e3 6363b0a0 380fc096 6d18653e da7c1612>;
"p_event" = <acf2f48d 3d5ef365 6e6153a2 268ab4d2 9c4776ed 6165781e f86c0bbc 5b8bfe90>;
"p_type" = <36aaae5d db755d03 9a66e7b0 703ca8bf 5de4210a c6c9e8e3 ea77b8f4 6fd8f8fb>;
penalty = <a8ff8a90 08434fec 24caa525 b16972eb f9a35891 54945888 e68d6faf 7d7aea9f>;
"penalty_event" = <09ef67b3 238a32e0 1a2526d6 82374563 c7275b43 a11d26df fa8447b4 ac7f1175>;
"penalty_type" = <3cdcaf67 0748f85e 0b300ba0 4119f7c2 04cf6a39 1b836ec8 5850f3e6 3662e8ff>;
player = <9d572c6d 15c11f5f 5d4aa3d0 10b75ea3 fa3dd352 1f89a53f f3a3f02e b3d1a4c1>;
position = <89407c79 8f0655a6 550666a3 9e87738d fb985882 5ae70c3a 9ca51fd7 50b24a94>;
roster = <34471eca 339a9ab4 ed86afc9 727c17c3 6117156b e726de09 97c979f2 d4272814>;
rules = <0f7d4bc6 5b82e1ee 6b3e9c3d 2c73ea62 78c6bbbb bb02b6c0 0bdc8a5e 2bc1d22d>;
statistic = <b92a539d 6329e839 d24a80ef e4006a28 3ee3cf68 5cbe1342 5a79f9c7 760f3ffe>;
"statistic_event" = <2d6d03bf 53f05b88 ddc692bc ab805dea 210dc3cb 93ea04e9 c2005fe1 d9f817d3>;
"statistic_type" = <84c5603e 008cdbc3 411c883d a0ac485b 160c35c8 f5ce7394 0fc06d2d c72ece9d>;
team = <97de1350 f685c550 8de940e6 e0c6d8fc f2cd1b80 94725d1b 535f0ff3 13474223>;
"weather_conditions" = <23bce103 1dbe85b6 c7b92d66 69c2d334 34baf747 8ae60dcc dee2b5e0 b739bf31>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = Binary;
NSStoreUUID = "829124BC-14FB-43C5-A845-A630BB9603E9";
"_NSAutoVacuumLevel" = 2;
}, reason=Can't find model for source store}, {
URL = "file:///Users/pubnubcvconover/Library/Developer/CoreSimulator/Devices/91D7C4F6-34CA-4761-913F-C0B50E753469/data/Containers/Data/Application/ED789ADC-FB9C-43E2-8FDE-E02D80DD43E6/Documents/Stats_Pad.bin";
metadata = {
NSPersistenceFrameworkVersion = 641;
NSStoreModelVersionHashes = {
"field_conditions" = <1a8f23c4 a8f9f08a 7504bd89 b6c608df 89106202 f9c81f02 2441924c 12245334>;
"field_layout" = <da72d767 8f4c3614 fe56ab18 37905a4e b7890395 03515759 46c20c7b 78cbb6cb>;
game = <8f8c1e3b 595416df 4164209d 35268bfd e4f41bf7 aed776a9 3bcfe86a dea6fe6a>;
gender = <bcdc57c3 7ad84924 40c67207 735167f4 e773c4b8 6fc53316 b9fe0220 4e53fad8>;
levels = <7aa35176 e55edff3 7ac01812 5cc17a05 60013487 92196c1d 366a437b a108a9ef>;
p = <593e105a 8ce080f6 aeb0081d 250039e3 6363b0a0 380fc096 6d18653e da7c1612>;
"p_event" = <acf2f48d 3d5ef365 6e6153a2 268ab4d2 9c4776ed 6165781e f86c0bbc 5b8bfe90>;
"p_type" = <36aaae5d db755d03 9a66e7b0 703ca8bf 5de4210a c6c9e8e3 ea77b8f4 6fd8f8fb>;
penalty = <a8ff8a90 08434fec 24caa525 b16972eb f9a35891 54945888 e68d6faf 7d7aea9f>;
"penalty_event" = <09ef67b3 238a32e0 1a2526d6 82374563 c7275b43 a11d26df fa8447b4 ac7f1175>;
"penalty_type" = <3cdcaf67 0748f85e 0b300ba0 4119f7c2 04cf6a39 1b836ec8 5850f3e6 3662e8ff>;
player = <9d572c6d 15c11f5f 5d4aa3d0 10b75ea3 fa3dd352 1f89a53f f3a3f02e b3d1a4c1>;
position = <89407c79 8f0655a6 550666a3 9e87738d fb985882 5ae70c3a 9ca51fd7 50b24a94>;
roster = <34471eca 339a9ab4 ed86afc9 727c17c3 6117156b e726de09 97c979f2 d4272814>;
rules = <0f7d4bc6 5b82e1ee 6b3e9c3d 2c73ea62 78c6bbbb bb02b6c0 0bdc8a5e 2bc1d22d>;
statistic = <b92a539d 6329e839 d24a80ef e4006a28 3ee3cf68 5cbe1342 5a79f9c7 760f3ffe>;
"statistic_event" = <2d6d03bf 53f05b88 ddc692bc ab805dea 210dc3cb 93ea04e9 c2005fe1 d9f817d3>;
"statistic_type" = <84c5603e 008cdbc3 411c883d a0ac485b 160c35c8 f5ce7394 0fc06d2d c72ece9d>;
team = <97de1350 f685c550 8de940e6 e0c6d8fc f2cd1b80 94725d1b 535f0ff3 13474223>;
"weather_conditions" = <23bce103 1dbe85b6 c7b92d66 69c2d334 34baf747 8ae60dcc dee2b5e0 b739bf31>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = Binary;
NSStoreUUID = "829124BC-14FB-43C5-A845-A630BB9603E9";
"_NSAutoVacuumLevel" = 2;
};
reason = "Can't find model for source store";
}
2016-02-28 16:59:44.228 Lacrosse-Stats[4205:95840] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name 'team''
*** First throw call stack:
(
0 CoreFoundation 0x03ae1a14 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x035a2e02 objc_exception_throw + 50
2 CoreData 0x0321c859 +[NSEntityDescription entityForName:inManagedObjectContext:] + 281
3 Lacrosse-Stats 0x001c3619 -[SPTeamsController setTeams] + 217
4 Lacrosse-Stats 0x001c4b55 -[SPTeamsController viewDidLoad] + 741
5 UIKit 0x01e8b2ae -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 44
6 UIKit 0x01e8fdce -[UIViewController loadViewIfRequired] + 1384
7 UIKit 0x01edb9f9 -[UINavigationController _layoutViewController:] + 52
8 UIKit 0x01edc2b1 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 421
9 UIKit 0x01edc458 -[UINavigationController _startTransition:fromViewController:toViewController:] + 145
10 UIKit 0x01edd854 -[UINavigationController _startDeferredTransitionIfNeeded:] + 1038
11 UIKit 0x01edeada -[UINavigationController __viewWillLayoutSubviews] + 68
12 UIKit 0x020bac4a -[UILayoutContainerView layoutSubviews] + 252
13 UIKit 0x01d90008 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 810
14 libobjc.A.dylib 0x035b7059 -[NSObject performSelector:withObject:] + 70
15 QuartzCore 0x0111480a -[CALayer layoutSublayers] + 144
16 QuartzCore 0x011084ee _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 388
17 QuartzCore 0x01108352 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
18 QuartzCore 0x010fae8b _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 317
19 QuartzCore 0x0112ee03 _ZN2CA11Transaction6commitEv + 561
20 QuartzCore 0x01130674 _ZN2CA11Transaction17flush_transactionEv + 50
21 UIKit 0x01ce6bf8 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke_2 + 111
22 CoreFoundation 0x039fb6e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
23 CoreFoundation 0x039f1063 __CFRunLoopDoBlocks + 195
24 CoreFoundation 0x039f0798 __CFRunLoopRun + 1016
25 CoreFoundation 0x039f00e6 CFRunLoopRunSpecific + 470
26 CoreFoundation 0x039efefb CFRunLoopRunInMode + 123
27 GraphicsServices 0x044b1664 GSEventRunModal + 192
28 GraphicsServices 0x044b14a1 GSEventRun + 104
29 UIKit 0x01cc3bfa UIApplicationMain + 160
30 Lacrosse-Stats 0x000ecab9 main + 121
31 libdyld.dylib 0x03f54a21 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Perhaps some architecture build setting I need to adjust? Been out of the iOS dev world for a couple years so not aware of all the details of all the changes - more just high level awareness of such things.
I searched on the first error it prints (Error creating LLDB target) and found this: Xcode - Error creating LLDB target
I asked an iOS Engineer that I work with and he nailed it in 5 seconds.
Menu Option for Simulator
Simulator > Reset Content and Setttings...
And thanks to those that provided input.

iOS App launches then instantly closes in simulator/xcode

any app I work on in Mavericks 10.9.1 / Xcode 5.0 / iOS Simulator 7.0.1 / SpriteKit seems to launch fine, but closes back to home as soon as it finishes loading the app.
This even happens on new projects I start in Xcode, using the basic "Hello, World!" template.
Using the basic SpriteKit template on a NEW project, I receive the following errors upon launch in iOS Simulator with no modifications to the code:
UPDATE #1: I'd also like to note, that after being forced to the Home Screen, all the other standard apps on iOS Simulator (Safari, Maps, etc.) function normally, implying that it may simply be the code itself. However, considering this happens on a brand new project straight out of the default Xcode 5.0.2 installation, I'm at a loss as to the cause.
System Log:
Marker - Feb 14, 2014, 2:07:00 PM
Feb 14 14:07:02 My-Mac-Pro.local SpringBoard[530] <Warning>: LICreateIconForImage passed NULL CGImageRef image
Feb 14 14:07:02 My-Mac-Pro com.apple.iphonesimulator.launchd.581ea05d[518] (UIKitApplication:MY.TestTestTest[0x871c][577]) <Warning>: Service exited with abnormal code: 1
Feb 14 14:07:02 My-Mac-Pro.local backboardd[520] <Warning>: Application 'UIKitApplication:MY.TestTestTest[0x871c]' exited abnormally with exit status 1
Console Log:
LLVM ERROR: Cannot select: 0xa4092b0: v16i8 = X86ISD::PSHUFB 0xa407bb8, 0xa408118 [ID=695]
0xa407bb8: v16i8 = llvm.x86.sse2.packuswb.128 0xa407b30, 0xa407a20, 0xa407aa8 [ORD=1594] [ID=694]
0xa407b30: i32 = TargetConstant<2543> [ORD=1594] [ID=37]
0xa407a20: v8i16 = llvm.x86.sse2.packssdw.128 0xa407998, 0xa407448, 0xa4075e0 [ORD=1592] [ID=693]
0xa407998: i32 = TargetConstant<2541> [ORD=1592] [ID=36]
0xa407448: v4i32 = llvm.x86.sse2.cvttps2dq 0xabe63e0, 0xa4073c0 [ORD=1582] [ID=691]
0xabe63e0: i32 = TargetConstant<2528> [ORD=1151] [ID=25]
0xa4073c0: v4f32 = fadd 0xa407338, 0xb3e70e8 [ORD=1581] [ID=688]
0xa407338: v4f32 = fmul 0xa406cc8, 0xa407e60 [ORD=1580] [ID=685]
0xa406cc8: v4f32 = llvm.x86.sse.min.ps 0xa3f4d78, 0xa406c40, 0xabf75e0 [ORD=1567] [ID=682]
0xa3f4d78: i32 = TargetConstant<2700> [ORD=1480] [ID=35]
0xa406c40: v4f32 = llvm.x86.sse.max.ps 0xa3f4b58, 0xa406bb8, 0xa407ee8 [ORD=1566] [ID=679]
0xa3f4b58: i32 = TargetConstant<2698> [ORD=1479] [ID=34]
0xa406bb8: v4f32,ch = load 0xa406b30, 0xabe62d0, 0xb3e4208<LD16[%604](tbaa=!"omnipotent char")> [ORD=1565] [ID=675]
0xabe62d0: i32 = FrameIndex<1> [ORD=978] [ID=4]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407ee8: v4f32 = bitcast 0xa4072b0 [ID=120]
0xa4072b0: v4i32 = BUILD_VECTOR 0xa407228, 0xa407228, 0xa407228, 0xa407228 [ID=100]
0xabf75e0: v4f32,ch = load 0x975facc, 0xa3f6118, 0xb3e4208<LD16[ConstantPool]> [ID=132]
0xa3f6118: i32 = add 0xb3e6978, 0xabf7f70 [ID=121]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xabf7f70: i32 = X86ISD::Wrapper 0xabe58a8 [ID=101]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407e60: v4f32,ch = load 0x975facc, 0xa408090, 0xb3e4208<LD16[ConstantPool]> [ID=135]
0xa408090: i32 = add 0xb3e6978, 0xa407f70 [ID=124]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xa407f70: i32 = X86ISD::Wrapper 0xa3f4be0 [ID=104]
0xa3f4be0: i32 = TargetConstantPool<<4 x float> <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>> 0 [TF=2] [ID=67]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xb3e70e8: v4f32,ch = load 0x975facc, 0xa3f6338, 0xb3e4208<LD16[ConstantPool]> [ID=133]
0xa3f6338: i32 = add 0xb3e6978, 0xb3e43a0 [ID=122]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xb3e43a0: i32 = X86ISD::Wrapper 0xabe61c0 [ID=102]
0xabe61c0: i32 = TargetConstantPool<<4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>> 0 [TF=2] [ID=65]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa4075e0: v4i32 = llvm.x86.sse2.cvttps2dq 0xabe63e0, 0xa407558 [ORD=1585] [ID=690]
0xabe63e0: i32 = TargetConstant<2528> [ORD=1151] [ID=25]
0xa407558: v4f32 = fadd 0xa4074d0, 0xb3e70e8 [ORD=1584] [ID=687]
0xa4074d0: v4f32 = fmul 0xa406e60, 0xa407e60 [ORD=1583] [ID=684]
0xa406e60: v4f32 = llvm.x86.sse.min.ps 0xa3f4d78, 0xa406dd8, 0xabf75e0 [ORD=1571] [ID=681]
0xa3f4d78: i32 = TargetConstant<2700> [ORD=1480] [ID=35]
0xa406dd8: v4f32 = llvm.x86.sse.max.ps 0xa3f4b58, 0xa406d50, 0xa407ee8 [ORD=1570] [ID=677]
0xa3f4b58: i32 = TargetConstant<2698> [ORD=1479] [ID=34]
0xa406d50: v4f32,ch = load 0xa406b30, 0xa405d50, 0xb3e4208<LD16[%608](tbaa=!"omnipotent char")> [ORD=1569] [ID=674]
0xa405d50: i32 = add 0xabe62d0, 0xb3dc798 [ORD=1465] [ID=73]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407ee8: v4f32 = bitcast 0xa4072b0 [ID=120]
0xa4072b0: v4i32 = BUILD_VECTOR 0xa407228, 0xa407228, 0xa407228, 0xa407228 [ID=100]
0xabf75e0: v4f32,ch = load 0x975facc, 0xa3f6118, 0xb3e4208<LD16[ConstantPool]> [ID=132]
0xa3f6118: i32 = add 0xb3e6978, 0xabf7f70 [ID=121]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xabf7f70: i32 = X86ISD::Wrapper 0xabe58a8 [ID=101]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407e60: v4f32,ch = load 0x975facc, 0xa408090, 0xb3e4208<LD16[ConstantPool]> [ID=135]
0xa408090: i32 = add 0xb3e6978, 0xa407f70 [ID=124]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xa407f70: i32 = X86ISD::Wrapper 0xa3f4be0 [ID=104]
0xa3f4be0: i32 = TargetConstantPool<<4 x float> <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>> 0 [TF=2] [ID=67]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xb3e70e8: v4f32,ch = load 0x975facc, 0xa3f6338, 0xb3e4208<LD16[ConstantPool]> [ID=133]
0xa3f6338: i32 = add 0xb3e6978, 0xb3e43a0 [ID=122]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xb3e43a0: i32 = X86ISD::Wrapper 0xabe61c0 [ID=102]
0xabe61c0: i32 = TargetConstantPool<<4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>> 0 [TF=2] [ID=65]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407aa8: v8i16 = llvm.x86.sse2.packssdw.128 0xa407998, 0xa407778, 0xa407910 [ORD=1593] [ID=692]
0xa407998: i32 = TargetConstant<2541> [ORD=1592] [ID=36]
0xa407778: v4i32 = llvm.x86.sse2.cvttps2dq 0xabe63e0, 0xa4076f0 [ORD=1588] [ID=689]
0xabe63e0: i32 = TargetConstant<2528> [ORD=1151] [ID=25]
0xa4076f0: v4f32 = fadd 0xa407668, 0xb3e70e8 [ORD=1587] [ID=686]
0xa407668: v4f32 = fmul 0xa407008, 0xa407e60 [ORD=1586] [ID=683]
0xa407008: v4f32 = llvm.x86.sse.min.ps 0xa3f4d78, 0xa406f70, 0xabf75e0 [ORD=1575] [ID=680]
0xa3f4d78: i32 = TargetConstant<2700> [ORD=1480] [ID=35]
0xa406f70: v4f32 = llvm.x86.sse.max.ps 0xa3f4b58, 0xa406ee8, 0xa407ee8 [ORD=1574] [ID=676]
0xa3f4b58: i32 = TargetConstant<2698> [ORD=1479] [ID=34]
0xa406ee8: v4f32,ch = load 0xa406b30, 0xa405e60, 0xb3e4208<LD16[%612](tbaa=!"omnipotent char")> [ORD=1573] [ID=673]
0xa405e60: i32 = add 0xabe62d0, 0xabe3fa0 [ORD=1467] [ID=75]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407ee8: v4f32 = bitcast 0xa4072b0 [ID=120]
0xa4072b0: v4i32 = BUILD_VECTOR 0xa407228, 0xa407228, 0xa407228, 0xa407228 [ID=100]
0xabf75e0: v4f32,ch = load 0x975facc, 0xa3f6118, 0xb3e4208<LD16[ConstantPool]> [ID=132]
0xa3f6118: i32 = add 0xb3e6978, 0xabf7f70 [ID=121]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xabf7f70: i32 = X86ISD::Wrapper 0xabe58a8 [ID=101]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407e60: v4f32,ch = load 0x975facc, 0xa408090, 0xb3e4208<LD16[ConstantPool]> [ID=135]
0xa408090: i32 = add 0xb3e6978, 0xa407f70 [ID=124]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xa407f70: i32 = X86ISD::Wrapper 0xa3f4be0 [ID=104]
0xa3f4be0: i32 = TargetConstantPool<<4 x float> <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>> 0 [TF=2] [ID=67]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xb3e70e8: v4f32,ch = load 0x975facc, 0xa3f6338, 0xb3e4208<LD16[ConstantPool]> [ID=133]
0xa3f6338: i32 = add 0xb3e6978, 0xb3e43a0 [ID=122]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xb3e43a0: i32 = X86ISD::Wrapper 0xabe61c0 [ID=102]
0xabe61c0: i32 = TargetConstantPool<<4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>> 0 [TF=2] [ID=65]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407910: v4i32 = llvm.x86.sse2.cvttps2dq 0xabe63e0, 0xa407888 [ORD=1591] [ID=672]
0xabe63e0: i32 = TargetConstant<2528> [ORD=1151] [ID=25]
0xa407888: v4f32 = fadd 0xa407800, 0xb3e70e8 [ORD=1590] [ID=670]
0xa407800: v4f32 = fmul 0xa4071a0, 0xa407e60 [ORD=1589] [ID=668]
0xa4071a0: v4f32 = llvm.x86.sse.min.ps 0xa3f4d78, 0xa407118, 0xabf75e0 [ORD=1579] [ID=666]
0xa3f4d78: i32 = TargetConstant<2700> [ORD=1480] [ID=35]
0xa407118: v4f32 = llvm.x86.sse.max.ps 0xa3f4b58, 0xa406888, 0xa407ee8 [ORD=1578] [ID=664]
0xa3f4b58: i32 = TargetConstant<2698> [ORD=1479] [ID=34]
0xa406888: v4f32 = fadd 0xa406800, 0xa3f5460 [ORD=1555] [ID=660]
0xa406800: v4f32 = fmul 0xa3f6dd8, 0xa406448 [ORD=1554] [ID=656]
0xa3f5460: v4f32 = llvm.x86.sse.min.ps 0xa3f4d78, 0xa3f53d8, 0xabf75e0 [ORD=1495] [ID=616]
0xa407ee8: v4f32 = bitcast 0xa4072b0 [ID=120]
0xa4072b0: v4i32 = BUILD_VECTOR 0xa407228, 0xa407228, 0xa407228, 0xa407228 [ID=100]
0xabf75e0: v4f32,ch = load 0x975facc, 0xa3f6118, 0xb3e4208<LD16[ConstantPool]> [ID=132]
0xa3f6118: i32 = add 0xb3e6978, 0xabf7f70 [ID=121]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xabf7f70: i32 = X86ISD::Wrapper 0xabe58a8 [ID=101]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa407e60: v4f32,ch = load 0x975facc, 0xa408090, 0xb3e4208<LD16[ConstantPool]> [ID=135]
0xa408090: i32 = add 0xb3e6978, 0xa407f70 [ID=124]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xa407f70: i32 = X86ISD::Wrapper 0xa3f4be0 [ID=104]
0xa3f4be0: i32 = TargetConstantPool<<4 x float> <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>> 0 [TF=2] [ID=67]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xb3e70e8: v4f32,ch = load 0x975facc, 0xa3f6338, 0xb3e4208<LD16[ConstantPool]> [ID=133]
0xa3f6338: i32 = add 0xb3e6978, 0xb3e43a0 [ID=122]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xb3e43a0: i32 = X86ISD::Wrapper 0xabe61c0 [ID=102]
0xabe61c0: i32 = TargetConstantPool<<4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>> 0 [TF=2] [ID=65]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
0xa408118: v16i8 = bitcast 0xa407d50 [ID=140]
0xa407d50: v2i64,ch = load 0x975facc, 0xa408228, 0xb3e4208<LD16[ConstantPool]> [ID=136]
0xa408228: i32 = add 0xb3e6978, 0xa4081a0 [ID=125]
0xb3e6978: i32 = X86ISD::GlobalBaseReg [ID=64]
0xa4081a0: i32 = X86ISD::Wrapper 0xb405660 [ID=105]
0xb405660: i32 = TargetConstantPool<<16 x i8> <i8 2, i8 1, i8 0, i8 3, i8 6, i8 5, i8 4, i8 7, i8 10, i8 9, i8 8, i8 11, i8 14, i8 13, i8 12, i8 15>> 0 [TF=2] [ID=68]
0xb3e4208: i32 = undef [ORD=977] [ID=3]
In function: gldLLVMFPTransform7
Try updating to Xcode 5.1 (The beta version is pretty stable) and as above - reset the content settings of the iOS simulator. It can be fussy at times.
Have you tried resetting the simulator? ('iOS Simulator menu' > 'Reset Content And Settings...')
It's not uncommon for the simulator to act funny at some point.
In finder select .xcodeproject file. Right click and select Show Package content.Then delete "xcuserdata"It usually store status of last execution.

Resources