mjansen4857 / pathplanner

A simple yet powerful path planning tool for FRC robots
https://pathplanner.dev
MIT License
396 stars 125 forks source link

Pathplanner doesn't launch on my computer #117

Closed J-Barta closed 2 years ago

J-Barta commented 2 years ago

Pathplanner will no longer launch on my Windows 11 computer. It definitely hasn't worked since updating to the newest Windows version (22H2), but I honestly don't know if the update caused it to not work. I know it was working some time (like a month) before updating, and it isn't working now (like a week after updating). I've tried uninstalling and re-installing from the windows store, as well as downloading the exe directly and running it, but the app didn't launch in either of those cases.

mjansen4857 commented 2 years ago

This is really hard to diagnose so can you install flutter and run the app in debug mode? If it still crashes this should give you some error output.

clmazzac commented 2 years ago

i problemed


EventType=MoAppCrash
EventTime=133097318741353284
ReportType=2
Consent=1
UploadTime=133097318743476430
ReportStatus=268435456
ReportIdentifier=2facffe8-f903-421a-ae7a-bd3a00407ef6
IntegratorReportIdentifier=f289ba7b-cb2d-4d10-8c06-da4c59d5b13f
Wow64Host=34404
NsAppName=praid:pathplanner
OriginalFilename=pathplanner.exe
AppSessionGuid=00002b34-0002-0008-1058-ef634edbd801
TargetAppId=U:39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda!pathplanner
TargetAppVer=2022.1.2.0_x64_!2022//03//24:18:53:48!0!pathplanner.exe
BootId=4294967295
TargetAsId=5602
IsFatal=1
EtwNonCollectReason=1
Response.BucketId=e3d86ba2568e1026875f9f1f8bc694fc
Response.BucketTable=5
Response.LegacyBucketId=1684239743497704700
Response.type=4
Sig[0].Name=Package Full Name
Sig[0].Value=39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda
Sig[1].Name=Application Name
Sig[1].Value=praid:pathplanner
Sig[2].Name=Application Version
Sig[2].Value=1.0.0.0
Sig[3].Name=Application Timestamp
Sig[3].Value=623cbe3c
Sig[4].Name=Fault Module Name
Sig[4].Value=pathplanner.exe
Sig[5].Name=Fault Module Version
Sig[5].Value=1.0.0.0
Sig[6].Name=Fault Module Timestamp
Sig[6].Value=623cbe3c
Sig[7].Name=Exception Code
Sig[7].Value=c0000005
Sig[8].Name=Exception Offset
Sig[8].Value=0000000000005e50
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=10.0.22621.2.0.0.768.101
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=8eb0
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=8eb0c9bfca938091fe2837411a56a7fd
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=1ca1
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=1ca1d9edc73f4e5b27e3c2668d65ac00
UI[2]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\pathplanner.exe
LoadedModule[0]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\pathplanner.exe
LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\WINDOWS\System32\KERNEL32.DLL
LoadedModule[3]=C:\WINDOWS\System32\KERNELBASE.dll
LoadedModule[4]=C:\WINDOWS\System32\USER32.dll
LoadedModule[5]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\file_selector_windows_plugin.dll
LoadedModule[6]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\url_launcher_windows_plugin.dll
LoadedModule[7]=C:\WINDOWS\System32\win32u.dll
LoadedModule[8]=C:\WINDOWS\System32\GDI32.dll
LoadedModule[9]=C:\WINDOWS\System32\gdi32full.dll
LoadedModule[10]=C:\WINDOWS\System32\msvcp_win.dll
LoadedModule[11]=C:\WINDOWS\System32\ucrtbase.dll
LoadedModule[12]=C:\WINDOWS\System32\SHELL32.dll
LoadedModule[13]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\flutter_windows.dll
LoadedModule[14]=C:\WINDOWS\System32\ole32.dll
LoadedModule[15]=C:\WINDOWS\System32\ADVAPI32.dll
LoadedModule[16]=C:\WINDOWS\System32\combase.dll
LoadedModule[17]=C:\WINDOWS\System32\msvcrt.dll
LoadedModule[18]=C:\WINDOWS\System32\RPCRT4.dll
LoadedModule[19]=C:\WINDOWS\System32\sechost.dll
LoadedModule[20]=C:\WINDOWS\SYSTEM32\dwmapi.dll
LoadedModule[21]=C:\WINDOWS\System32\PSAPI.DLL
LoadedModule[22]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.22621.608_none_fb280a3c7926c2cc\COMCTL32.dll
LoadedModule[23]=C:\WINDOWS\System32\WS2_32.dll
LoadedModule[24]=C:\WINDOWS\System32\IMM32.dll
LoadedModule[25]=C:\WINDOWS\System32\CRYPT32.dll
LoadedModule[26]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\VCRUNTIME140.dll
LoadedModule[27]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\MSVCP140.dll
LoadedModule[28]=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\VCRUNTIME140_1.dll
LoadedModule[29]=C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
LoadedModule[30]=C:\WINDOWS\SYSTEM32\dxgi.dll
LoadedModule[31]=C:\WINDOWS\SYSTEM32\bcrypt.dll
LoadedModule[32]=C:\WINDOWS\SYSTEM32\OPENGL32.dll
LoadedModule[33]=C:\WINDOWS\SYSTEM32\d3d9.dll
LoadedModule[34]=C:\WINDOWS\SYSTEM32\GLU32.dll
LoadedModule[35]=C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
LoadedModule[36]=C:\WINDOWS\SYSTEM32\dxcore.dll
LoadedModule[37]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll
LoadedModule[38]=C:\WINDOWS\System32\bcryptPrimitives.dll
LoadedModule[39]=C:\WINDOWS\system32\uxtheme.dll
LoadedModule[40]=C:\WINDOWS\System32\shcore.dll
LoadedModule[41]=C:\WINDOWS\System32\MSCTF.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
OsInfo[0].Key=vermaj
OsInfo[0].Value=10
OsInfo[1].Key=vermin
OsInfo[1].Value=0
OsInfo[2].Key=verbld
OsInfo[2].Value=22621
OsInfo[3].Key=ubr
OsInfo[3].Value=608
OsInfo[4].Key=versp
OsInfo[4].Value=0
OsInfo[5].Key=arch
OsInfo[5].Value=9
OsInfo[6].Key=lcid
OsInfo[6].Value=1033
OsInfo[7].Key=geoid
OsInfo[7].Value=244
OsInfo[8].Key=sku
OsInfo[8].Value=101
OsInfo[9].Key=domain
OsInfo[9].Value=0
OsInfo[10].Key=prodsuite
OsInfo[10].Value=768
OsInfo[11].Key=ntprodtype
OsInfo[11].Value=1
OsInfo[12].Key=platid
OsInfo[12].Value=10
OsInfo[13].Key=sr
OsInfo[13].Value=0
OsInfo[14].Key=tmsi
OsInfo[14].Value=221826089
OsInfo[15].Key=osinsty
OsInfo[15].Value=1
OsInfo[16].Key=iever
OsInfo[16].Value=11.1.22621.0-11.0.1000
OsInfo[17].Key=portos
OsInfo[17].Value=0
OsInfo[18].Key=ram
OsInfo[18].Value=32063
OsInfo[19].Key=svolsz
OsInfo[19].Value=237
OsInfo[20].Key=wimbt
OsInfo[20].Value=0
OsInfo[21].Key=blddt
OsInfo[21].Value=220506
OsInfo[22].Key=bldtm
OsInfo[22].Value=1250
OsInfo[23].Key=bldbrch
OsInfo[23].Value=ni_release
OsInfo[24].Key=bldchk
OsInfo[24].Value=0
OsInfo[25].Key=wpvermaj
OsInfo[25].Value=0
OsInfo[26].Key=wpvermin
OsInfo[26].Value=0
OsInfo[27].Key=wpbuildmaj
OsInfo[27].Value=0
OsInfo[28].Key=wpbuildmin
OsInfo[28].Value=0
OsInfo[29].Key=osver
OsInfo[29].Value=10.0.22621.608.amd64fre.ni_release.220506-1250
OsInfo[30].Key=buildflightid
OsInfo[30].Value=8E409263-45B4-438D-AD01-6E9674AB032A.1
OsInfo[31].Key=edition
OsInfo[31].Value=Core
OsInfo[32].Key=ring
OsInfo[32].Value=Retail
OsInfo[33].Key=expid
OsInfo[33].Value=RS:1226D
OsInfo[34].Key=fconid
OsInfo[34].Value=18299130,0,2,0;19638787,0,2,0;23531064,2,2,0;23562335,2,2,1;23563673,2,2,0;23877894,1,2,0;25704915,1,2,0;26008830,0,1,1;29882130,0,1,1;29882131,0,1,1;34592303,0,2,1;35620393,0,2,1;35681102,0,1,0;36828252,1,2,0;37007953,0,1,1;37337255,0,2,1;37337272,0,2,1;37634385,0,2,1;37715785,0,2,1;38320543,0,1,1;38758896,0,2,1;38764045,0,1,1;38859191,0,1,1;38888144,0,1,1;39130862,0,2,1;39130896,0,2,1;39139876,0,2,1;39145991,0,1,1;39146010,0,1,1;39177456,0,2,1;39281392,0,1,1;39410888,0,2,1;40131846,0,1,0;40260922,0,1,0
OsInfo[35].Key=containerid
OsInfo[36].Key=containertype
OsInfo[37].Key=edu
OsInfo[37].Value=0
OsInfo[38].Key=servicinginprogress
OsInfo[38].Value=0
OsInfo[39].Key=featureupdatependingreboot
OsInfo[39].Value=0
FriendlyEventName=Stopped working
ConsentKey=MoAppCrash
AppName=A new Flutter project.
AppPath=C:\Program Files\WindowsApps\39956MichaelJansen.FRCPathPlanner_2022.1.2.0_x64__x7a2cjep50mda\pathplanner.exe
NsPartner=windows
NsGroup=windows8
ApplicationIdentity=577650238B5120865022B9F6B617F78B
MetadataHash=-1633586243```
ehamwey commented 2 years ago

We (3467) are also experiencing the same issue, Windows 11 22H2. Can you post more specific instructions on how to grab the debug info you need?

This is a rather urgent issue for us - please let us know if there's anything we can do to help debug!

mjansen4857 commented 2 years ago

Follow these instructions: https://github.com/mjansen4857/pathplanner#how-to-build-manually

Make sure you use flutter run to run in debug mode. I'm assuming this is an issue with the 22H2 update messing up some dependency needed to run. Building manually could potentially install these dependencies and work fine. If that doesn't work you could try installing Visual Studio Community (make sure the "Desktop Development with C++" module is installed with it) which might fix it as well. If all that fails then I don't think there's much I can do besides wait for a flutter update to fix the issue.

ehamwey commented 2 years ago

Some initial searching led me to this issue: https://github.com/bitsdojo/bitsdojo_window/issues/190

Working on building from source now.

ehamwey commented 2 years ago

It looks like Bitsdojo Window library was removed in May, but there hasn't been a PathPlanner release since March. Is it possible to send a newer Windows binary over? The Flutter setup is taking quite a while.

ehamwey commented 2 years ago

After running the latest version with flutter run this confirmed my suspicions. The issue was likely bitsdojo_window. I'll build a new version for Windows and post it here for anyone still having this problem.

mjansen4857 commented 2 years ago

Yeah that sounds right. Here's the one i built that includes some redistributables that some people might not have so its better to use this one. Keep in mind this version might have unknown issues and pathplanner lib doesn't support all of the functionality if you're using the release version.

PathPlanner-windows.zip

ehamwey commented 2 years ago

Beat me to it! We'll use this one for now. Thanks for your help.

Gameknight77YT commented 2 years ago

I have the same problem, here is what I got after running in debug mode.

Launching lib\main.dart on Windows in debug mode... Building Windows application... [ERROR:flutter/shell/platform/windows/direct_manipulation.cc(137)] CoCreateInstance(CLSID_DirectManipulationManager, nullptr, CLSCTX_INPROC_SERVER, IIDIDirectManipulationManager, &manager) failed Syncing files to device Windows... 518ms

Flutter run key commands. r Hot reload. πŸ”₯πŸ”₯πŸ”₯ R Hot restart. h List all available interactive commands. d Detach (terminate "flutter run" but leave application running). c Clear the screen q Quit (terminate the application on the device).

πŸ’ͺ Running with sound null safety πŸ’ͺ

An Observatory debugger and profiler on Windows is available at: http://127.0.0.1:61441/03JnHKQdgtI=/ flutter: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ flutter: β”‚ RangeError (index): Invalid value: Valid value range is empty: 0 flutter: β”œβ”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„ flutter: β”‚ #0 List.[] (dart:core-patch/growable_array.dart:264:36) flutter: β”‚ #1 Trajectory.calculateVelocity (package:pathplanner/services/generator/trajectory.dart:187:13) flutter: β”‚ #2 Trajectory.generateSingleTrajectory (package:pathplanner/services/generator/trajectory.dart:87:5) flutter: β”‚ #3 Trajectory.generateFullTrajectory (package:pathplanner/services/generator/trajectory.dart:67:30) flutter: β”‚ #4 RobotPath.generateTrajectory. (package:pathplanner/robot_path/robot_path.dart:79:46) flutter: β”‚ #5 new Future. (dart:async/future.dart:253:37) flutter: β”‚ #6 _rootRun (dart:async/zone.dart:1383:47) flutter: β”‚ #7 _CustomZone.run (dart:async/zone.dart:1293:19) flutter: β”œβ”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„ flutter: β”‚ 08:10:16.131 (+0:00:01.484156) flutter: β”œβ”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„ flutter: β”‚ β›” Dart Error flutter: └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Lost connection to device.

Gameknight77YT commented 2 years ago

Yeah that sounds right. Here's the one i built that includes some redistributables that some people might not have so its better to use this one. Keep in mind this version might have unknown issues and pathplanner lib doesn't support all of the functionality if you're using the release version.

PathPlanner-windows.zip

This download doesn't work for me either

ehamwey commented 2 years ago

Just tried today to run the same application you provided yesterday and can't get it to start, nor the version I built, but running with flutter run in debug mode starts fine.

ehamwey commented 2 years ago

Can flutter run build the app without an Internet connection? Edit: looks like it can't do it offline.

Let me know if there's a way to run an offline build because right now we don't have a reliable solution for running Pathplanner and we have a competition this Saturday.

mjansen4857 commented 2 years ago

@Gameknight77YT it looks like one of your path files is messed up for some reason. Try removing them from your robot project and see if it will launch then.

@ehamwey No idea why it would work in debug mode but not release mode. Only thing I could think of would be to run in debug mode and just don’t close it. I guess worst case you can just connect to a hotspot or Wi-Fi to run it again. Unfortunately flutter checks for dependencies every time you run so you need to be online. There should be a log file in C:/Users/{YOUR USER}/AppData/Roaming/pathplanner something (don’t remember the exact folder) check that after trying to open the built app and maybe it will have something.

Gameknight77YT commented 2 years ago

@Gameknight77YT it looks like one of your path files is messed up for some reason. Try removing them from your robot project and see if it will launch then.

I did that and it is working now. I then readded them one at a time. The problem was one of them had an endpoint that was also a stop point.

mjansen4857 commented 2 years ago

That probably happened when you deleted another point in the path. I'll make a separate issue to fix that.

mjansen4857 commented 2 years ago

@ehamwey when you get a chance can you pull changes for the repo and see if builds you make will run now? I fixed a crash that may have been what caused your builds to crash but I'm not sure. If not then I'm really not sure what's going on there unless you can find some error output.

ehamwey commented 2 years ago

We had to flutter pub upgrade to get the builds working, but once it was built we have an offline version that works. Thanks for your help again. I think I may have moved the Release folder out of the build directory originally which messed with the binary filepaths.

ehamwey commented 2 years ago

Looks like after a reboot the built binary does not run. Any thoughts? Is there a way to get a verbose output?

mjansen4857 commented 2 years ago

Is there anything in %AppData%/com.mjansen4857/pathplanner/log.txt?

ehamwey commented 2 years ago

Negative - it's empty. We were getting an error relating to how the built directories were moved, which seemed to have fixed itself once we connected to WiFi? So I'm trying a clean and build in the final destination directory to see if that resolves things, then we're rebooting and testing offline.

mjansen4857 commented 2 years ago

Moving the built app shouldn't do anything. Just to confirm, after building you're running the exe in pathplanner/build/windows/runner/Release right? Also, when you move it from this directory you must move everything in that directory, not just the exe.

ehamwey commented 2 years ago

Yep - moving the entire pathplanner folder.

Seems like it will run on WiFi, but not with WiFi off.

mjansen4857 commented 2 years ago

By WiFi on/off do you mean connected/disconnected from a network or actually turning the WiFi off in the settings?

mjansen4857 commented 2 years ago

Never mind, I can reproduce it. This is something, thanks. I'll look into it.

ehamwey commented 2 years ago

I'm going to try on Flutter 3.3.4, we're currently running 3.5.0 because of the method we installed it by. I don't think that should fix the problem but will try anyway.

mjansen4857 commented 2 years ago

Found the issue and fixed it. Was a quirk of how dart try/catch blocks work so checking for PathPlannerLib updates would crash. Pull changes and try again.

I'd definitely use 3.3.4 as well since 3.5 is a beta and I'm currently using 3.3.4.

mjansen4857 commented 2 years ago

So assuming that's fixed, I believe the original issue this thread is based on is a problem with the 2022 version that is not present in the main branch. Here's a pre-release build of the main branch for anyone else finding this issue later: pathplanner-windows.zip

I'll close this after the 2023 version is released.

ehamwey commented 2 years ago

Will try this and report back.

ehamwey commented 2 years ago

That did the trick (hopefully for good!)

mjansen4857 commented 2 years ago

Beta is released now so I'll close this