Author Topic: Strange problem opening CamBam  (Read 27009 times)

Offline qwerty

  • Ewok
  • *
  • Posts: 32
    • View Profile
Strange problem opening CamBam
« on: May 02, 2023, 09:27:56 am »
Hi, I have a strange problem using licenced CamBam (CamBam.CAD: 1.0.7364.41819, CamBam: 1.0.7364.41821, Build Date: 29. 2. 2020 23:13:58, Framework Version: 4.0.30319.42000) on my laptop. When I start CamBam, there are only two possible things that will happen:

1) CamBam opens within 2 seconds and everything works like a charm, or

2) CamBam opens veeeery slowly, UI elements appear veery slowly, Cambam is thinking... message displays for looong time and when finaly I see a complete UI, it is imppossible to work because every click in UI is lagged or delayed. I have to close program and try to open it again.

It is unpredictable which way from above the program chooses to go. It does not matter if I open new instance or existing .cb file. I have just reinstalled Windows 10 only because of this problem but the problem still exists.

When I want to open program, I start it once. If it does not work within 2 seconds, I start another instance .... until the last one works normaly, while previous instances are still slooowlyyy opening.

I am not able find out any reasons for this behaviour. Any idea or suggestion what to try, please?

Thanks.

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Strange problem opening CamBam
« Reply #1 on: May 02, 2023, 11:27:40 am »
That happens to me all the time.  A restart or TWO (not a re-installation) of Windows 10 usually fixes it, at the cost of a great waste of time!

Win10 has so much 'trash' in the way of stack imbalances and code snippets that end up abandoned in memory (rather than being deleted after running) that available memory fills up rather rapidly, even if you have considerably more RAM than recommended.

Every indication is that Windows 11 is FAR worse!

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 661
    • View Profile
Re: Strange problem opening CamBam
« Reply #2 on: May 02, 2023, 23:34:36 pm »
For another point of reference, this rarely, if ever, happens to me, and I use CB 1.0 on Win10Pro 22H2 19045.2913 w/32GB RAM and with all latest Win10 obnoxious updates almost daily.

The only difference might be that I primarily us CB for precision drawings such as floor plans, schematics, PCB layouts that are exported as DXF or used with MOPs to do single or double sided isolation routing.  I haven't generated very many MOP files lately.

airnocker

Everything depends on everything else

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Strange problem opening CamBam
« Reply #3 on: May 03, 2023, 00:25:38 am »
I think you may have hit upon a point, knocker.  The question is "what else do you use your Winblows system for, besides CamBam"?

Mine is my general-purpose shop computer -- email, web browsing, CAD, CAM, math softs, chemistry softs, word processing, billing, spreadsheets...the whole thing.

Perhaps restricting myself to only CamBam would limit the problems I have.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline qwerty

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Strange problem opening CamBam
« Reply #4 on: May 03, 2023, 11:27:51 am »
W10Pro, 22H2, clean OS install, with CamBam only installed, no improvement. Tried both CamBam 32- and 64-bit versions, scratch install without any plugins or modification... Several W10 restarts does not help. I had a suspicion this might be related to Windows updates but problem persists even with Windows updates disabled for several months and many many restarts.

Hoping for dev team reply like "please turn on this cambam setting and send us log file"...

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3381
    • View Profile
Re: Strange problem opening CamBam
« Reply #5 on: May 03, 2023, 12:48:45 pm »
Hi, what about the laptop you are installing CB on? What is the processor, memory size? Did you run diagnostics on the laptop? Possibly computer memory acting up. CB is a memory hog. Personally I don't have problems you are having, even though I run other applications at the same time in the background. Currently running CB v1 on Win 11 desktop. Good luck.
« Last Edit: May 03, 2023, 20:19:34 pm by Bubba »
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7577
    • View Profile
    • Cambam V1.0 French Doc
Re: Strange problem opening CamBam
« Reply #6 on: May 03, 2023, 14:53:20 pm »
Hello

Quote
Hoping for dev team reply like "please turn on this cambam setting and send us log file"...

Unfortunately, as I know, Andy never managed to reproduce this problem on his PCs, so, difficult to find what is the responsible.

++
David

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 661
    • View Profile
Re: Strange problem opening CamBam
« Reply #7 on: May 03, 2023, 18:36:30 pm »
I think you may have hit upon a point, knocker.  The question is "what else do you use your Winblows system for, besides CamBam"?

Mine is my general-purpose shop computer -- email, web browsing, CAD, CAM, math softs, chemistry softs, word processing, billing, spreadsheets...the whole thing.

Perhaps restricting myself to only CamBam would limit the problems I have.

Lloyd

Sorry if I left a wrong impression.  My Win10 computer is multi-purpose as well, I just do not always use CB for creating CNC milling files.  In fact, my CNC work is very infrequent lately.

I can attest that not having all updates installed can cause Win10 to run at a random crawl when doing almost anything, including just booting up.  After all recommended (not optional) updates were applied my computer's speed normalized again.  Another thing that may help is to open the C:\Windows\Temp folder and delete any ".tmp" files in this folder whose file date is older than "todays" date.

Addendum: I should have added for those unaware that you should have file explorer set to view file extensions, hidden and system files, plus be logged in with admin equivalence.
« Last Edit: May 03, 2023, 20:52:24 pm by airnocker »
airnocker

Everything depends on everything else

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 661
    • View Profile
Re: Strange problem opening CamBam
« Reply #8 on: May 03, 2023, 18:39:21 pm »
W10Pro, 22H2, clean OS install, with CamBam only installed, no improvement. Tried both CamBam 32- and 64-bit versions, scratch install without any plugins or modification... Several W10 restarts does not help. I had a suspicion this might be related to Windows updates but problem persists even with Windows updates disabled for several months and many many restarts.

Hoping for dev team reply like "please turn on this cambam setting and send us log file"...

To me, this result points in the direction of your computer or its BIOS settings.
airnocker

Everything depends on everything else

Offline qwerty

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Strange problem opening CamBam
« Reply #9 on: May 04, 2023, 07:52:40 am »
This happens "all the time" to Lloyd with 32 GB memory, "rarely" to airnocker as well. My laptop has 8 GB RAM, SSD, Intel i5-2520M CPU (2.50GHz). Cannot imagine a BIOS setting possibly related to this. Anyway, when I open e.g. 10 "good" CamBam instances, they all work just perfect. RAM and CPU IMHO not related neither. Temp files deleted, no indication of any problem (clean application and system log). I had this problem with 6 GB RAM and it still exists after upgrading to 8 GB. Have not run memtest86 although. CB run w/ and w/o admin privileges, no difference.

I can provide a remote access to my laptop if needed.


Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 661
    • View Profile
Re: Strange problem opening CamBam
« Reply #10 on: May 04, 2023, 18:48:11 pm »
Quote
Cannot imagine a BIOS setting possibly related to this.

Not knowing the age of the laptop, BIOS settings may not always be automatically be detected and set properly, e.g. memory type and speed as an example, CPU clock speed or over-clocking speed if set, etc.

Also, I just noticed your initial comment, "I just reinstalled Win 10...because of this problem".  This may not have also applied all updates unless the reinstall was from a recently created recovery disk, otherwise with a network connection Windows would be polling to see if updates need to be applied.  If there are a bunch to do, this will really slow down the computer until they are done.  When running 32-bit CB 1.0 make sure it runs in Compatibility Mode, otherwise if your CPU is a 64-bit use the CB 64-bit version.

I've almost always noticed that when any application takes an unusually long, long time to open, something else is running in the background prioritizing CPU allocations.  Most often this is Windows downloading or installing updates without notifying you.

A good way to test if this is the case while CB is slow to open is to open Task Manager and ensure it is showing the "More Details" mode. 
Press CTRL+Shift+ESC to open Task Manager.

If CB (or other app) is slow to open, Windows is general busy with background tasks.  If Task Manager will open quickly or in a more timely manner, click on the CPU column header to see what processes are prioritizing CPU as a percentage of available CPU clocks.  Somewhere in the Process Name column you will see CB listed and its relative CPU priority.  It is also useful to click on other column headers such as Network to see it as the priority view of Task Manager.

Keep us informed.


airnocker

Everything depends on everything else

Offline qwerty

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Strange problem opening CamBam
« Reply #11 on: August 14, 2023, 09:15:46 am »
When I start CB and see that it will not start in proper way and click on Close (x) window icon, there are two messages generated to Windows application event log:

Source: .NET Runtim

Application: CamBam.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
   at CamBam.CamBamMain.Main()


Source: Application error

Názov chybujúcej aplikácie: CamBam.exe, verzia: 1.0.7364.41821, časová značka: 0x5e5af03c
Názov chybujúceho modulu: KERNELBASE.dll, verzia: 10.0.19041.3208, časová značka: 0xbc1cd7c0
Kód výnimky: 0xe0434352
Odstup chyby: 0x0013d902
Identifikácia chybujúceho procesu: 0x25a4
Čas spustenia chybujúcej aplikácie: 0x01d9ce8dbbd45161
Cesta chybujúcej aplikácie: C:\Program Files (x86)\CamBam plus 1.0\CamBam.exe
Cesta chybujúceho modulu: C:\Windows\System32\KERNELBASE.dll
Identifikácia hlásenia: 60067faa-36a0-4907-a78c-fa46492c67e2
Celé meno chybujúceho balíka:
Identifikácia chybujúcej aplikácie vzhľadom na balík:


Is this any help?

This is generated only when I close CB while it is starting. If I wait ages until it is fully started and then close it, no messages in system log apper.