question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Buck crash - Uncaught exception

See original GitHub issue

Trying to run app in iOS simulator but Buck crashes with uncaught exception. Pleases see below for exception.

buck version v2017.10.01.01
buck install --run :App
Building: finished in 0.0 sec (100%) 1/1 jobs, 0 updated, 0.0% cache miss
  Total time: 0.0 sec
Installing... 0.1 sec
[2017-10-19 17:17:23.093][error][command:null][tid:1352][com.facebook.buck.cli.Main] Uncaught exception at top level
java.lang.RuntimeException: java.lang.ClassNotFoundException: com/sun/security/auth/module/UnixSystem
	at com.facebook.buck.util.UnixUserIdFetcher.getUserId(UnixUserIdFetcher.java:31)
	at com.facebook.buck.apple.simulator.AppleCoreSimulatorServiceController.getCoreSimulatorServicePath(AppleCoreSimulatorServiceController.java:81)
	at com.facebook.buck.cli.InstallCommand.installAppleBundleForSimulator(InstallCommand.java:690)
	at com.facebook.buck.cli.InstallCommand.installAppleBundle(InstallCommand.java:480)
	at com.facebook.buck.cli.InstallCommand.install(InstallCommand.java:294)
	at com.facebook.buck.cli.InstallCommand.runWithoutHelp(InstallCommand.java:236)
	at com.facebook.buck.cli.AbstractCommand.run(AbstractCommand.java:231)
	at com.facebook.buck.cli.AbstractContainerCommand.run(AbstractContainerCommand.java:71)
	at com.facebook.buck.cli.BuckCommand.run(BuckCommand.java:81)
	at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:1047)
	at com.facebook.buck.cli.Main.runMainThenExit(Main.java:384)
	at com.facebook.buck.cli.Main.nailMain(Main.java:1806)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.martiansoftware.nailgun.NGSession.run(NGSession.java:329)
Caused by: java.lang.ClassNotFoundException: com/sun/security/auth/module/UnixSystem
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:375)
	at com.facebook.buck.util.UnixUserIdFetcher.getUserId(UnixUserIdFetcher.java:26)
	... 16 more

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
techyvishcommented, Oct 22, 2017

Thanks @ttsugriy, will use older version for now.

0reactions
ttsugriycommented, Oct 23, 2017

sorry for the inconveniences @techyvish and thanks for using Buck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can Java programs crash when exceptions must always ...
At the end, sometimes a Java program still sometimes crashes due to an unhandled exception. How does this happen? java · exception ·...
Read more >
UITextField undo crash | Apple Developer Forums
Terminating app due to uncaught exception 'NSRangeException', reason: 'NSMutableRLEArray replaceObjectsInRange:withObject:length:: Out of bounds' ...
Read more >
Deer crashes in Wisconsin causing drivers to pay more
Wisconsin drivers keep hitting deer while supply chain issues are causing them to pay more and hang on to their vehicles longer.
Read more >
Lecture 2 Exception Handling - Canvas
If we do not handle runtime errors, our program will crash. ... CrashTest.java: ... buck stops with the global default exception handler –...
Read more >
1264961 - Assertion failure: !inFrameMaps(frame), at js/src/vm ...
The following testcase crashes on mozilla-central revision 10f66b316457 ... If there's no user-set handler for uncaught exceptions, that exception will be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found