Buggy code:
public final class CaptureActivity extends Activity implements SurfaceHolder . Callback { private static final String TAG = CaptureActivity . class . getSimpleName ( ) ; private static final Pattern COMMA_PATTERN = Pattern . compile ( "," ) ; private static final int SHARE_ID = Menu . FIRST ; private static final int HISTORY_ID = ( Menu . FIRST ) + 1 ; private static final int SETTINGS_ID = ( Menu . FIRST ) + 2 ; private static final int HELP_ID = ( Menu . FIRST ) + 3 ; private static final int ABOUT_ID = ( Menu . FIRST ) + 4 ; private static final long INTENT_RESULT_DURATION = 1500L ; private static final float BEEP_VOLUME = 0.1F ; private static final long VIBRATE_DURATION = 200L ; private static final String PACKAGE_NAME = "com.google.zxing.client.android" ; private static final String PRODUCT_SEARCH_URL_PREFIX = "http:////www.google" ; private static final String PRODUCT_SEARCH_URL_SUFFIX = "//m//products//scan" ; private static final String ZXING_URL = "http:////zxing.appspot.com//scan" ; private static final String RETURN_CODE_PLACEHOLDER = "{CODE}" ; private static final String RETURN_URL_PARAM = "ret" ; static final Vector < BarcodeFormat > PRODUCT_FORMATS ; static final Vector < BarcodeFormat > ONE_D_FORMATS ; static final Vector < BarcodeFormat > QR_CODE_FORMATS ; static final Vector < BarcodeFormat > ALL_FORMATS ; private enum Source { NATIVE_APP_INTENT , PRODUCT_SEARCH_LINK , ZXING_LINK , NONE ; } private CaptureActivityHandler handler ; private ViewfinderView viewfinderView ; private View statusView ; private View resultView ; private MediaPlayer mediaPlayer ; private Result lastResult ; private boolean hasSurface ; private boolean playBeep ; private boolean vibrate ; private boolean copyToClipboard ; private CaptureActivity . Source source ; private String sourceUrl ; private String returnUrlTemplate ; private Vector < BarcodeFormat > decodeFormats ; private String characterSet ; private String versionName ; private HistoryManager historyManager ; private final OnCompletionListener beepListener = new CaptureActivity . BeepListener ( ) ; private final OnClickListener aboutListener = new DialogInterface . OnClickListener ( ) { public void onClick ( DialogInterface dialogInterface , int i ) { } } ; ViewfinderView getViewfinderView ( ) { } public Handler getHandler ( ) { } @ Override public void onCreate ( Bundle icicle ) { } @ Override protected void onResume ( ) { } private static Vector < BarcodeFormat > parseDecodeFormats ( Intent intent ) { } private static Vector < BarcodeFormat > parseDecodeFormats ( Uri inputUri ) { } private static Vector < BarcodeFormat > parseDecodeFormats ( List < String > scanFormats , String decodeMode ) { } @ Override protected void onPause ( ) { } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onPrepareOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override public void onConfigurationChanged ( Configuration config ) { } public void surfaceCreated ( SurfaceHolder holder ) { } public void surfaceDestroyed ( SurfaceHolder holder ) { } public void surfaceChanged ( SurfaceHolder holder , int format , int width , int height ) { } public void handleDecode ( Result rawResult , Bitmap barcode ) { } private void drawResultPoints ( Bitmap barcode , Result rawResult ) { } private void handleDecodeInternally ( Result rawResult , Bitmap barcode ) { } private void handleDecodeExternally ( Result rawResult , Bitmap barcode ) { } private boolean showHelpOnFirstLaunch ( ) { } private void initBeepSound ( ) { } private void playBeepSoundAndVibrate ( ) { } private void initCamera ( SurfaceHolder surfaceHolder ) { try { CameraManager . get ( ) . openDriver ( surfaceHolder ) ; } catch ( IOException ioe ) { Log . w ( CaptureActivity . TAG , ioe ) ; displayFrameworkBugMessageAndExit ( ) ; return ; } catch ( RuntimeException e ) { <START_BUG> Log . e ( CaptureActivity . TAG , e . toString ( ) ) ; <END_BUG> displayFrameworkBugMessageAndExit ( ) ; return ; } if ( ( handler ) == null ) { boolean beginScanning = ( lastResult ) == null ; handler = new CaptureActivityHandler ( this , decodeFormats , characterSet , beginScanning ) ; } } private void displayFrameworkBugMessageAndExit ( ) { } private void resetStatusView ( ) { } public void drawViewfinder ( ) { } private static class BeepListener implements OnCompletionListener { public void onCompletion ( MediaPlayer mediaPlayer ) { } } }

Fix:
Log . w ( CaptureActivity . TAG , "Unexpected<seq2seq4repair_space>error<seq2seq4repair_space>initializating<seq2seq4repair_space>camera" , e ) ;