# Console printing 30 lines of random stuff everytime i run code

**URL:** <https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315>\
**Category:** Processing\
**Created:** [March 16, 2023, 5:17am UTC](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315 "2023-03-16T05:17:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tenzin](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@Tenzin](https://discourse.processing.org/u/Tenzin)\
**Post date:** [March 16, 2023, 5:17am UTC](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315/1 "2023-03-16T05:17:22Z")

</div>

I’m not sure what to call it but everytime I run code my console prints this twice:  
1 HIToolbox 0x00000001b9aa05c8 \_ZN15MenuBarInstance22EnsureAutoShowObserverEv + 120  
2 HIToolbox 0x00000001b9aa0188 \_ZN15MenuBarInstance14EnableAutoShowEv + 60  
3 HIToolbox 0x00000001b9a43310 SetMenuBarObscured + 372  
4 HIToolbox 0x00000001b9a42ee8 \_ZN13HIApplication15HandleActivatedEP14OpaqueEventRefhP15OpaqueWindowPtrh + 172  
5 HIToolbox 0x00000001b9a3cfcc \_ZN13HIApplication13EventObserverEjP14OpaqueEventRefPv + 296  
6 HIToolbox 0x00000001b9a03cd0 \_NotifyEventLoopObservers + 176  
7 HIToolbox 0x00000001b9a3c96c AcquireEventFromQueue + 432  
8 HIToolbox 0x00000001b9a2bc84 ReceiveNextEventCommon + 320  
9 HIToolbox 0x00000001b9a2bb2c \_BlockUntilNextEventMatchingListInModeWithFilter + 72  
10 AppKit 0x00000001b35d1838 \_DPSNextEvent + 632  
11 AppKit 0x00000001b35d09c8 -[NSApplication(NSEvent) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728  
12 libosxapp.dylib 0x0000000123928218 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 144  
13 AppKit 0x00000001b35c4df8 -[NSApplication run] + 464  
14 libosxapp.dylib 0x0000000123927fd0 +[NSApplicationAWT runAWTLoopWithApp:] + 208  
15 libawt\_lwawt.dylib 0x0000000126e8c504 +[AWTStarter starter:headless:] + 488  
16 libosxapp.dylib 0x0000000123929c48 +[ThreadUtilities invokeBlockCopy:] + 28  
17 Foundation 0x00000001b1273900 \_\_NSThreadPerformPerform + 264  
18 CoreFoundation 0x00000001b034da08 **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_A\_SOURCE0\_PERFORM\_FUNCTION** + 28  
19 CoreFoundation 0x00000001b034d99c \_\_CFRunLoopDoSource0 + 176  
20 CoreFoundation 0x00000001b034d70c \_\_CFRunLoopDoSources0 + 244  
21 CoreFoundation 0x00000001b034c310 \_\_CFRunLoopRun + 836  
22 CoreFoundation 0x00000001b034b878 CFRunLoopRunSpecific + 612  
23 libjli.dylib 0x0000000104e370dc CreateExecutionEnvironment + 400  
24 libjli.dylib 0x0000000104e334b0 JLI\_Launch + 1212  
25 java 0x0000000104d7fbb0 main + 408  
26 dyld 0x00000001aff43e50 start + 2544

I’m not sure what this is but if anyone knows how to get rid of it that would be greatly appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![Tenzin](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@Tenzin](https://discourse.processing.org/u/Tenzin)\
**Post date:** [March 16, 2023, 5:41am UTC](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315/2 "2023-03-16T05:41:06Z")

</div>

Sorry it only prints those lines once, the second block is actually these:

1 HIToolbox 0x00000001b9a2b90c \_ZN15MenuBarInstance22RemoveAutoShowObserverEv + 44  
2 HIToolbox 0x00000001b9aa0fbc \_ZN15MenuBarInstance15DisableAutoShowEv + 36  
3 HIToolbox 0x00000001b9a0d8c4 \_ZN15MenuBarInstance21UpdateAggregateUIModeE21MenuBarAnimationStylehhh + 1192  
4 HIToolbox 0x00000001b9a0d30c \_ZN15MenuBarInstance16ForEachMenuBarDoEU13block\_pointerFvPS\_E + 72  
5 HIToolbox 0x00000001b9a0d2b4 \_ZL25UpdateAllAggregateUIModes21MenuBarAnimationStyleh + 120  
6 HIToolbox 0x00000001b9a0d228 SetSystemUIMode + 140  
7 AppKit 0x00000001b388fd2c -[NSApplication \_setPresentationOptions:instance:flags:] + 972  
8 libDifferent.jnilib 0x00000001155abf20 Java\_processing\_core\_ThinkDifferent\_hideMenuBar + 64  
9 ??? 0x000000013753fbe0 0x0 + 5223218144  
10 ??? 0x0000000137534140 0x0 + 5223170368  
11 libjvm.dylib 0x0000000101a59330 \_ZN9JavaCalls11call\_helperEP9JavaValueRK12methodHandleP17JavaCallArgumentsP10JavaThread + 908  
12 libjvm.dylib 0x0000000101e20f08 \_ZL6invokeP13InstanceKlassRK12methodHandle6Handleb14objArrayHandle9BasicTypeS5\_bP10JavaThread + 2340  
13 libjvm.dylib 0x0000000101e20584 \_ZN10Reflection13invoke\_methodEP7oopDesc6Handle14objArrayHandleP10JavaThread + 352  
14 libjvm.dylib 0x0000000101b15158 JVM\_InvokeMethod + 880  
15 ??? 0x000000013753fbe0 0x0 + 5223218144  
16 ??? 0x000000013753a270 0x0 + 5223195248  
17 ??? 0x000000013753a270 0x0 + 5223195248  
18 ??? 0x000000013753ac60 0x0 + 5223197792  
19 ??? 0x000000013753a270 0x0 + 5223195248  
20 ??? 0x000000013753a6ac 0x0 + 5223196332  
21 ??? 0x000000013753a6ac 0x0 + 5223196332  
22 ??? 0x000000013753b09c 0x0 + 5223198876  
23 ??? 0x000000013753a6ac 0x0 + 5223196332  
24 ??? 0x0000000137534140 0x0 + 5223170368  
25 libjvm.dylib 0x0000000101a59330 \_ZN9JavaCalls11call\_helperEP9JavaValueRK12methodHandleP17JavaCallArgumentsP10JavaThread + 908  
26 libjvm.dylib 0x0000000101abdd00 \_ZL17jni\_invoke\_staticP7JNIEnv\_P9JavaValueP8\_jobject11JNICallTypeP10\_jmethodIDP18JNI\_ArgumentPusherP10JavaThread + 300  
27 libjvm.dylib 0x0000000101ac132c jni\_CallStaticVoidMethod + 304  
28 libjli.dylib 0x0000000100599468 JavaMain + 2516  
29 libjli.dylib 0x000000010059b7d8 ThreadJavaMain + 12  
30 libsystem\_pthread.dylib 0x00000001b026e06c \_pthread\_start + 148  
31 libsystem\_pthread.dylib 0x00000001b0268e2c thread\_start + 8

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [March 17, 2023, 9:04am UTC](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315/3 "2023-03-17T09:04:20Z")

</div>

Hi @Tenzin,

Welcome to the forum! 😉

Can you please provide these information:

- Which operating system you are using
- Which version of Processing
- The code that actually does the above behavior

---

<div class="post-metadata">

**Author:** ![Tenzin](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@Tenzin](https://discourse.processing.org/u/Tenzin)\
**Post date:** [March 19, 2023, 6:06am UTC](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315/4 "2023-03-19T06:06:47Z")

</div>

Yes sorry,  
The issue happens on any code I run, I am on macOS ventura 13.2, and it is processing version 4.1.3  
Thanks

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [March 19, 2023, 1:28pm UTC](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315/5 "2023-03-19T13:28:10Z")

</div>

Thanks, I can’t find the issue on GitHub can you please create a new one here (by providing all the information you gave us)?

> **[Issues · processing/processing4](https://github.com/processing/processing4/issues)**
>
> Processing 4.x releases for Java 17. Contribute to processing/processing4 development by creating an account on GitHub.

This seems to be related to some MacOS related behavior:

> <https://github.com/processing/processing4/blob/main/core/src/processing/core/ThinkDifferent.java>
